Remove obsolete Channel ID expiration time from site data viewer.
[chromium-blink-merge.git] / content / common / device_motion_messages.h
blob0d3303d4168ce79df95301c72c484e16e315cb19
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
3 // found in the LICENSE file.
5 // IPC messages for device motion.
6 // Multiply-included message file, hence no include guard.
8 #include "ipc/ipc_message_macros.h"
10 #define IPC_MESSAGE_START DeviceMotionMsgStart
12 IPC_STRUCT_BEGIN(DeviceMotionMsg_Updated_Params)
13 // These fields have the same meaning as in device_motion::Motion.
14 IPC_STRUCT_MEMBER(bool, can_provide_acceleration_x)
15 IPC_STRUCT_MEMBER(double, acceleration_x)
16 IPC_STRUCT_MEMBER(bool, can_provide_acceleration_y)
17 IPC_STRUCT_MEMBER(double, acceleration_y)
18 IPC_STRUCT_MEMBER(bool, can_provide_acceleration_z)
19 IPC_STRUCT_MEMBER(double, acceleration_z)
20 IPC_STRUCT_MEMBER(bool, can_provide_acceleration_including_gravity_x)
21 IPC_STRUCT_MEMBER(double, acceleration_including_gravity_x)
22 IPC_STRUCT_MEMBER(bool, can_provide_acceleration_including_gravity_y)
23 IPC_STRUCT_MEMBER(double, acceleration_including_gravity_y)
24 IPC_STRUCT_MEMBER(bool, can_provide_acceleration_including_gravity_z)
25 IPC_STRUCT_MEMBER(double, acceleration_including_gravity_z)
26 IPC_STRUCT_MEMBER(bool, can_provide_rotation_rate_alpha)
27 IPC_STRUCT_MEMBER(double, rotation_rate_alpha)
28 IPC_STRUCT_MEMBER(bool, can_provide_rotation_rate_beta)
29 IPC_STRUCT_MEMBER(double, rotation_rate_beta)
30 IPC_STRUCT_MEMBER(bool, can_provide_rotation_rate_gamma)
31 IPC_STRUCT_MEMBER(double, rotation_rate_gamma)
32 IPC_STRUCT_MEMBER(bool, can_provide_interval)
33 IPC_STRUCT_MEMBER(double, interval)
34 IPC_STRUCT_END()
36 // Messages sent from the browser to the renderer.
38 // Notification that the device's motion has changed.
39 IPC_MESSAGE_ROUTED1(DeviceMotionMsg_Updated,
40 DeviceMotionMsg_Updated_Params)
42 // Messages sent from the renderer to the browser.
44 // A RenderView requests to start receiving device motion updates.
45 IPC_MESSAGE_CONTROL1(DeviceMotionHostMsg_StartUpdating,
46 int /* render_view_id */)
48 // A RenderView requests to stop receiving device motion updates.
49 IPC_MESSAGE_CONTROL1(DeviceMotionHostMsg_StopUpdating,
50 int /* render_view_id */)