OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 device orientation. | 5 // IPC messages for device orientation. |
6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
7 | 7 |
8 #include "ipc/ipc_message_macros.h" | 8 #include "ipc/ipc_message_macros.h" |
9 | 9 |
10 #define IPC_MESSAGE_START DeviceOrientationMsgStart | 10 #define IPC_MESSAGE_START DeviceOrientationMsgStart |
11 | 11 |
12 IPC_STRUCT_BEGIN(DeviceOrientationMsg_Updated_Params) | 12 IPC_STRUCT_BEGIN(DeviceOrientationMsg_Updated_Params) |
13 // These fields have the same meaning as in device_orientation::Orientation. | 13 // These fields have the same meaning as in content::Orientation. |
14 IPC_STRUCT_MEMBER(bool, can_provide_alpha) | 14 IPC_STRUCT_MEMBER(bool, can_provide_alpha) |
15 IPC_STRUCT_MEMBER(double, alpha) | 15 IPC_STRUCT_MEMBER(double, alpha) |
16 IPC_STRUCT_MEMBER(bool, can_provide_beta) | 16 IPC_STRUCT_MEMBER(bool, can_provide_beta) |
17 IPC_STRUCT_MEMBER(double, beta) | 17 IPC_STRUCT_MEMBER(double, beta) |
18 IPC_STRUCT_MEMBER(bool, can_provide_gamma) | 18 IPC_STRUCT_MEMBER(bool, can_provide_gamma) |
19 IPC_STRUCT_MEMBER(double, gamma) | 19 IPC_STRUCT_MEMBER(double, gamma) |
20 IPC_STRUCT_MEMBER(bool, can_provide_absolute) | 20 IPC_STRUCT_MEMBER(bool, can_provide_absolute) |
21 IPC_STRUCT_MEMBER(bool, absolute) | 21 IPC_STRUCT_MEMBER(bool, absolute) |
22 IPC_STRUCT_END() | 22 IPC_STRUCT_END() |
23 | 23 |
24 // Messages sent from the browser to the renderer. | 24 // Messages sent from the browser to the renderer. |
25 | 25 |
26 // Notification that the device's orientation has changed. | 26 // Notification that the device's orientation has changed. |
27 IPC_MESSAGE_ROUTED1(DeviceOrientationMsg_Updated, | 27 IPC_MESSAGE_ROUTED1(DeviceOrientationMsg_Updated, |
28 DeviceOrientationMsg_Updated_Params) | 28 DeviceOrientationMsg_Updated_Params) |
29 | 29 |
30 // Messages sent from the renderer to the browser. | 30 // Messages sent from the renderer to the browser. |
31 | 31 |
32 // A RenderView requests to start receiving device orientation updates. | 32 // A RenderView requests to start receiving device orientation updates. |
33 IPC_MESSAGE_CONTROL1(DeviceOrientationHostMsg_StartUpdating, | 33 IPC_MESSAGE_CONTROL1(DeviceOrientationHostMsg_StartUpdating, |
34 int /* render_view_id */) | 34 int /* render_view_id */) |
35 | 35 |
36 // A RenderView requests to stop receiving device orientation updates. | 36 // A RenderView requests to stop receiving device orientation updates. |
37 IPC_MESSAGE_CONTROL1(DeviceOrientationHostMsg_StopUpdating, | 37 IPC_MESSAGE_CONTROL1(DeviceOrientationHostMsg_StopUpdating, |
38 int /* render_view_id */) | 38 int /* render_view_id */) |
OLD | NEW |