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

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: fixed Darin's comments 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/Platform/Platform.gypi ('k') | Source/Platform/chromium/public/WebDeviceMotionData.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/Platform/chromium/public/Platform.h
diff --git a/Source/Platform/chromium/public/Platform.h b/Source/Platform/chromium/public/Platform.h
index 566305709c633907bf65e267ca185e78e0b2df96..d5d14d070c5fdbe7b1b1017b661c34910f23d50b 100644
--- a/Source/Platform/chromium/public/Platform.h
+++ b/Source/Platform/chromium/public/Platform.h
@@ -54,6 +54,8 @@ class WebBlobRegistry;
class WebClipboard;
class WebCompositorSupport;
class WebCookieJar;
+class WebDeviceMotionListener;
+class WebDeviceMotionProvider;
darin (slow to review) 2013/05/17 14:13:09 nit: no need for the provider forward declare here
timvolodine 2013/05/17 14:35:40 Done.
class WebDiscardableMemory;
class WebFallbackThemeEngine;
class WebFileSystem;
@@ -510,6 +512,12 @@ 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/Platform/Platform.gypi ('k') | Source/Platform/chromium/public/WebDeviceMotionData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698