Index: ash/wm/toplevel_window_event_handler_unittest.cc |
diff --git a/ash/wm/toplevel_window_event_handler_unittest.cc b/ash/wm/toplevel_window_event_handler_unittest.cc |
index c3816196d54600578b4ca95a584c2ee3cd80cadb..34f910a0f724ff5c9d62420c16cd96b923b25b48 100644 |
--- a/ash/wm/toplevel_window_event_handler_unittest.cc |
+++ b/ash/wm/toplevel_window_event_handler_unittest.cc |
@@ -330,8 +330,8 @@ TEST_F(ToplevelWindowEventHandlerTest, BottomRightPastMinimum) { |
TEST_F(ToplevelWindowEventHandlerTest, BottomRightWorkArea) { |
scoped_ptr<aura::Window> target(CreateWindow(HTBOTTOMRIGHT)); |
- gfx::Rect work_area = |
- gfx::Screen::GetDisplayNearestWindow(target.get()).work_area(); |
+ gfx::Rect work_area = Shell::GetScreen()->GetDisplayNearestWindow( |
+ target.get()).work_area(); |
gfx::Point position = target->bounds().origin(); |
// Drag further than work_area bottom. |
DragFromCenterBy(target.get(), 100, work_area.height()); |
@@ -344,8 +344,8 @@ TEST_F(ToplevelWindowEventHandlerTest, BottomRightWorkArea) { |
TEST_F(ToplevelWindowEventHandlerTest, BottomLeftWorkArea) { |
scoped_ptr<aura::Window> target(CreateWindow(HTBOTTOMLEFT)); |
- gfx::Rect work_area = |
- gfx::Screen::GetDisplayNearestWindow(target.get()).work_area(); |
+ gfx::Rect work_area = Shell::GetScreen()->GetDisplayNearestWindow( |
+ target.get()).work_area(); |
gfx::Point position = target->bounds().origin(); |
// Drag further than work_area bottom. |
DragFromCenterBy(target.get(), -30, work_area.height()); |
@@ -359,8 +359,8 @@ TEST_F(ToplevelWindowEventHandlerTest, BottomLeftWorkArea) { |
TEST_F(ToplevelWindowEventHandlerTest, BottomWorkArea) { |
scoped_ptr<aura::Window> target(CreateWindow(HTBOTTOM)); |
- gfx::Rect work_area = |
- gfx::Screen::GetDisplayNearestWindow(target.get()).work_area(); |
+ gfx::Rect work_area = Shell::GetScreen()->GetDisplayNearestWindow( |
+ target.get()).work_area(); |
gfx::Point position = target->bounds().origin(); |
// Drag further than work_area bottom. |
DragFromCenterBy(target.get(), 0, work_area.height()); |
@@ -386,8 +386,8 @@ TEST_F(ToplevelWindowEventHandlerTest, DontDragToNegativeY) { |
// Verifies we don't let windows go bigger than the display width. |
TEST_F(ToplevelWindowEventHandlerTest, DontGotWiderThanScreen) { |
scoped_ptr<aura::Window> target(CreateWindow(HTRIGHT)); |
- gfx::Rect work_area = |
- gfx::Screen::GetDisplayNearestWindow(target.get()).bounds(); |
+ gfx::Rect work_area = Shell::GetScreen()->GetDisplayNearestWindow( |
+ target.get()).bounds(); |
DragFromCenterBy(target.get(), work_area.width() * 2, 0); |
// The y location and height should not have changed. |
EXPECT_EQ(work_area.width(), target->bounds().width()); |