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

Unified Diff: ash/wm/window_positioner.cc

Issue 1924703002: Rename gfx::Display/Screen to display::Display/Screen in ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « ash/wm/window_positioner.h ('k') | ash/wm/window_positioner_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/window_positioner.cc
diff --git a/ash/wm/window_positioner.cc b/ash/wm/window_positioner.cc
index 499fbf70a78ab04f880945b5741dc4d17408a568..dd3de0ac851333a5ef675fdbe22e66233ac973a7 100644
--- a/ash/wm/window_positioner.cc
+++ b/ash/wm/window_positioner.cc
@@ -10,8 +10,8 @@
#include "ash/wm/common/wm_screen_util.h"
#include "ash/wm/common/wm_window.h"
#include "ui/compositor/layer.h"
+#include "ui/display/screen.h"
#include "ui/gfx/geometry/insets.h"
-#include "ui/gfx/screen.h"
namespace ash {
@@ -386,7 +386,7 @@ WindowPositioner::~WindowPositioner() {
}
gfx::Rect WindowPositioner::GetDefaultWindowBounds(
- const gfx::Display& display) {
+ const display::Display& display) {
const gfx::Rect work_area = display.work_area();
// There should be a 'desktop' border around the window at the left and right
// side.
@@ -424,7 +424,7 @@ gfx::Rect WindowPositioner::GetPopupPosition(const gfx::Rect& old_pos) {
const gfx::Rect work_area =
window && window->IsVisible()
? window->GetDisplayNearestWindow().work_area()
- : gfx::Screen::GetScreen()->GetPrimaryDisplay().work_area();
+ : display::Screen::GetScreen()->GetPrimaryDisplay().work_area();
// Only try to reposition the popup when it is not spanning the entire
// screen.
if ((old_pos.width() + popup_position_offset_from_screen_corner_x >=
« no previous file with comments | « ash/wm/window_positioner.h ('k') | ash/wm/window_positioner_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698