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

Unified Diff: ash/display/screen_position_controller.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/display/screen_position_controller.h ('k') | ash/display/screen_position_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/screen_position_controller.cc
diff --git a/ash/display/screen_position_controller.cc b/ash/display/screen_position_controller.cc
index 4215f5df4212ccd664710a4b76dc48a2dc062fa2..8373c5e42e03b282091fab54e86dca815419dcfc 100644
--- a/ash/display/screen_position_controller.cc
+++ b/ash/display/screen_position_controller.cc
@@ -18,8 +18,8 @@
#include "ui/aura/window_tracker.h"
#include "ui/aura/window_tree_host.h"
#include "ui/compositor/dip_util.h"
-#include "ui/gfx/display.h"
-#include "ui/gfx/screen.h"
+#include "ui/display/display.h"
+#include "ui/display/screen.h"
#include "ui/wm/core/window_util.h"
#include "ui/wm/public/activation_client.h"
@@ -35,7 +35,7 @@ bool ShouldStayInSameRootWindow(const aura::Window* window) {
// Move all transient children to |dst_root|, including the ones in
// the child windows and transient children of the transient children.
-void MoveAllTransientChildrenToNewRoot(const gfx::Display& display,
+void MoveAllTransientChildrenToNewRoot(const display::Display& display,
aura::Window* window) {
aura::Window* dst_root = Shell::GetInstance()
->window_tree_host_manager()
@@ -123,7 +123,7 @@ void ScreenPositionController::ConvertPointToScreen(
const aura::Window* root = window->GetRootWindow();
aura::Window::ConvertPointToTarget(window, root, point);
const gfx::Point display_origin =
- gfx::Screen::GetScreen()
+ display::Screen::GetScreen()
->GetDisplayNearestWindow(const_cast<aura::Window*>(root))
.bounds()
.origin();
@@ -135,7 +135,7 @@ void ScreenPositionController::ConvertPointFromScreen(
gfx::Point* point) {
const aura::Window* root = window->GetRootWindow();
const gfx::Point display_origin =
- gfx::Screen::GetScreen()
+ display::Screen::GetScreen()
->GetDisplayNearestWindow(const_cast<aura::Window*>(root))
.bounds()
.origin();
@@ -155,7 +155,7 @@ void ScreenPositionController::ConvertHostPointToScreen(
void ScreenPositionController::SetBounds(aura::Window* window,
const gfx::Rect& bounds,
- const gfx::Display& display) {
+ const display::Display& display) {
DCHECK_NE(-1, display.id());
if (!window->parent()->GetProperty(kUsesScreenCoordinatesKey)) {
window->SetBounds(bounds);
@@ -227,7 +227,7 @@ void ScreenPositionController::SetBounds(aura::Window* window,
}
}
gfx::Point origin(bounds.origin());
- const gfx::Point display_origin = gfx::Screen::GetScreen()
+ const gfx::Point display_origin = display::Screen::GetScreen()
->GetDisplayNearestWindow(window)
.bounds()
.origin();
« no previous file with comments | « ash/display/screen_position_controller.h ('k') | ash/display/screen_position_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698