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

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

Issue 723633003: Reland ScreenOrientationDelegate on ChromeOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix ChromeOS build error Created 6 years, 1 month 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
« no previous file with comments | « ash/shell.cc ('k') | ash/wm/maximize_mode/maximize_mode_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4210f27453dff955f1e3e0668ceac0db15f1a1d2..e103548178e153344057d0911bf09e4e5721e319 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);
« no previous file with comments | « ash/shell.cc ('k') | ash/wm/maximize_mode/maximize_mode_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698