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

Unified Diff: public/platform/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: removed files incorrectly listed in WebKit.gyp 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
« no previous file with comments | « Source/modules/modules.gypi ('k') | public/platform/WebDeviceMotionData.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/Platform.h
diff --git a/public/platform/Platform.h b/public/platform/Platform.h
index 566305709c633907bf65e267ca185e78e0b2df96..273e646f7100b60b79f513e52ea0dfe7afb7fc45 100644
--- a/public/platform/Platform.h
+++ b/public/platform/Platform.h
@@ -54,6 +54,7 @@ class WebBlobRegistry;
class WebClipboard;
class WebCompositorSupport;
class WebCookieJar;
+class WebDeviceMotionListener;
class WebDiscardableMemory;
class WebFallbackThemeEngine;
class WebFileSystem;
@@ -510,6 +511,13 @@ public:
virtual void didStartWorkerRunLoop(const WebWorkerRunLoop&) { }
virtual void didStopWorkerRunLoop(const WebWorkerRunLoop&) { }
+
+ // Device Motion / Orientation ----------------------------------------
+
+ // Sets a Listener to listen for device motion data updates.
+ // If null, the platform stops providing device motion data to the current listener.
+ virtual void setDeviceMotionListener(WebKit::WebDeviceMotionListener*) { }
+
protected:
virtual ~Platform() { }
};
« no previous file with comments | « Source/modules/modules.gypi ('k') | public/platform/WebDeviceMotionData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698