Index: content/renderer/renderer_webkitplatformsupport_impl.cc |
diff --git a/content/renderer/renderer_webkitplatformsupport_impl.cc b/content/renderer/renderer_webkitplatformsupport_impl.cc |
index 601fd5c367e2cad510eca51ccf594a3f0fab0f53..5b44e7e46fb2912762c1b98d72298c1fe730261d 100644 |
--- a/content/renderer/renderer_webkitplatformsupport_impl.cc |
+++ b/content/renderer/renderer_webkitplatformsupport_impl.cc |
@@ -49,6 +49,7 @@ |
#include "content/renderer/media/webcontentdecryptionmodule_impl.h" |
#include "content/renderer/render_thread_impl.h" |
#include "content/renderer/renderer_clipboard_client.h" |
+#include "content/renderer/screen_orientation/screen_orientation_dispatcher.h" |
#include "content/renderer/webclipboard_impl.h" |
#include "content/renderer/webcrypto/webcrypto_impl.h" |
#include "content/renderer/webgraphicscontext3d_provider_impl.h" |
@@ -1070,6 +1071,18 @@ void RendererWebKitPlatformSupportImpl::cancelVibration() { |
//------------------------------------------------------------------------------ |
+void RendererWebKitPlatformSupportImpl::setScreenOrientationListener( |
+ blink::WebScreenOrientationListener* listener) { |
+ if (!screen_orientation_dispatcher_) { |
+ screen_orientation_dispatcher_.reset( |
+ new ScreenOrientationDispatcher(RenderThread::Get())); |
+ } |
+ |
+ screen_orientation_dispatcher_->setListener(listener); |
+} |
+ |
+//------------------------------------------------------------------------------ |
+ |
void RendererWebKitPlatformSupportImpl::queryStorageUsageAndQuota( |
const blink::WebURL& storage_partition, |
blink::WebStorageQuotaType type, |