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

Unified Diff: ash/display/display_manager.h

Issue 1071353003: Prevent DisplayPreferences from saving incorrect rotations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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
« no previous file with comments | « ash/display/display_info_unittest.cc ('k') | ash/display/display_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/display_manager.h
diff --git a/ash/display/display_manager.h b/ash/display/display_manager.h
index 9aa686c50526bd0ee734ae37f76efb983221aec2..5b17d0eaa2130a53c18a58505f0b357c6a3c4c7a 100644
--- a/ash/display/display_manager.h
+++ b/ash/display/display_manager.h
@@ -141,8 +141,11 @@ class ASH_EXPORT DisplayManager
// display's bounds change.
void SetOverscanInsets(int64 display_id, const gfx::Insets& insets_in_dip);
- // Sets the display's rotation.
- void SetDisplayRotation(int64 display_id, gfx::Display::Rotation rotation);
+ // Sets the display's rotation for the given |source|. The new |rotation| will
+ // also become active.
+ void SetDisplayRotation(int64 display_id,
+ gfx::Display::Rotation rotation,
+ gfx::Display::RotationSource source);
// Sets the display's ui scale. Returns true if it's successful, or
// false otherwise. TODO(mukai): remove this and merge into
« no previous file with comments | « ash/display/display_info_unittest.cc ('k') | ash/display/display_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698