Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(191)

Side by Side Diff: content/common/device_motion_messages.h

Issue 10698046: Implements part of Device Motion in the Renderer (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Resets last_motion_ Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/common/content_message_generator.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 // IPC messages for device motion.
6 // Multiply-included message file, hence no include guard.
7
8 #include "ipc/ipc_message_macros.h"
9
10 #define IPC_MESSAGE_START DeviceMotionMsgStart
11
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()
35
36 // Messages sent from the browser to the renderer.
37
38 // Notification that the device's motion has changed.
39 IPC_MESSAGE_ROUTED1(DeviceMotionMsg_Updated,
40 DeviceMotionMsg_Updated_Params)
41
42 // Messages sent from the renderer to the browser.
43
44 // A RenderView requests to start receiving device motion updates.
45 IPC_MESSAGE_CONTROL1(DeviceMotionHostMsg_StartUpdating,
46 int /* render_view_id */)
47
48 // A RenderView requests to stop receiving device motion updates.
49 IPC_MESSAGE_CONTROL1(DeviceMotionHostMsg_StopUpdating,
50 int /* render_view_id */)
OLDNEW
« no previous file with comments | « content/common/content_message_generator.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698