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

Unified Diff: ash/wm/maximize_mode/maximize_mode_controller.h

Issue 648733003: Implement ScreenOrientationDelegate on ChromeOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
Index: ash/wm/maximize_mode/maximize_mode_controller.h
diff --git a/ash/wm/maximize_mode/maximize_mode_controller.h b/ash/wm/maximize_mode/maximize_mode_controller.h
index f96cfd2ca811030754ab973b827913af3f0b3e7e..4d3e6af086407bbc5a397598bc88d9c91f495d2e 100644
--- a/ash/wm/maximize_mode/maximize_mode_controller.h
+++ b/ash/wm/maximize_mode/maximize_mode_controller.h
@@ -76,6 +76,11 @@ class ASH_EXPORT MaximizeModeController
// change the display rotation.
void SetRotationLocked(bool rotation_locked);
+ // Sets the display rotation to |rotation| and prevents future calls to
+ // OnAccelerometerUpdated from changing the rotation. SetRotationLocked(false)
+ // removes the rotation lock.
+ void LockRotation(gfx::Display::Rotation rotation);
+
// Add/Remove observers.
void AddObserver(Observer* observer);
void RemoveObserver(Observer* observer);

Powered by Google App Engine
This is Rietveld 408576698