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

Unified Diff: ash/display/screen_position_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/screen_position_controller.cc ('k') | ash/display/shared_display_edge_indicator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/screen_position_controller_unittest.cc
diff --git a/ash/display/screen_position_controller_unittest.cc b/ash/display/screen_position_controller_unittest.cc
index 3970585b81afa29a00137323dfc187e47b2988c0..e4227a323b8ea3554fd7f49ff756c307720a023c 100644
--- a/ash/display/screen_position_controller_unittest.cc
+++ b/ash/display/screen_position_controller_unittest.cc
@@ -18,8 +18,8 @@
#include "ui/aura/window_tree_host.h"
#include "ui/base/layout.h"
#include "ui/display/manager/display_layout.h"
+#include "ui/display/screen.h"
#include "ui/events/test/event_generator.h"
-#include "ui/gfx/screen.h"
#if defined(OS_WIN)
// TODO(scottmg): RootWindow doesn't get resized immediately on Windows
@@ -119,7 +119,7 @@ TEST_F(ScreenPositionControllerTest, MAYBE_ConvertHostPointToScreen) {
const gfx::Point window_pos(100, 100);
window_->SetBoundsInScreen(
gfx::Rect(window_pos, gfx::Size(100, 100)),
- gfx::Screen::GetScreen()->GetDisplayNearestPoint(window_pos));
+ display::Screen::GetScreen()->GetDisplayNearestPoint(window_pos));
SetSecondaryDisplayLayout(display::DisplayPlacement::RIGHT);
// The point is on the primary root window.
EXPECT_EQ("50,50", ConvertHostPointToScreen(50, 50));
@@ -156,7 +156,7 @@ TEST_F(ScreenPositionControllerTest, MAYBE_ConvertHostPointToScreen) {
const gfx::Point window_pos2(300, 100);
window_->SetBoundsInScreen(
gfx::Rect(window_pos2, gfx::Size(100, 100)),
- gfx::Screen::GetScreen()->GetDisplayNearestPoint(window_pos2));
+ display::Screen::GetScreen()->GetDisplayNearestPoint(window_pos2));
// The point is on the secondary display.
EXPECT_EQ("250,50", ConvertHostPointToScreen(50, 50));
// The point is out of the all root windows.
@@ -201,7 +201,7 @@ TEST_F(ScreenPositionControllerTest, MAYBE_ConvertHostPointToScreenHiDPI) {
// Put |window_| to the primary 2x display.
window_->SetBoundsInScreen(gfx::Rect(20, 20, 50, 50),
- gfx::Screen::GetScreen()->GetPrimaryDisplay());
+ display::Screen::GetScreen()->GetPrimaryDisplay());
// (30, 30) means the host coordinate, so the point is still on the primary
// root window. Since it's 2x, the specified native point was halved.
EXPECT_EQ("15,15", ConvertHostPointToScreen(30, 30));
@@ -227,7 +227,7 @@ TEST_F(ScreenPositionControllerTest, MAYBE_ConvertHostPointToScreenRotate) {
UpdateDisplay("100+100-200x200/r,100+500-200x200/l");
// Put |window_| to the 1st.
window_->SetBoundsInScreen(gfx::Rect(20, 20, 50, 50),
- gfx::Screen::GetScreen()->GetPrimaryDisplay());
+ display::Screen::GetScreen()->GetPrimaryDisplay());
// The point is on the 1st host.
EXPECT_EQ("70,149", ConvertHostPointToScreen(50, 70));
@@ -259,7 +259,7 @@ TEST_F(ScreenPositionControllerTest, MAYBE_ConvertHostPointToScreenUIScale) {
UpdateDisplay("100+100-200x200*2@1.5,100+500-200x200");
// Put |window_| to the 1st.
window_->SetBoundsInScreen(gfx::Rect(20, 20, 50, 50),
- gfx::Screen::GetScreen()->GetPrimaryDisplay());
+ display::Screen::GetScreen()->GetPrimaryDisplay());
// The point is on the 1st host.
EXPECT_EQ("45,45", ConvertHostPointToScreen(60, 60));
« no previous file with comments | « ash/display/screen_position_controller.cc ('k') | ash/display/shared_display_edge_indicator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698