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

Unified Diff: ash/display/screen_ash.cc

Issue 2254603002: Temporary fix to return only the active displays. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adds Unit tests Created 4 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/screen_ash.cc
diff --git a/ash/display/screen_ash.cc b/ash/display/screen_ash.cc
index 7ec4f86eec0851c4f93e5b756596ac6e654de501..b2b336cb87e4a1c09e46b7f43d405f97e40ddced 100644
--- a/ash/display/screen_ash.cc
+++ b/ash/display/screen_ash.cc
@@ -160,7 +160,7 @@ display::Display ScreenAsh::GetDisplayNearestPoint(
// the |point|. This is correct in the only areas that matter, namely in the
// corners between the physical screens.
return *display::FindDisplayNearestPoint(
- GetDisplayManager()->active_display_list(), point);
+ GetDisplayManager()->active_only_display_list(), point);
}
display::Display ScreenAsh::GetDisplayMatching(
@@ -169,7 +169,7 @@ display::Display ScreenAsh::GetDisplayMatching(
return GetDisplayNearestPoint(match_rect.origin());
const display::Display* matching =
display::FindDisplayWithBiggestIntersection(
- GetDisplayManager()->active_display_list(), match_rect);
+ GetDisplayManager()->active_only_display_list(), match_rect);
// Fallback to the primary display if there is no matching display.
return matching ? *matching : GetPrimaryDisplay();
}

Powered by Google App Engine
This is Rietveld 408576698