| Index: ash/wm/dock/docked_window_resizer_unittest.cc
|
| diff --git a/ash/wm/dock/docked_window_resizer_unittest.cc b/ash/wm/dock/docked_window_resizer_unittest.cc
|
| index 1e8fce7c5141d5f9811a53aeb7e65f5c8b0ec4f6..a1ca45246543145f97be87037f23c824d83e1212 100644
|
| --- a/ash/wm/dock/docked_window_resizer_unittest.cc
|
| +++ b/ash/wm/dock/docked_window_resizer_unittest.cc
|
| @@ -100,8 +100,8 @@ class DockedWindowResizerTest
|
| if (bounds.IsEmpty()) {
|
| ParentWindowInPrimaryRootWindow(window);
|
| } else {
|
| - gfx::Display display =
|
| - gfx::Screen::GetScreen()->GetDisplayMatching(bounds);
|
| + display::Display display =
|
| + display::Screen::GetScreen()->GetDisplayMatching(bounds);
|
| aura::Window* root = ash::Shell::GetInstance()
|
| ->window_tree_host_manager()
|
| ->GetRootWindowForDisplayId(display.id());
|
| @@ -213,8 +213,9 @@ class DockedWindowResizerTest
|
| ASSERT_NO_FATAL_FAILURE(DragStartAtOffsetFromWindowOrigin(window,
|
| grab_x, grab_y));
|
|
|
| - gfx::Rect work_area =
|
| - gfx::Screen::GetScreen()->GetDisplayNearestWindow(window).work_area();
|
| + gfx::Rect work_area = display::Screen::GetScreen()
|
| + ->GetDisplayNearestWindow(window)
|
| + .work_area();
|
| gfx::Point initial_location_in_screen = initial_location_in_parent_;
|
| ::wm::ConvertPointToScreen(window->parent(), &initial_location_in_screen);
|
| // Drag the window left or right to the edge (or almost to it).
|
| @@ -605,8 +606,9 @@ TEST_P(DockedWindowResizerTest, AttachOneAutoHideShelf) {
|
| EXPECT_EQ(kShellWindowId_DefaultContainer, w2->parent()->id());
|
| EXPECT_TRUE(wm::GetWindowState(w2.get())->IsMaximized());
|
|
|
| - gfx::Rect work_area =
|
| - gfx::Screen::GetScreen()->GetDisplayNearestWindow(w1.get()).work_area();
|
| + gfx::Rect work_area = display::Screen::GetScreen()
|
| + ->GetDisplayNearestWindow(w1.get())
|
| + .work_area();
|
| DockedWindowLayoutManager* manager =
|
| DockedWindowLayoutManager::Get(wm::WmWindowAura::Get(w1.get()));
|
|
|
| @@ -619,8 +621,9 @@ TEST_P(DockedWindowResizerTest, AttachOneAutoHideShelf) {
|
| ash::Shell* shell = ash::Shell::GetInstance();
|
| shell->SetShelfAutoHideBehavior(SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS,
|
| shell->GetPrimaryRootWindow());
|
| - work_area =
|
| - gfx::Screen::GetScreen()->GetDisplayNearestWindow(w1.get()).work_area();
|
| + work_area = display::Screen::GetScreen()
|
| + ->GetDisplayNearestWindow(w1.get())
|
| + .work_area();
|
| // Docked window should be centered vertically in the work area.
|
| EXPECT_EQ(work_area.CenterPoint().y(), w1->bounds().CenterPoint().y());
|
| // Docked background should extend to the bottom of work area.
|
|
|