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

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: excluded orientation pump tests on win bots Created 7 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/renderer_webkitplatformsupport_impl.h
diff --git a/content/renderer/renderer_webkitplatformsupport_impl.h b/content/renderer/renderer_webkitplatformsupport_impl.h
index e59df5c5ab5fb5312f1755d34352da93fb7092c5..4cfe4f15fb315399ca747902cc8a54bc35640861 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 QuotaMessageFilter;
class RendererClipboardClient;
@@ -139,6 +140,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,
@@ -202,6 +205,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_;
« no previous file with comments | « content/renderer/device_orientation_dispatcher.cc ('k') | content/renderer/renderer_webkitplatformsupport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698