| 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 "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/WebLockOrientationError.h" | 10 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebLockO
rientationError.h" |
| 11 #include "third_party/WebKit/public/platform/WebScreenOrientationLockType.h" | 11 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree
nOrientationLockType.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::WebScreenOrientationLockType, | 18 IPC_ENUM_TRAITS_MIN_MAX_VALUE(blink::WebScreenOrientationLockType, |
| 19 blink::WebScreenOrientationLockDefault, | 19 blink::WebScreenOrientationLockDefault, |
| 20 blink::WebScreenOrientationLockNatural) | 20 blink::WebScreenOrientationLockNatural) |
| 21 IPC_ENUM_TRAITS_MIN_MAX_VALUE( | 21 IPC_ENUM_TRAITS_MIN_MAX_VALUE( |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 // This is only expected to be acted upon when the underlying platform requires | 57 // This is only expected to be acted upon when the underlying platform requires |
| 58 // heavy work in order to accurately know the screen orientation. | 58 // heavy work in order to accurately know the screen orientation. |
| 59 IPC_MESSAGE_CONTROL0(ScreenOrientationHostMsg_StartListening) | 59 IPC_MESSAGE_CONTROL0(ScreenOrientationHostMsg_StartListening) |
| 60 | 60 |
| 61 // The renderer process is no longer using the Screen Orientation API and | 61 // The renderer process is no longer using the Screen Orientation API and |
| 62 // informs the browser process that it can stop accurately listening to the | 62 // informs the browser process that it can stop accurately listening to the |
| 63 // screen orientation if no other process cares about it. | 63 // screen orientation if no other process cares about it. |
| 64 // This is only expected to be acted upon when the underlying platform requires | 64 // This is only expected to be acted upon when the underlying platform requires |
| 65 // heavy work in order to accurately know the screen orientation. | 65 // heavy work in order to accurately know the screen orientation. |
| 66 IPC_MESSAGE_CONTROL0(ScreenOrientationHostMsg_StopListening) | 66 IPC_MESSAGE_CONTROL0(ScreenOrientationHostMsg_StopListening) |
| OLD | NEW |