Index: ash/wm/toplevel_window_event_filter_unittest.cc |
diff --git a/ash/wm/toplevel_window_event_filter_unittest.cc b/ash/wm/toplevel_window_event_filter_unittest.cc |
index 70b20cbfe393ea5f3dbf7362c6187f839f4ab3ff..1a52a221bb3fe8b601de0a71365b81758a252c06 100644 |
--- a/ash/wm/toplevel_window_event_filter_unittest.cc |
+++ b/ash/wm/toplevel_window_event_filter_unittest.cc |
@@ -349,7 +349,7 @@ TEST_F(ToplevelWindowEventFilterTest, DoubleClickCaptionTogglesMaximize) { |
TEST_F(ToplevelWindowEventFilterTest, BottomRightWorkArea) { |
scoped_ptr<aura::Window> target(CreateWindow(HTBOTTOMRIGHT)); |
gfx::Rect work_area = |
- gfx::Screen::GetMonitorWorkAreaNearestWindow(target.get()); |
+ gfx::Screen::GetMonitorNearestWindow(target.get()).work_area(); |
gfx::Point position = target->bounds().origin(); |
// Drag further than work_area bottom. |
DragFromCenterBy(target.get(), 100, work_area.height()); |
@@ -363,7 +363,7 @@ TEST_F(ToplevelWindowEventFilterTest, BottomRightWorkArea) { |
TEST_F(ToplevelWindowEventFilterTest, BottomLeftWorkArea) { |
scoped_ptr<aura::Window> target(CreateWindow(HTBOTTOMLEFT)); |
gfx::Rect work_area = |
- gfx::Screen::GetMonitorWorkAreaNearestWindow(target.get()); |
+ gfx::Screen::GetMonitorNearestWindow(target.get()).work_area(); |
gfx::Point position = target->bounds().origin(); |
// Drag further than work_area bottom. |
DragFromCenterBy(target.get(), -30, work_area.height()); |
@@ -378,7 +378,7 @@ TEST_F(ToplevelWindowEventFilterTest, BottomLeftWorkArea) { |
TEST_F(ToplevelWindowEventFilterTest, BottomWorkArea) { |
scoped_ptr<aura::Window> target(CreateWindow(HTBOTTOM)); |
gfx::Rect work_area = |
- gfx::Screen::GetMonitorWorkAreaNearestWindow(target.get()); |
+ gfx::Screen::GetMonitorNearestWindow(target.get()).work_area(); |
gfx::Point position = target->bounds().origin(); |
// Drag further than work_area bottom. |
DragFromCenterBy(target.get(), 0, work_area.height()); |
@@ -403,7 +403,8 @@ TEST_F(ToplevelWindowEventFilterTest, DontDragToNegativeY) { |
// Verifies we don't let windows go bigger than the monitor width. |
TEST_F(ToplevelWindowEventFilterTest, DontGotWiderThanScreen) { |
scoped_ptr<aura::Window> target(CreateWindow(HTRIGHT)); |
- gfx::Rect work_area = gfx::Screen::GetMonitorAreaNearestWindow(target.get()); |
+ gfx::Rect work_area = |
+ gfx::Screen::GetMonitorNearestWindow(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()); |