| 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));
|
|
|