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

Unified Diff: ash/display/extended_mouse_warp_controller_unittest.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/extended_mouse_warp_controller.cc ('k') | ash/display/mirror_window_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/extended_mouse_warp_controller_unittest.cc
diff --git a/ash/display/extended_mouse_warp_controller_unittest.cc b/ash/display/extended_mouse_warp_controller_unittest.cc
index 2b52ad91e2543be76fc84010c5870ccd1b652d3e..355dd0f8ad219358d9bcdf410c74f83861ccacf2 100644
--- a/ash/display/extended_mouse_warp_controller_unittest.cc
+++ b/ash/display/extended_mouse_warp_controller_unittest.cc
@@ -10,11 +10,11 @@
#include "ash/shell.h"
#include "ash/test/ash_test_base.h"
#include "ash/test/display_manager_test_api.h"
+#include "ui/display/display.h"
#include "ui/display/manager/display_layout.h"
#include "ui/display/manager/display_layout_builder.h"
+#include "ui/display/screen.h"
#include "ui/events/test/event_generator.h"
-#include "ui/gfx/display.h"
-#include "ui/gfx/screen.h"
namespace ash {
@@ -56,10 +56,12 @@ TEST_F(ExtendedMouseWarpControllerTest, IndicatorBoundsTestOnRight) {
UpdateDisplay("360x360,700x700");
aura::Window::Windows root_windows = Shell::GetAllRootWindows();
- int64_t display_0_id =
- gfx::Screen::GetScreen()->GetDisplayNearestWindow(root_windows[0]).id();
- int64_t display_1_id =
- gfx::Screen::GetScreen()->GetDisplayNearestWindow(root_windows[1]).id();
+ int64_t display_0_id = display::Screen::GetScreen()
+ ->GetDisplayNearestWindow(root_windows[0])
+ .id();
+ int64_t display_1_id = display::Screen::GetScreen()
+ ->GetDisplayNearestWindow(root_windows[1])
+ .id();
DisplayManager* display_manager = Shell::GetInstance()->display_manager();
std::unique_ptr<display::DisplayLayout> layout(
@@ -128,10 +130,12 @@ TEST_F(ExtendedMouseWarpControllerTest, IndicatorBoundsTestOnLeft) {
UpdateDisplay("360x360,700x700");
aura::Window::Windows root_windows = Shell::GetAllRootWindows();
- int64_t display_0_id =
- gfx::Screen::GetScreen()->GetDisplayNearestWindow(root_windows[0]).id();
- int64_t display_1_id =
- gfx::Screen::GetScreen()->GetDisplayNearestWindow(root_windows[1]).id();
+ int64_t display_0_id = display::Screen::GetScreen()
+ ->GetDisplayNearestWindow(root_windows[0])
+ .id();
+ int64_t display_1_id = display::Screen::GetScreen()
+ ->GetDisplayNearestWindow(root_windows[1])
+ .id();
DisplayManager* display_manager = Shell::GetInstance()->display_manager();
std::unique_ptr<display::DisplayLayout> layout(
@@ -169,10 +173,12 @@ TEST_F(ExtendedMouseWarpControllerTest, IndicatorBoundsTestOnTopBottom) {
UpdateDisplay("360x360,700x700");
aura::Window::Windows root_windows = Shell::GetAllRootWindows();
- int64_t display_0_id =
- gfx::Screen::GetScreen()->GetDisplayNearestWindow(root_windows[0]).id();
- int64_t display_1_id =
- gfx::Screen::GetScreen()->GetDisplayNearestWindow(root_windows[1]).id();
+ int64_t display_0_id = display::Screen::GetScreen()
+ ->GetDisplayNearestWindow(root_windows[0])
+ .id();
+ int64_t display_1_id = display::Screen::GetScreen()
+ ->GetDisplayNearestWindow(root_windows[1])
+ .id();
DisplayManager* display_manager = Shell::GetInstance()->display_manager();
std::unique_ptr<display::DisplayLayout> layout(
@@ -223,7 +229,7 @@ TEST_F(ExtendedMouseWarpControllerTest, IndicatorBoundsTestThreeDisplays) {
UpdateDisplay("360x360,700x700,1000x1000");
aura::Window::Windows root_windows = Shell::GetAllRootWindows();
- gfx::Screen* screen = gfx::Screen::GetScreen();
+ display::Screen* screen = display::Screen::GetScreen();
int64_t display_0_id = screen->GetDisplayNearestWindow(root_windows[0]).id();
int64_t display_1_id = screen->GetDisplayNearestWindow(root_windows[1]).id();
int64_t display_2_id = screen->GetDisplayNearestWindow(root_windows[2]).id();
@@ -279,7 +285,7 @@ TEST_F(ExtendedMouseWarpControllerTest,
return;
UpdateDisplay("700x500,500x500,1000x1000");
aura::Window::Windows root_windows = Shell::GetAllRootWindows();
- gfx::Screen* screen = gfx::Screen::GetScreen();
+ display::Screen* screen = display::Screen::GetScreen();
int64_t display_0_id = screen->GetDisplayNearestWindow(root_windows[0]).id();
int64_t display_1_id = screen->GetDisplayNearestWindow(root_windows[1]).id();
int64_t display_2_id = screen->GetDisplayNearestWindow(root_windows[2]).id();
@@ -330,7 +336,7 @@ TEST_F(ExtendedMouseWarpControllerTest,
return;
UpdateDisplay("700x500,500x500,1000x1000");
aura::Window::Windows root_windows = Shell::GetAllRootWindows();
- gfx::Screen* screen = gfx::Screen::GetScreen();
+ display::Screen* screen = display::Screen::GetScreen();
int64_t display_0_id = screen->GetDisplayNearestWindow(root_windows[0]).id();
int64_t display_1_id = screen->GetDisplayNearestWindow(root_windows[1]).id();
int64_t display_2_id = screen->GetDisplayNearestWindow(root_windows[2]).id();
« no previous file with comments | « ash/display/extended_mouse_warp_controller.cc ('k') | ash/display/mirror_window_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698