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

Unified Diff: ash/content/display/screen_orientation_controller_chromeos.h

Issue 1108343002: Revert of Merge Prevent DisplayPreferences from saving incorrect rotations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2357
Patch Set: Created 5 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
Index: ash/content/display/screen_orientation_controller_chromeos.h
diff --git a/ash/content/display/screen_orientation_controller_chromeos.h b/ash/content/display/screen_orientation_controller_chromeos.h
index 0a84b8cd2964065914bb5798fbb08d4b6ad6b78c..aa45734a24d31fad96436bc201a0d255fefbb27c 100644
--- a/ash/content/display/screen_orientation_controller_chromeos.h
+++ b/ash/content/display/screen_orientation_controller_chromeos.h
@@ -69,11 +69,8 @@
// display rotation.
void SetRotationLocked(bool rotation_locked);
- // Sets the display rotation for the given |source|. The new |rotation| will
- // also become active. Display changed notifications are surpressed for this
- // change.
- void SetDisplayRotation(gfx::Display::Rotation rotation,
- gfx::Display::RotationSource source);
+ // Sets the display rotation and suppresses display notifications.
+ void SetDisplayRotation(gfx::Display::Rotation rotation);
// aura::client::ActivationChangeObserver:
void OnWindowActivated(aura::Window* gained_active,
@@ -105,8 +102,7 @@
// Sets the display rotation to |rotation|. Future accelerometer updates
// should not be used to change the rotation. SetRotationLocked(false) removes
// the rotation lock.
- void LockRotation(gfx::Display::Rotation rotation,
- gfx::Display::RotationSource source);
+ void LockRotation(gfx::Display::Rotation rotation);
// Sets the display rotation based on |lock_orientation|. Future accelerometer
// updates should not be used to change the rotation. SetRotationLocked(false)
« no previous file with comments | « ash/accelerators/accelerator_controller.cc ('k') | ash/content/display/screen_orientation_controller_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698