Chromium Code Reviews| 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 0cc849e642426c39224521d45b6d033f7077d7a2..14e1c4ffe628ff9087e49ec55ecafcd90fc2cfc4 100644 |
| --- a/device/screen_orientation/public/interfaces/screen_orientation.mojom |
| +++ b/device/screen_orientation/public/interfaces/screen_orientation.mojom |
| @@ -11,3 +11,19 @@ interface ScreenOrientation { |
| (ScreenOrientationLockResult result); |
| UnlockOrientation(); |
| }; |
| + |
| +// ScreenOrientationAccurate is expected to be used when the platform requires |
| +// heavy work in order to accurately know the screen orientation. |
| +// For example, on Android, this is required for Jelly Bean, where there is no |
| +// API to be notified of a screen orientation change of 180 degrees. |
| +interface ScreenOrientationAccurate { |
|
blundell
2016/12/20 13:39:18
I suggest we rename this ScreenOrientationListener
leonhsl(Using Gerrit)
2016/12/21 02:48:36
Done.
|
| + // 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. |
| + StartListening(); |
|
blundell
2016/12/20 13:39:18
We can rename these to Start and Stop. So we'll ha
leonhsl(Using Gerrit)
2016/12/21 02:48:36
Done.
|
| + |
| + // 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. |
| + StopListening(); |
| +}; |