| OLD | NEW |
| 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(ScreenOrientationHostMsg_Lock, |
| 27 blink::WebScreenOrientations /* orientations */ ) |
| 28 |
| 29 // The renderer process requests the browser process to unlock the screen |
| 30 // orientation. |
| 31 IPC_MESSAGE_CONTROL0(ScreenOrientationHostMsg_Unlock) |
| OLD | NEW |