summaryrefslogtreecommitdiffstats
path: root/ash/display/display_util.h
diff options
context:
space:
mode:
authoroshima <oshima@chromium.org>2016-03-24 14:33:23 -0700
committerCommit bot <commit-bot@chromium.org>2016-03-24 21:34:38 +0000
commit77570cbc7acd24938eb6da1bed0d9884f31dcec1 (patch)
tree08ddb6f225ae5fc26f748f56d0ec0681eb1efb6e /ash/display/display_util.h
parent5d4577497a8cdf24c1aaae8e6f4fc6454d2a4e69 (diff)
downloadchromium_src-77570cbc7acd24938eb6da1bed0d9884f31dcec1.zip
chromium_src-77570cbc7acd24938eb6da1bed0d9884f31dcec1.tar.gz
chromium_src-77570cbc7acd24938eb6da1bed0d9884f31dcec1.tar.bz2
Allow moving cursors between connected displays.
* Use ComputeBoundary to detect edges instead of using DisplayPlacement. * This also fixes a bug where wrong key was used when saving preference. BUG=597274 TEST=covered by unit tests. Review URL: https://codereview.chromium.org/1823913002 Cr-Commit-Position: refs/heads/master@{#383153}
Diffstat (limited to 'ash/display/display_util.h')
-rw-r--r--ash/display/display_util.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/ash/display/display_util.h b/ash/display/display_util.h
index f48ad34..3267d70 100644
--- a/ash/display/display_util.h
+++ b/ash/display/display_util.h
@@ -63,7 +63,8 @@ ASH_EXPORT bool SetDisplayUIScale(int64_t display_id, float scale);
bool HasDisplayModeForUIScale(const DisplayInfo& info, float ui_scale);
// Computes the bounds that defines the bounds between two displays.
-void ComputeBoundary(const gfx::Display& primary_display,
+// Returns false if two displays does not intersect.
+bool ComputeBoundary(const gfx::Display& primary_display,
const gfx::Display& secondary_display,
gfx::Rect* primary_edge_in_screen,
gfx::Rect* secondary_edge_in_screen);