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

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: fixed Eric's comments. 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..884ead89fccc45df0e28d20d0964c1f6311b62e9 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*);
+DeviceMotionData* latestDeviceMotionData();
}
-#endif // ENABLE(DEVICE_ORIENTATION)
-
#endif // PlatformDeviceMotion_h

Powered by Google App Engine
This is Rietveld 408576698