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

Unified Diff: Source/Platform/chromium/public/Platform.h

Issue 14460010: Implement the Blink part of the Device Motion API. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: added MockWebDeviceMotionHandler and methods to set in in the platform Created 7 years, 7 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/Platform/chromium/public/Platform.h
diff --git a/Source/Platform/chromium/public/Platform.h b/Source/Platform/chromium/public/Platform.h
index 4e014cd102cc6cd2520c3d3c6318af82ccea8b14..920ebfd5a3489d78534d5608bac22a27b722a1d9 100644
--- a/Source/Platform/chromium/public/Platform.h
+++ b/Source/Platform/chromium/public/Platform.h
@@ -54,6 +54,7 @@ class WebBlobRegistry;
class WebClipboard;
class WebCompositorSupport;
class WebCookieJar;
+class WebDeviceMotionHandler;
class WebDiscardableMemory;
class WebFileSystem;
class WebFileUtilities;
@@ -503,6 +504,10 @@ public:
virtual void didStartWorkerRunLoop(const WebWorkerRunLoop&) { }
virtual void didStopWorkerRunLoop(const WebWorkerRunLoop&) { }
+ // Device Motion / Orientation ----------------------------------------
+
+ virtual WebDeviceMotionHandler* deviceMotionHandler() { return 0; }
+
protected:
virtual ~Platform() { }
};

Powered by Google App Engine
This is Rietveld 408576698