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

Unified Diff: content/renderer/renderer_webkitplatformsupport_impl.h

Issue 20707002: Implement Device Orientation using shared memory in content/renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 6e4c3d065d5319772cfd59eb5db1ad772b1c3e29..d2834f051f81e316984cda2b5f4b3af2ea0edfa2 100644
--- a/content/renderer/renderer_webkitplatformsupport_impl.h
+++ b/content/renderer/renderer_webkitplatformsupport_impl.h
@@ -34,6 +34,7 @@ class WebGraphicsContext3DProvider;
namespace content {
class DeviceMotionEventPump;
+class DeviceOrientationEventPump;
class GamepadSharedMemoryReader;
class RendererClipboardClient;
class ThreadSafeSender;
@@ -140,6 +141,8 @@ class CONTENT_EXPORT RendererWebKitPlatformSupportImpl
const WebKit::WebString& host, const WebKit::WebString& languages);
virtual void setDeviceMotionListener(
WebKit::WebDeviceMotionListener* listener) OVERRIDE;
+ virtual void setDeviceOrientationListener(
+ WebKit::WebDeviceOrientationListener* listener) OVERRIDE;
virtual WebKit::WebCrypto* crypto() OVERRIDE;
virtual void queryStorageUsageAndQuota(
const WebKit::WebURL& storage_partition,
@@ -206,6 +209,7 @@ class CONTENT_EXPORT RendererWebKitPlatformSupportImpl
scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_;
scoped_ptr<DeviceMotionEventPump> device_motion_event_pump_;
+ scoped_ptr<DeviceOrientationEventPump> device_orientation_event_pump_;
scoped_refptr<base::MessageLoopProxy> child_thread_loop_;
scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_;

Powered by Google App Engine
This is Rietveld 408576698