summaryrefslogtreecommitdiffstats
path: root/WebCore/dom/DeviceOrientationEvent.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/dom/DeviceOrientationEvent.h')
-rw-r--r--WebCore/dom/DeviceOrientationEvent.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/WebCore/dom/DeviceOrientationEvent.h b/WebCore/dom/DeviceOrientationEvent.h
index 33ff026..bfdf8fb 100644
--- a/WebCore/dom/DeviceOrientationEvent.h
+++ b/WebCore/dom/DeviceOrientationEvent.h
@@ -30,31 +30,31 @@
namespace WebCore {
+class DeviceOrientation;
+
class DeviceOrientationEvent : public Event {
public:
+ ~DeviceOrientationEvent();
static PassRefPtr<DeviceOrientationEvent> create()
{
return adoptRef(new DeviceOrientationEvent);
}
- static PassRefPtr<DeviceOrientationEvent> create(const AtomicString& eventType, double alpha, double beta, double gamma)
+ static PassRefPtr<DeviceOrientationEvent> create(const AtomicString& eventType, DeviceOrientation* orientation)
{
- return adoptRef(new DeviceOrientationEvent(eventType, alpha, beta, gamma));
+ return adoptRef(new DeviceOrientationEvent(eventType, orientation));
}
- void initDeviceOrientationEvent(const AtomicString& eventType, bool canBubble, bool cancelable, double alpha, double beta, double gamma);
- double alpha() const { return m_alpha; }
- double beta() const { return m_beta; }
- double gamma() const { return m_gamma; }
+ void initDeviceOrientationEvent(const AtomicString& type, bool bubbles, bool cancelable, DeviceOrientation*);
virtual bool isDeviceOrientationEvent() const { return true; }
+ DeviceOrientation* orientation() const { return m_orientation.get(); }
+
private:
DeviceOrientationEvent();
- DeviceOrientationEvent(const AtomicString& eventType, double alpha, double beta, double gamma);
+ DeviceOrientationEvent(const AtomicString& eventType, DeviceOrientation*);
- double m_alpha;
- double m_beta;
- double m_gamma;
+ RefPtr<DeviceOrientation> m_orientation;
};
} // namespace WebCore