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

Unified Diff: content/common/view_messages.h

Issue 150153004: [WIP] Add Chromium-side support for the Screen Orientation API (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Updated by review comments. 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/common/view_messages.h
diff --git a/content/common/view_messages.h b/content/common/view_messages.h
index 20bec60476a247f0039a3a9d0ecf80ad1a20fa91..b50672ad8009daeafd40397944ec3896c6c1d728 100644
--- a/content/common/view_messages.h
+++ b/content/common/view_messages.h
@@ -2144,6 +2144,15 @@ IPC_MESSAGE_ROUTED0(ViewHostMsg_HideValidationMessage)
IPC_MESSAGE_ROUTED1(ViewHostMsg_MoveValidationMessage,
gfx::Rect /* anchor rectangle in root view coordinate */)
+// Sent by the renderer to the browser to request locking orientations by given
+// orientations map.
+IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_LockScreenOrientation,
+ unsigned char /* orientations bit map */,
+ bool /* lock operation result */)
+
+// Sent by the renderer to the browser to release orientation lock.
+IPC_MESSAGE_CONTROL0(ViewHostMsg_UnlockScreenOrientation)
+
#if defined(OS_ANDROID)
// Response to ViewMsg_FindMatchRects.
//
« no previous file with comments | « content/browser/screen_orientation/screen_orientation_provider_android.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698