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

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
Index: ash/display/display_controller.h
diff --git a/ash/display/display_controller.h b/ash/display/display_controller.h
index f625ee55890c28979a57f901a4bc346485688cd7..ac7bb1a1458b54017ecc6182f0ae015d051f9274 100644
--- a/ash/display/display_controller.h
+++ b/ash/display/display_controller.h
@@ -68,6 +68,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;
}
@@ -100,6 +105,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') | chrome/browser/resources/options2/chromeos/display_options.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698