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

Unified Diff: device/screen_orientation/public/interfaces/screen_orientation.mojom

Issue 2890423003: [Media controls] Integrate rotate-to-fullscreen with orientation lock (Closed)
Patch Set: #undef atan2,fmod Created 3 years, 7 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 | « no previous file | services/device/screen_orientation/android/java/src/org/chromium/device/screen_orientation/ScreenOrientationListener.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/screen_orientation/public/interfaces/screen_orientation.mojom
diff --git a/device/screen_orientation/public/interfaces/screen_orientation.mojom b/device/screen_orientation/public/interfaces/screen_orientation.mojom
index c54218843371fb8fb00356a0c42b2c0ab87a4897..074adbed3f757ca26a90d01191324031d21be6f3 100644
--- a/device/screen_orientation/public/interfaces/screen_orientation.mojom
+++ b/device/screen_orientation/public/interfaces/screen_orientation.mojom
@@ -26,4 +26,10 @@ interface ScreenOrientationListener {
// informs the browser process that it can stop accurately listening to the
// screen orientation if no other process cares about it.
Stop();
+
+ // Queries whether accelerometer auto rotation of screen orientation is
+ // enabled, or the user has locked the screen orientation at the OS level.
+ // This can be called at any time, whether or not the listener is started.
+ // It's currently only implemented on Android.
+ IsAutoRotateEnabledByUser() => (bool enabled);
};
« no previous file with comments | « no previous file | services/device/screen_orientation/android/java/src/org/chromium/device/screen_orientation/ScreenOrientationListener.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698