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/WebLockOrientationError.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 // |request_id| that will have to be passed back to the renderer process when | 53 // |request_id| that will have to be passed back to the renderer process when |
54 // notifying about a success or error (see ScreenOrientationMsg_LockError and | 54 // notifying about a success or error (see ScreenOrientationMsg_LockError and |
55 // ScreenOrientationMsg_LockSuccess). | 55 // ScreenOrientationMsg_LockSuccess). |
56 IPC_MESSAGE_ROUTED2(ScreenOrientationHostMsg_LockRequest, | 56 IPC_MESSAGE_ROUTED2(ScreenOrientationHostMsg_LockRequest, |
57 blink::WebScreenOrientationLockType, /* orientation */ | 57 blink::WebScreenOrientationLockType, /* orientation */ |
58 int /* request_id */) | 58 int /* request_id */) |
59 | 59 |
60 // The renderer process requests the browser process to unlock the screen | 60 // The renderer process requests the browser process to unlock the screen |
61 // orientation. | 61 // orientation. |
62 IPC_MESSAGE_ROUTED0(ScreenOrientationHostMsg_Unlock) | 62 IPC_MESSAGE_ROUTED0(ScreenOrientationHostMsg_Unlock) |
| 63 |
| 64 // The renderer process is now using the Screen Orientation API and informs the |
| 65 // browser process that it should start accurately listening to the screen |
| 66 // orientation if it wasn't already. |
| 67 // This is only expected to be acted upon when the underlying platform requires |
| 68 // heavy work in order to accurately know the screen orientation. |
| 69 IPC_MESSAGE_CONTROL0(ScreenOrientationHostMsg_StartListening) |
| 70 |
| 71 // The renderer process is no longer using the Screen Orientation API and |
| 72 // informs the browser process that it can stop accurately listening to the |
| 73 // screen orientation if no other process cares about it. |
| 74 // This is only expected to be acted upon when the underlying platform requires |
| 75 // heavy work in order to accurately know the screen orientation. |
| 76 IPC_MESSAGE_CONTROL0(ScreenOrientationHostMsg_StopListening) |
OLD | NEW |