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

Unified Diff: ash/wm/drag_window_resizer.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/drag_window_controller.cc ('k') | ash/wm/drag_window_resizer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/drag_window_resizer.cc
diff --git a/ash/wm/drag_window_resizer.cc b/ash/wm/drag_window_resizer.cc
index 23a1bcd20a7e69383f9e7381cd6ba4564cee2ce9..6b713081e2c63df00c3f5bcb3984bebd60831ea2 100644
--- a/ash/wm/drag_window_resizer.cc
+++ b/ash/wm/drag_window_resizer.cc
@@ -20,7 +20,7 @@
#include "ui/aura/window_event_dispatcher.h"
#include "ui/base/hit_test.h"
#include "ui/base/ui_base_types.h"
-#include "ui/gfx/screen.h"
+#include "ui/display/screen.h"
#include "ui/wm/core/coordinate_conversion.h"
#include "ui/wm/core/window_util.h"
@@ -55,7 +55,7 @@ void DragWindowResizer::Drag(const gfx::Point& location, int event_flags) {
last_mouse_location_ = location;
// Show a phantom window for dragging in another root window.
- if (gfx::Screen::GetScreen()->GetNumDisplays() > 1) {
+ if (display::Screen::GetScreen()->GetNumDisplays() > 1) {
gfx::Point location_in_screen = location;
::wm::ConvertPointToScreen(GetAuraTarget()->parent(), &location_in_screen);
UpdateDragWindow(GetAuraTarget()->bounds(), location_in_screen);
@@ -74,8 +74,8 @@ void DragWindowResizer::CompleteDrag() {
gfx::Point last_mouse_location_in_screen = last_mouse_location_;
::wm::ConvertPointToScreen(GetAuraTarget()->parent(),
&last_mouse_location_in_screen);
- gfx::Screen* screen = gfx::Screen::GetScreen();
- const gfx::Display dst_display =
+ display::Screen* screen = display::Screen::GetScreen();
+ const display::Display dst_display =
screen->GetDisplayNearestPoint(last_mouse_location_in_screen);
if (dst_display.id() !=
« no previous file with comments | « ash/wm/drag_window_controller.cc ('k') | ash/wm/drag_window_resizer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698