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

Unified Diff: ash/display/screen_ash.cc

Issue 1945903002: Move display_finder to ui/display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 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 | ui/display/BUILD.gn » ('j') | ui/display/display_finder.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/screen_ash.cc
diff --git a/ash/display/screen_ash.cc b/ash/display/screen_ash.cc
index 71cb7a434eaf42d0faa5174c4e962472994f29da..bf45e9f5037cb074b1ae1a99478ef53540944a8e 100644
--- a/ash/display/screen_ash.cc
+++ b/ash/display/screen_ash.cc
@@ -18,8 +18,8 @@
#include "ui/aura/env.h"
#include "ui/aura/window_event_dispatcher.h"
#include "ui/display/display.h"
+#include "ui/display/display_finder.h"
#include "ui/display/screen.h"
-#include "ui/gfx/display_finder.h"
namespace ash {
@@ -52,12 +52,12 @@ class ScreenForShutdown : public display::Screen {
}
display::Display GetDisplayNearestPoint(
const gfx::Point& point) const override {
- return *gfx::FindDisplayNearestPoint(display_list_, point);
+ return *display::FindDisplayNearestPoint(display_list_, point);
}
display::Display GetDisplayMatching(
const gfx::Rect& match_rect) const override {
const display::Display* matching =
- gfx::FindDisplayWithBiggestIntersection(display_list_, match_rect);
+ display::FindDisplayWithBiggestIntersection(display_list_, match_rect);
// Fallback to the primary display if there is no matching display.
return matching ? *matching : GetPrimaryDisplay();
}
@@ -163,7 +163,7 @@ display::Display ScreenAsh::GetDisplayNearestPoint(
// Fallback to the display that has the shortest Manhattan distance from
// the |point|. This is correct in the only areas that matter, namely in the
// corners between the physical screens.
- return *gfx::FindDisplayNearestPoint(
+ return *display::FindDisplayNearestPoint(
GetDisplayManager()->active_display_list(), point);
}
@@ -171,8 +171,9 @@ display::Display ScreenAsh::GetDisplayMatching(
const gfx::Rect& match_rect) const {
if (match_rect.IsEmpty())
return GetDisplayNearestPoint(match_rect.origin());
- const display::Display* matching = gfx::FindDisplayWithBiggestIntersection(
- GetDisplayManager()->active_display_list(), match_rect);
+ const display::Display* matching =
+ display::FindDisplayWithBiggestIntersection(
+ GetDisplayManager()->active_display_list(), match_rect);
// Fallback to the primary display if there is no matching display.
return matching ? *matching : GetPrimaryDisplay();
}
« no previous file with comments | « no previous file | ui/display/BUILD.gn » ('j') | ui/display/display_finder.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698