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

Unified Diff: ash/display/screen_orientation_controller_chromeos.h

Issue 2784043002: cros: Treat set rotation for chrome.system.display API in touchview mode as if user rotation lock (Closed)
Patch Set: Created 3 years, 9 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/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,

Powered by Google App Engine
This is Rietveld 408576698