diff options
Diffstat (limited to 'Source/WebCore/dom/DeviceOrientationController.h')
-rw-r--r-- | Source/WebCore/dom/DeviceOrientationController.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/WebCore/dom/DeviceOrientationController.h b/Source/WebCore/dom/DeviceOrientationController.h index 1b87998d9..d8efaca39 100644 --- a/Source/WebCore/dom/DeviceOrientationController.h +++ b/Source/WebCore/dom/DeviceOrientationController.h @@ -27,6 +27,7 @@ #define DeviceOrientationController_h #include "DOMWindow.h" +#include "PageSupplement.h" #include "Timer.h" #include <wtf/HashCountedSet.h> @@ -37,7 +38,7 @@ class DeviceOrientation; class DeviceOrientationClient; class Page; -class DeviceOrientationController { +class DeviceOrientationController : public PageSupplement { public: ~DeviceOrientationController(); @@ -56,6 +57,11 @@ public: DeviceOrientationClient* client() const { return m_client; } + static const AtomicString& supplementName(); + static DeviceOrientationController* from(Frame* frame) { return static_cast<DeviceOrientationController*>(PageSupplement::from(frame, supplementName())); } + static DeviceOrientationController* from(Page* page) { return static_cast<DeviceOrientationController*>(PageSupplement::from(page, supplementName())); } + static bool isActiveAt(Page*); + private: DeviceOrientationController(Page*, DeviceOrientationClient*); |