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

Unified Diff: content/renderer/renderer_webkitplatformsupport_impl.h

Issue 176963016: Chromium plumbing for Screen Orientation API orientationchange events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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
« no previous file with comments | « content/public/test/mock_render_thread.h ('k') | content/renderer/renderer_webkitplatformsupport_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/renderer_webkitplatformsupport_impl.h
diff --git a/content/renderer/renderer_webkitplatformsupport_impl.h b/content/renderer/renderer_webkitplatformsupport_impl.h
index dc0bcda12abbabe7bc1902d79dd591687df46e2b..65a126db30e03be4477190b35eef8baecc5c5ed5 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;
@@ -155,6 +157,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
@@ -223,6 +227,8 @@ class CONTENT_EXPORT RendererWebKitPlatformSupportImpl
scoped_ptr<WebCryptoImpl> web_crypto_;
+ scoped_ptr<ScreenOrientationDispatcher> screen_orientation_dispatcher_;
+
DISALLOW_COPY_AND_ASSIGN(RendererWebKitPlatformSupportImpl);
};
« no previous file with comments | « content/public/test/mock_render_thread.h ('k') | content/renderer/renderer_webkitplatformsupport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698