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

Unified Diff: ash/display/display_controller.h

Issue 10836046: Allow offset for secondary display position in chrome://settings/display. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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/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 7bf18246dbbe9c7b3dd315d0ea01891381b35814..45fa80136a4313f8034ac079c00566f882cc5738 100644
--- a/ash/display/display_controller.h
+++ b/ash/display/display_controller.h
@@ -69,6 +69,11 @@ class ASH_EXPORT DisplayController : public aura::DisplayObserver {
}
void SetSecondaryDisplayLayout(SecondaryDisplayLayout layout);
+ int secondary_display_offset() const {
+ return secondary_display_offset_;
+ }
+ void SetSecondaryDisplayOffset(int offset);
+
void set_dont_warp_mouse(bool dont_warp_mouse) {
dont_warp_mouse_ = dont_warp_mouse;
}
@@ -103,6 +108,10 @@ class ASH_EXPORT DisplayController : public aura::DisplayObserver {
SecondaryDisplayLayout secondary_display_layout_;
+ // The offset of the position of the secondary display. The offset is
+ // based on the top/left edge of the primary display.
+ int secondary_display_offset_;
+
// If true, the mouse pointer can't move from one display to another.
bool dont_warp_mouse_;
« no previous file with comments | « no previous file | ash/display/display_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698