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

Unified Diff: content/renderer/render_view_impl.h

Issue 10698046: Implements part of Device Motion in the Renderer (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Implements new WebKit API, rebases after large refactorings 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
Index: content/renderer/render_view_impl.h
diff --git a/content/renderer/render_view_impl.h b/content/renderer/render_view_impl.h
index 7b8a8b91baf8f50551fedf9395d4ee18504ff67b..7f2934b9dfabc5a2b37f4d7c2869c66014b5dca8 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;
@@ -137,6 +138,7 @@ class WebMediaPlayerManagerAndroid;
namespace WebKit {
class WebApplicationCacheHost;
class WebApplicationCacheHostClient;
+class WebDeviceMotionDetector;
class WebDOMMessageEvent;
class WebDataSource;
class WebDragData;
@@ -261,6 +263,8 @@ class RenderViewImpl : public RenderWidget,
}
#endif
+ WebKit::WebDeviceMotionDetector* GetDeviceMotionDispatcher();
+
WebKit::WebPeerConnection00Handler* CreatePeerConnectionHandlerJsep(
WebKit::WebPeerConnection00HandlerClient* client);
@@ -1308,6 +1312,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_;

Powered by Google App Engine
This is Rietveld 408576698