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

Side by Side 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: with tests Created 6 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // IPC messages for screen orientation. 5 // IPC messages for screen orientation.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "content/common/content_export.h"
8 #include "ipc/ipc_message_macros.h" 9 #include "ipc/ipc_message_macros.h"
9 #include "third_party/WebKit/public/platform/WebScreenOrientation.h" 10 #include "third_party/WebKit/public/platform/WebScreenOrientation.h"
10 11
11 #undef IPC_MESSAGE_EXPORT 12 #undef IPC_MESSAGE_EXPORT
12 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 13 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
13 14
14 #define IPC_MESSAGE_START ScreenOrientationMsgStart 15 #define IPC_MESSAGE_START ScreenOrientationMsgStart
15 16
16 IPC_ENUM_TRAITS(blink::WebScreenOrientation) 17 IPC_ENUM_TRAITS(blink::WebScreenOrientation)
17 18
18 // The browser process informs the renderer process that the screen orientation 19 // The browser process informs the renderer process that the screen orientation
19 // has changed. |orientation| contains the new screen orientation in degrees. 20 // has changed. |orientation| contains the new screen orientation in degrees.
20 IPC_MESSAGE_CONTROL1(ScreenOrientationMsg_OrientationChange, 21 IPC_MESSAGE_CONTROL1(ScreenOrientationMsg_OrientationChange,
21 blink::WebScreenOrientation /* orientation */ ) 22 blink::WebScreenOrientation /* orientation */ )
23
24 // The renderer process requests the browser process to lock the screen
25 // orientation to the specified |orientations|.
26 IPC_MESSAGE_CONTROL1(ScreenOrientationMsg_Lock,
Cris Neckar 2014/02/24 21:02:28 These messages are Renderer->Browser correct? The
mlamouri (slow - plz ping) 2014/02/24 21:47:50 Didn't know about that convention. Fixed.
27 blink::WebScreenOrientations /* orientations */ )
28
29 // The renderer process requests the browser process to unlock the screen
30 // orientation.
31 IPC_MESSAGE_CONTROL0(ScreenOrientationMsg_Unlock)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698