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

Unified Diff: content/renderer/render_view_impl.h

Issue 10827415: Chromium-side implementation of DeviceMotion. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Test should set the kEnableDeviceMotion flag Created 8 years, 4 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 | « content/renderer/device_motion_dispatcher.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.h
diff --git a/content/renderer/render_view_impl.h b/content/renderer/render_view_impl.h
index 04490b93e27b795c3d976fd89974f0a4f0e75040..f2ec05e160f0113c61083715984fc129b900dcb1 100644
--- a/content/renderer/render_view_impl.h
+++ b/content/renderer/render_view_impl.h
@@ -61,6 +61,7 @@
#endif
class CommandLine;
+class DeviceMotionDispatcher;
class DeviceOrientationDispatcher;
class DevToolsAgent;
class DomAutomationController;
@@ -139,6 +140,7 @@ namespace WebKit {
class WebApplicationCacheHost;
class WebApplicationCacheHostClient;
class WebCompositorOutputSurface;
+class WebDeviceMotionDetector;
class WebDOMMessageEvent;
class WebDataSource;
class WebDragData;
@@ -263,6 +265,8 @@ class RenderViewImpl : public RenderWidget,
}
#endif
+ WebKit::WebDeviceMotionDetector* GetDeviceMotionDispatcher();
+
WebKit::WebPeerConnection00Handler* CreatePeerConnectionHandlerJsep(
WebKit::WebPeerConnection00HandlerClient* client);
@@ -1316,6 +1320,9 @@ class RenderViewImpl : public RenderWidget,
// initialized.
SpeechRecognitionDispatcher* speech_recognition_dispatcher_;
+ // Device motion dispatcher attached to this view; lazily initialized.
+ DeviceMotionDispatcher* device_motion_dispatcher_;
+
// Device orientation dispatcher attached to this view; lazily initialized.
DeviceOrientationDispatcher* device_orientation_dispatcher_;
« no previous file with comments | « content/renderer/device_motion_dispatcher.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698