Index: ash/display/screen_orientation_controller_chromeos.h |
diff --git a/ash/display/screen_orientation_controller_chromeos.h b/ash/display/screen_orientation_controller_chromeos.h |
index 069d5177930178938e58920975fd900ae3edb449..1fd12300289a4d3e0fa0a9615fbb6da9f3ebf20f 100644 |
--- a/ash/display/screen_orientation_controller_chromeos.h |
+++ b/ash/display/screen_orientation_controller_chromeos.h |
@@ -46,6 +46,9 @@ class ASH_EXPORT ScreenOrientationController |
ScreenOrientationController(); |
~ScreenOrientationController() override; |
+ static blink::WebScreenOrientationLockType RotationToOrientation( |
+ display::Display::Rotation rotation); |
+ |
// Add/Remove observers. |
void AddObserver(Observer* observer); |
void RemoveObserver(Observer* observer); |
@@ -79,6 +82,9 @@ class ASH_EXPORT ScreenOrientationController |
// user rotation lock. |
void ToggleUserRotationLock(); |
+ // Set Locked to the given |orientation|. |
oshima
2017/03/30 00:44:37
mention that this will be saved
Qiang(Joe) Xu
2017/03/30 01:15:14
Done.
|
+ void SetLockToOrientation(blink::WebScreenOrientationLockType orientation); |
oshima
2017/03/30 00:44:37
can you just take the rotation, and do conversion
Qiang(Joe) Xu
2017/03/30 01:15:14
Done.
|
+ |
// aura::client::ActivationChangeObserver: |
void OnWindowActivated(ActivationReason reason, |
aura::Window* gained_active, |