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

Side by Side Diff: content/common/screen_orientation_messages.h

Issue 254563004: Update IPC straits following WebScreenInfo struct changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 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
« no previous file with comments | « no previous file | content/common/view_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "content/common/content_export.h"
9 #include "ipc/ipc_message_macros.h" 9 #include "ipc/ipc_message_macros.h"
10 #include "third_party/WebKit/public/platform/WebScreenOrientationLockType.h" 10 #include "third_party/WebKit/public/platform/WebScreenOrientationLockType.h"
11 #include "third_party/WebKit/public/platform/WebScreenOrientationType.h" 11 #include "third_party/WebKit/public/platform/WebScreenOrientationType.h"
12 12
13 #undef IPC_MESSAGE_EXPORT 13 #undef IPC_MESSAGE_EXPORT
14 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 14 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
15 15
16 #define IPC_MESSAGE_START ScreenOrientationMsgStart 16 #define IPC_MESSAGE_START ScreenOrientationMsgStart
17 17
18 IPC_ENUM_TRAITS_MIN_MAX_VALUE(blink::WebScreenOrientationType, 18 IPC_ENUM_TRAITS_MIN_MAX_VALUE(blink::WebScreenOrientationType,
19 blink::WebScreenOrientationPortraitPrimary, 19 blink::WebScreenOrientationUndefined,
20 blink::WebScreenOrientationLandscapeSecondary) 20 blink::WebScreenOrientationLandscapeSecondary)
21 IPC_ENUM_TRAITS_MIN_MAX_VALUE(blink::WebScreenOrientationLockType, 21 IPC_ENUM_TRAITS_MIN_MAX_VALUE(blink::WebScreenOrientationLockType,
22 blink::WebScreenOrientationLockDefault, 22 blink::WebScreenOrientationLockDefault,
23 blink::WebScreenOrientationLockPortrait) 23 blink::WebScreenOrientationLockPortrait)
24 24
25 // The browser process informs the renderer process that the screen orientation 25 // The browser process informs the renderer process that the screen orientation
26 // has changed. |orientation| contains the new screen orientation in degrees. 26 // has changed. |orientation| contains the new screen orientation in degrees.
27 IPC_MESSAGE_CONTROL1(ScreenOrientationMsg_OrientationChange, 27 IPC_MESSAGE_CONTROL1(ScreenOrientationMsg_OrientationChange,
28 blink::WebScreenOrientationType /* orientation */ ) 28 blink::WebScreenOrientationType /* orientation */ )
29 29
30 // The renderer process requests the browser process to lock the screen 30 // The renderer process requests the browser process to lock the screen
31 // orientation to the specified |orientations|. 31 // orientation to the specified |orientations|.
32 IPC_MESSAGE_CONTROL1(ScreenOrientationHostMsg_Lock, 32 IPC_MESSAGE_CONTROL1(ScreenOrientationHostMsg_Lock,
33 blink::WebScreenOrientationLockType /* orientations */ ) 33 blink::WebScreenOrientationLockType /* orientations */ )
34 34
35 // The renderer process requests the browser process to unlock the screen 35 // The renderer process requests the browser process to unlock the screen
36 // orientation. 36 // orientation.
37 IPC_MESSAGE_CONTROL0(ScreenOrientationHostMsg_Unlock) 37 IPC_MESSAGE_CONTROL0(ScreenOrientationHostMsg_Unlock)
OLDNEW
« no previous file with comments | « no previous file | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698