Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(284)

Unified Diff: Source/WebCore/platform/PlatformDeviceMotion.h

Issue 13866007: WebKit & WebCore part of the device motion implementation using the platform layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@devicemotion-webcore
Patch Set: added unregister in destructor of DeviceMotionController Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/WebCore/platform/PlatformDeviceMotion.h
diff --git a/Source/WebCore/platform/PlatformDeviceMotion.h b/Source/WebCore/platform/PlatformDeviceMotion.h
index c80f7a98b8e680e91e8b3826b7a4da566e4acd9f..8e2c893ea6eb7654cfaddbc484783c135d396e65 100644
--- a/Source/WebCore/platform/PlatformDeviceMotion.h
+++ b/Source/WebCore/platform/PlatformDeviceMotion.h
@@ -31,18 +31,15 @@
#ifndef PlatformDeviceMotion_h
#define PlatformDeviceMotion_h
-#if ENABLE(DEVICE_ORIENTATION)
-
namespace WebCore {
+class DeviceMotionController;
class DeviceMotionData;
-void startMonitoringDeviceMotion();
-void stopMonitoringDeviceMotion();
-DeviceMotionData* lastDeviceMotionData();
+void registerForDeviceMotionUpdates(DeviceMotionController*);
+void unRegisterForDeviceMotionUpdates(DeviceMotionController*);
Peter Beverloo 2013/04/17 19:08:23 As earlier said, please consider "unregister" as a
timvolodine 2013/04/18 12:37:38 Done.
+DeviceMotionData* latestDeviceMotionData();
}
-#endif // ENABLE(DEVICE_ORIENTATION)
-
#endif // PlatformDeviceMotion_h

Powered by Google App Engine
This is Rietveld 408576698