Index: content/common/screen_orientation_messages.h |
diff --git a/content/common/screen_orientation_messages.h b/content/common/screen_orientation_messages.h |
index 5cfc6f45299165e893f63af79a22d6994123cd92..f4a9ed524559caab20322d6278e42aedc90f2705 100644 |
--- a/content/common/screen_orientation_messages.h |
+++ b/content/common/screen_orientation_messages.h |
@@ -62,3 +62,17 @@ IPC_MESSAGE_ROUTED2(ScreenOrientationHostMsg_LockRequest, |
// The renderer process requests the browser process to unlock the screen |
// orientation. |
IPC_MESSAGE_ROUTED0(ScreenOrientationHostMsg_Unlock) |
+ |
+// The renderer process is now using the Screen Orientation API and informs the |
+// browser process that it should start accurately listening to the screen |
+// orientation if it wasn't already. |
+// This is only expected to be acted upon when the underlying platform requires |
+// heavy work in order to accurately know the screen orientation. |
+IPC_MESSAGE_CONTROL0(ScreenOrientationHostMsg_StartListening) |
+ |
+// The renderer process is no longer using the Screen Orientation API and |
+// informs the browser process that it can stop accurately listening to the |
+// screen orientation if no other process cares about it. |
+// This is only expected to be acted upon when the underlying platform requires |
+// heavy work in order to accurately know the screen orientation. |
+IPC_MESSAGE_CONTROL0(ScreenOrientationHostMsg_StopListening) |