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

Unified Diff: content/renderer/renderer_webkitplatformsupport_impl.h

Issue 14678012: Implement the content/renderer and content/browser part of the Device Motion API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix compilation: peer_handle -> PeerHandle() Created 7 years, 5 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/renderer_webkitplatformsupport_impl.h
diff --git a/content/renderer/renderer_webkitplatformsupport_impl.h b/content/renderer/renderer_webkitplatformsupport_impl.h
index 28fe1c5cefb103fb434ef5cf78b8ae640d1be8be..7f096e5d20bbc1bc499e88bcd15d0dd4d1571770 100644
--- a/content/renderer/renderer_webkitplatformsupport_impl.h
+++ b/content/renderer/renderer_webkitplatformsupport_impl.h
@@ -32,6 +32,7 @@ class WebGraphicsContext3DProvider;
}
namespace content {
+class DeviceMotionEventPump;
class GamepadSharedMemoryReader;
class RendererClipboardClient;
class ThreadSafeSender;
@@ -135,6 +136,8 @@ class CONTENT_EXPORT RendererWebKitPlatformSupportImpl
virtual WebKit::WebCompositorSupport* compositorSupport();
virtual WebKit::WebString convertIDNToUnicode(
const WebKit::WebString& host, const WebKit::WebString& languages);
+ virtual void setDeviceMotionListener(
+ WebKit::WebDeviceMotionListener* listener) OVERRIDE;
// Disables the WebSandboxSupport implementation for testing.
// Tests that do not set up a full sandbox environment should call
@@ -187,6 +190,8 @@ class CONTENT_EXPORT RendererWebKitPlatformSupportImpl
scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_;
+ scoped_ptr<DeviceMotionEventPump> device_motion_event_pump_;
+
scoped_refptr<base::MessageLoopProxy> child_thread_loop_;
scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_;
scoped_refptr<ThreadSafeSender> thread_safe_sender_;

Powered by Google App Engine
This is Rietveld 408576698