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

Unified Diff: content/common/screen_orientation_messages.h

Issue 398013002: Poll for Display rotation on Android 4.0 and 4.1 when needed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: call ScreenOrientationListener on UI thread Created 6 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
Index: content/common/screen_orientation_messages.h
diff --git a/content/common/screen_orientation_messages.h b/content/common/screen_orientation_messages.h
index c2114d615adebb4c54a7cf0e3197ac5a2806cc3c..2defcc71fa55085d6e4aa9767406ef292d668e25 100644
--- a/content/common/screen_orientation_messages.h
+++ b/content/common/screen_orientation_messages.h
@@ -60,3 +60,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)
« no previous file with comments | « content/browser/screen_orientation/screen_orientation_provider_android.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698