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

Unified Diff: ash/display/display_controller.h

Issue 12505005: Store rotation/ui scale to local state. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « ash/display/display_change_observer_x11.cc ('k') | ash/display/display_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/display_controller.h
diff --git a/ash/display/display_controller.h b/ash/display/display_controller.h
index 3927dc2c92b4ec4b8d5da9423eea6b0f2677868b..65260c4fc58e42830959d302ac033b2f1cb4dfcb 100644
--- a/ash/display/display_controller.h
+++ b/ash/display/display_controller.h
@@ -46,10 +46,10 @@ struct ASH_EXPORT DisplayLayout {
};
// Factory method to create DisplayLayout from int values.
// Used for persistence and webui.
- static DisplayLayout FromInts(int position, int offsets);
+ static DisplayLayout FromInts(int position, int offsets, bool mirror);
DisplayLayout();
- DisplayLayout(Position position, int offset);
+ DisplayLayout(Position position, int offset, bool mirrored);
// Returns an inverted display layout.
DisplayLayout Invert() const WARN_UNUSED_RESULT;
@@ -69,6 +69,8 @@ struct ASH_EXPORT DisplayLayout {
// based on the top/left edge of the primary display.
int offset;
+ bool mirrored;
+
// Returns string representation of the layout for debugging/testing.
std::string ToString() const;
};
« no previous file with comments | « ash/display/display_change_observer_x11.cc ('k') | ash/display/display_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698