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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/desktop_notification_messages.h ('k') | content/common/geolocation_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/device_orientation_messages.h
===================================================================
--- content/common/device_orientation_messages.h (revision 0)
+++ content/common/device_orientation_messages.h (revision 0)
@@ -0,0 +1,36 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// IPC messages for device orientation.
+// Multiply-included message file, hence no include guard.
+
+#include "ipc/ipc_message_macros.h"
+
+#define IPC_MESSAGE_START DeviceOrientationMsgStart
+
+IPC_STRUCT_BEGIN(DeviceOrientationMsg_Updated_Params)
+ // These fields have the same meaning as in device_orientation::Orientation.
+ IPC_STRUCT_MEMBER(bool, can_provide_alpha)
+ IPC_STRUCT_MEMBER(double, alpha)
+ IPC_STRUCT_MEMBER(bool, can_provide_beta)
+ IPC_STRUCT_MEMBER(double, beta)
+ IPC_STRUCT_MEMBER(bool, can_provide_gamma)
+ IPC_STRUCT_MEMBER(double, gamma)
+IPC_STRUCT_END()
+
+// Messages sent from the browser to the renderer.
+
+// Notification that the device's orientation has changed.
+IPC_MESSAGE_ROUTED1(DeviceOrientationMsg_Updated,
+ DeviceOrientationMsg_Updated_Params)
+
+// Messages sent from the renderer to the browser.
+
+// A RenderView requests to start receiving device orientation updates.
+IPC_MESSAGE_CONTROL1(DeviceOrientationHostMsg_StartUpdating,
+ int /* render_view_id */)
+
+// A RenderView requests to stop receiving device orientation updates.
+IPC_MESSAGE_CONTROL1(DeviceOrientationHostMsg_StopUpdating,
+ int /* render_view_id */)
Property changes on: content\common\device_orientation_messages.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« 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