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

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: Created 8 years, 6 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 592ec4d0cc685d97d0c121ed5e4f269e74f17035..1ed1714b7393ae388eeefa9488d7c2a39b7af6c0 100644
--- a/content/renderer/render_view_impl.h
+++ b/content/renderer/render_view_impl.h
@@ -62,6 +62,7 @@
#endif
class CommandLine;
+class DeviceMotionDispatcher;
class DeviceOrientationDispatcher;
class DevToolsAgent;
class DomAutomationController;
@@ -488,6 +489,7 @@ class RenderViewImpl : public RenderWidget,
virtual WebKit::WebSpeechInputController* speechInputController(
WebKit::WebSpeechInputListener* listener);
virtual WebKit::WebSpeechRecognizer* speechRecognizer();
+ virtual WebKit::WebDeviceMotionClient* deviceMotionClient();
virtual WebKit::WebDeviceOrientationClient* deviceOrientationClient();
virtual void zoomLimitsChanged(double minimum_level, double maximum_level);
virtual void zoomLevelChanged();
@@ -1295,6 +1297,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