diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/Modules/proximity/DeviceProximityController.h | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/Modules/proximity/DeviceProximityController.h')
-rw-r--r-- | Source/WebCore/Modules/proximity/DeviceProximityController.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/Source/WebCore/Modules/proximity/DeviceProximityController.h b/Source/WebCore/Modules/proximity/DeviceProximityController.h index 9fd6ffb6d..5b30dfe47 100644 --- a/Source/WebCore/Modules/proximity/DeviceProximityController.h +++ b/Source/WebCore/Modules/proximity/DeviceProximityController.h @@ -23,8 +23,7 @@ * THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef DeviceProximityController_h -#define DeviceProximityController_h +#pragma once #if ENABLE(PROXIMITY_EVENTS) @@ -36,25 +35,20 @@ class DeviceProximityClient; class DeviceProximityController : public DeviceController { public: + explicit DeviceProximityController(DeviceProximityClient*); ~DeviceProximityController() { } - static PassOwnPtr<DeviceProximityController> create(DeviceProximityClient*); - void didChangeDeviceProximity(const double value, const double min, const double max); DeviceProximityClient* deviceProximityClient(); virtual bool hasLastData(); - virtual PassRefPtr<Event> getLastEvent(); + virtual RefPtr<Event> getLastEvent(); static const char* supplementName(); static DeviceProximityController* from(Page*); static bool isActiveAt(Page*); - -private: - explicit DeviceProximityController(DeviceProximityClient*); }; } // namespace WebCore #endif // PROXIMITY_EVENTS -#endif // DeviceProximityController_h |