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

Unified Diff: ui/aura/window.cc

Issue 1922783002: Move gfx::Display/Screen to display::Display/Screen in aura/events (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
Index: ui/aura/window.cc
diff --git a/ui/aura/window.cc b/ui/aura/window.cc
index 845373aa8baa3b7a75262ba6830075cbfc97d994..4413b210ef40a1a4face41a15261965153cbd038 100644
--- a/ui/aura/window.cc
+++ b/ui/aura/window.cc
@@ -34,11 +34,12 @@
#include "ui/aura/window_tree_host.h"
#include "ui/compositor/compositor.h"
#include "ui/compositor/layer.h"
+#include "ui/display/display.h"
+#include "ui/display/screen.h"
#include "ui/events/event_target_iterator.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/path.h"
#include "ui/gfx/scoped_canvas.h"
-#include "ui/gfx/screen.h"
namespace aura {
@@ -67,8 +68,8 @@ class ScopedCursorHider {
if (hid_cursor_) {
client::CursorClient* cursor_client = client::GetCursorClient(window_);
if (cursor_client) {
- const gfx::Display& display =
- gfx::Screen::GetScreen()->GetDisplayNearestWindow(window_);
+ const display::Display& display =
+ display::Screen::GetScreen()->GetDisplayNearestWindow(window_);
cursor_client->SetDisplay(display);
cursor_client->ShowCursor();
}
@@ -321,7 +322,7 @@ void Window::SetBounds(const gfx::Rect& new_bounds) {
}
void Window::SetBoundsInScreen(const gfx::Rect& new_bounds_in_screen,
- const gfx::Display& dst_display) {
+ const display::Display& dst_display) {
Window* root = GetRootWindow();
if (root) {
aura::client::ScreenPositionClient* screen_position_client =

Powered by Google App Engine
This is Rietveld 408576698