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

Unified Diff: content/renderer/renderer_webkitplatformsupport_impl.h

Issue 164913004: Chromium plumbing for Screen Orientation API orientationchange events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updated Created 6 years, 10 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 45f292430417432ce7f98623b8e7dfb9e849db6b..91ee31209646a34f9b30afe4ac2b736a5e41192c 100644
--- a/content/renderer/renderer_webkitplatformsupport_impl.h
+++ b/content/renderer/renderer_webkitplatformsupport_impl.h
@@ -31,6 +31,7 @@ namespace blink {
class WebDeviceMotionData;
class WebDeviceOrientationData;
class WebGraphicsContext3DProvider;
+class WebScreenOrientationListener;
}
namespace content {
@@ -38,6 +39,7 @@ class DeviceMotionEventPump;
class DeviceOrientationEventPump;
class QuotaMessageFilter;
class RendererClipboardClient;
+class ScreenOrientationDispatcher;
class ThreadSafeSender;
class WebClipboardImpl;
class WebCryptoImpl;
@@ -150,6 +152,8 @@ class CONTENT_EXPORT RendererWebKitPlatformSupportImpl
blink::WebStorageQuotaCallbacks) OVERRIDE;
virtual void vibrate(unsigned int milliseconds);
virtual void cancelVibration();
+ virtual void setScreenOrientationListener(
+ blink::WebScreenOrientationListener*) OVERRIDE;
// Disables the WebSandboxSupport implementation for testing.
// Tests that do not set up a full sandbox environment should call
@@ -218,6 +222,8 @@ class CONTENT_EXPORT RendererWebKitPlatformSupportImpl
scoped_ptr<WebCryptoImpl> web_crypto_;
+ scoped_ptr<ScreenOrientationDispatcher> screen_orientation_dispatcher_;
+
DISALLOW_COPY_AND_ASSIGN(RendererWebKitPlatformSupportImpl);
};

Powered by Google App Engine
This is Rietveld 408576698