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

Unified Diff: ash/display/screen_orientation_controller_chromeos.h

Issue 2800963002: [Merge to M58] cros: Treat set rotation for chrome.system.display API in touchview mode as if user … (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « no previous file | ash/display/screen_orientation_controller_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « no previous file | ash/display/screen_orientation_controller_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698