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

Unified Diff: chrome/common/render_messages_internal.h

Issue 2858049: Chromium plumbing for Device Orientation. (Closed)
Patch Set: Fixes after try bot runs Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/device_orientation_dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/render_messages_internal.h
diff --git a/chrome/common/render_messages_internal.h b/chrome/common/render_messages_internal.h
index 95389c468d4d0666c7851f6014af2167ff29a099..3484d300475a7953c89103cbe8de5f1f48f3afa2 100644
--- a/chrome/common/render_messages_internal.h
+++ b/chrome/common/render_messages_internal.h
@@ -990,6 +990,10 @@ IPC_BEGIN_MESSAGES(View)
// ViewHostMsg_SpeechInput_StartRecognition.
IPC_MESSAGE_ROUTED0(ViewMsg_SpeechInput_RecognitionComplete)
+ // Notification that the device's orientation has changed.
+ IPC_MESSAGE_ROUTED1(ViewMsg_DeviceOrientationUpdated,
+ ViewMsg_DeviceOrientationUpdated_Params)
+
IPC_END_MESSAGES(View)
@@ -2583,4 +2587,15 @@ IPC_BEGIN_MESSAGES(ViewHost)
IPC_MESSAGE_CONTROL1(ViewHostMsg_SpeechInput_StopRecording,
int /* render_view_id */)
+ //---------------------------------------------------------------------------
+ // Device orientation services messages:
+
+ // A RenderView requests to start receiving device orientation updates.
+ IPC_MESSAGE_CONTROL1(ViewHostMsg_DeviceOrientation_StartUpdating,
+ int /* render_view_id */)
+
+ // A RenderView requests to stop receiving device orientation updates.
+ IPC_MESSAGE_CONTROL1(ViewHostMsg_DeviceOrientation_StopUpdating,
+ int /* render_view_id */)
+
IPC_END_MESSAGES(ViewHost)
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/device_orientation_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698