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

Unified Diff: content/renderer/renderer_webkitplatformsupport_impl.cc

Issue 177793003: Chromium plumbing for Screen Orientation API lock/unlock. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@chromium_plumbing_screen_orientation
Patch Set: with tests 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.cc
diff --git a/content/renderer/renderer_webkitplatformsupport_impl.cc b/content/renderer/renderer_webkitplatformsupport_impl.cc
index 5b44e7e46fb2912762c1b98d72298c1fe730261d..17986310547761c65a4a6cf92db3759c6953fb9d 100644
--- a/content/renderer/renderer_webkitplatformsupport_impl.cc
+++ b/content/renderer/renderer_webkitplatformsupport_impl.cc
@@ -33,6 +33,7 @@
#include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h"
#include "content/common/gpu/gpu_process_launch_causes.h"
#include "content/common/mime_registry_messages.h"
+#include "content/common/screen_orientation_messages.h"
#include "content/common/view_messages.h"
#include "content/public/common/content_switches.h"
#include "content/public/common/webplugininfo.h"
@@ -1081,6 +1082,15 @@ void RendererWebKitPlatformSupportImpl::setScreenOrientationListener(
screen_orientation_dispatcher_->setListener(listener);
}
+void RendererWebKitPlatformSupportImpl::lockOrientation(
+ blink::WebScreenOrientations orientations) {
+ RenderThread::Get()->Send(new ScreenOrientationMsg_Lock(orientations));
+}
+
+void RendererWebKitPlatformSupportImpl::unlockOrientation() {
+ RenderThread::Get()->Send(new ScreenOrientationMsg_Unlock);
+}
+
//------------------------------------------------------------------------------
void RendererWebKitPlatformSupportImpl::queryStorageUsageAndQuota(

Powered by Google App Engine
This is Rietveld 408576698