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

Unified Diff: content/common/screen_orientation_messages.h

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: fix compilation issue 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/browser/screen_orientation/screen_orientation_provider.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/screen_orientation_messages.h
diff --git a/content/common/screen_orientation_messages.h b/content/common/screen_orientation_messages.h
index cd8a4b7bb5d50159ad9a2b9dece905ce13e0c64a..6a8f4a89427a49da3525a7721e0fcb984efa86e9 100644
--- a/content/common/screen_orientation_messages.h
+++ b/content/common/screen_orientation_messages.h
@@ -5,6 +5,7 @@
// IPC messages for screen orientation.
// Multiply-included message file, hence no include guard.
+#include "content/common/content_export.h"
#include "ipc/ipc_message_macros.h"
#include "third_party/WebKit/public/platform/WebScreenOrientation.h"
@@ -19,3 +20,12 @@ IPC_ENUM_TRAITS(blink::WebScreenOrientation)
// has changed. |orientation| contains the new screen orientation in degrees.
IPC_MESSAGE_CONTROL1(ScreenOrientationMsg_OrientationChange,
blink::WebScreenOrientation /* orientation */ )
+
+// The renderer process requests the browser process to lock the screen
+// orientation to the specified |orientations|.
+IPC_MESSAGE_CONTROL1(ScreenOrientationHostMsg_Lock,
+ blink::WebScreenOrientations /* orientations */ )
+
+// The renderer process requests the browser process to unlock the screen
+// orientation.
+IPC_MESSAGE_CONTROL0(ScreenOrientationHostMsg_Unlock)
« no previous file with comments | « content/browser/screen_orientation/screen_orientation_provider.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698