diff options
Diffstat (limited to 'Source/WebCore/dom/DeviceOrientationController.h')
-rw-r--r-- | Source/WebCore/dom/DeviceOrientationController.h | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/Source/WebCore/dom/DeviceOrientationController.h b/Source/WebCore/dom/DeviceOrientationController.h index 56bae2d78..fb2c6bb58 100644 --- a/Source/WebCore/dom/DeviceOrientationController.h +++ b/Source/WebCore/dom/DeviceOrientationController.h @@ -24,11 +24,9 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef DeviceOrientationController_h -#define DeviceOrientationController_h +#pragma once #include "DeviceController.h" -#include <wtf/HashCountedSet.h> #include <wtf/Noncopyable.h> namespace WebCore { @@ -37,12 +35,11 @@ class DeviceOrientationClient; class DeviceOrientationData; class Page; -class DeviceOrientationController : public DeviceController { +class DeviceOrientationController final : public DeviceController { WTF_MAKE_NONCOPYABLE(DeviceOrientationController); public: - ~DeviceOrientationController() { }; - - static PassOwnPtr<DeviceOrientationController> create(DeviceOrientationClient*); + explicit DeviceOrientationController(DeviceOrientationClient*); + virtual ~DeviceOrientationController() { } void didChangeDeviceOrientation(DeviceOrientationData*); DeviceOrientationClient* deviceOrientationClient(); @@ -53,18 +50,13 @@ public: void suspendUpdates(); void resumeUpdates(); #else - virtual bool hasLastData() override; - virtual PassRefPtr<Event> getLastEvent() override; + bool hasLastData() override; + RefPtr<Event> getLastEvent() override; #endif static const char* supplementName(); static DeviceOrientationController* from(Page*); static bool isActiveAt(Page*); - -private: - DeviceOrientationController(DeviceOrientationClient*); }; } // namespace WebCore - -#endif // DeviceOrientationController_h |