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 2db2070588d7790266f8d78d63529362d776a34a..d37cb80cbae74d0cf6c362bf0758fd4b01d9bba4 100644 |
--- a/ash/display/screen_orientation_controller_chromeos.h |
+++ b/ash/display/screen_orientation_controller_chromeos.h |
@@ -79,6 +79,9 @@ class ASH_EXPORT ScreenOrientationController |
// user rotation lock. |
void ToggleUserRotationLock(); |
+ // Set locked to the given |rotation| and save it. |
+ void SetLockToRotation(display::Display::Rotation rotation); |
+ |
// WmActivationObserver: |
void OnWindowActivated(WmWindow* gained_active, |
WmWindow* lost_active) override; |
@@ -109,6 +112,9 @@ class ASH_EXPORT ScreenOrientationController |
void SetRotationLockedInternal(bool rotation_locked); |
+ // A helper method that set locked to the given |orientation| and save it. |
+ void SetLockToOrientation(blink::WebScreenOrientationLockType orientation); |
+ |
// Sets the display rotation to |rotation|. Future accelerometer updates |
// should not be used to change the rotation. SetRotationLocked(false) removes |
// the rotation lock. |