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

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

Issue 6688054: Move geolocation, desktop notification, and device orientation into their own message files. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « content/common/desktop_notification_messages.h ('k') | content/common/geolocation_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2011 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 orientation.
6 // Multiply-included message file, hence no include guard.
7
8 #include "ipc/ipc_message_macros.h"
9
10 #define IPC_MESSAGE_START DeviceOrientationMsgStart
11
12 IPC_STRUCT_BEGIN(DeviceOrientationMsg_Updated_Params)
13 // These fields have the same meaning as in device_orientation::Orientation.
14 IPC_STRUCT_MEMBER(bool, can_provide_alpha)
15 IPC_STRUCT_MEMBER(double, alpha)
16 IPC_STRUCT_MEMBER(bool, can_provide_beta)
17 IPC_STRUCT_MEMBER(double, beta)
18 IPC_STRUCT_MEMBER(bool, can_provide_gamma)
19 IPC_STRUCT_MEMBER(double, gamma)
20 IPC_STRUCT_END()
21
22 // Messages sent from the browser to the renderer.
23
24 // Notification that the device's orientation has changed.
25 IPC_MESSAGE_ROUTED1(DeviceOrientationMsg_Updated,
26 DeviceOrientationMsg_Updated_Params)
27
28 // Messages sent from the renderer to the browser.
29
30 // A RenderView requests to start receiving device orientation updates.
31 IPC_MESSAGE_CONTROL1(DeviceOrientationHostMsg_StartUpdating,
32 int /* render_view_id */)
33
34 // A RenderView requests to stop receiving device orientation updates.
35 IPC_MESSAGE_CONTROL1(DeviceOrientationHostMsg_StopUpdating,
36 int /* render_view_id */)
OLDNEW
« no previous file with comments | « content/common/desktop_notification_messages.h ('k') | content/common/geolocation_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698