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); |
}; |