Index: ash/root_window_controller_unittest.cc |
diff --git a/ash/root_window_controller_unittest.cc b/ash/root_window_controller_unittest.cc |
index 7524b295f2bbea8b6cab56e0e5386f20f33dc044..d31e30b81b39931c082245f50328300bf867b18e 100644 |
--- a/ash/root_window_controller_unittest.cc |
+++ b/ash/root_window_controller_unittest.cc |
@@ -88,25 +88,25 @@ TEST_F(RootWindowControllerTest, MoveWindows_Basic) { |
views::Widget* normal = CreateTestWidget(gfx::Rect(650, 10, 100, 100)); |
EXPECT_EQ(root_windows[1], normal->GetNativeView()->GetRootWindow()); |
- EXPECT_EQ("650,10 100x100", normal->GetWindowScreenBounds().ToString()); |
+ EXPECT_EQ("650,10 100x100", normal->GetWindowBoundsInScreen().ToString()); |
EXPECT_EQ("50,10 100x100", |
- normal->GetNativeView()->GetRootWindowBounds().ToString()); |
+ normal->GetNativeView()->GetBoundsInRootWindow().ToString()); |
views::Widget* maximized = CreateTestWidget(gfx::Rect(700, 10, 100, 100)); |
maximized->Maximize(); |
EXPECT_EQ(root_windows[1], maximized->GetNativeView()->GetRootWindow()); |
#if !defined(OS_WIN) |
// TODO(oshima): Window reports smaller screen size. Investigate why. |
- EXPECT_EQ("600,0 500x500", maximized->GetWindowScreenBounds().ToString()); |
+ EXPECT_EQ("600,0 500x500", maximized->GetWindowBoundsInScreen().ToString()); |
EXPECT_EQ("0,0 500x500", |
- maximized->GetNativeView()->GetRootWindowBounds().ToString()); |
+ maximized->GetNativeView()->GetBoundsInRootWindow().ToString()); |
#endif |
views::Widget* minimized = CreateTestWidget(gfx::Rect(800, 10, 100, 100)); |
minimized->Minimize(); |
EXPECT_EQ(root_windows[1], minimized->GetNativeView()->GetRootWindow()); |
EXPECT_EQ("800,10 100x100", |
- minimized->GetWindowScreenBounds().ToString()); |
+ minimized->GetWindowBoundsInScreen().ToString()); |
views::Widget* fullscreen = CreateTestWidget(gfx::Rect(900, 10, 100, 100)); |
fullscreen->SetFullscreen(true); |
@@ -114,48 +114,48 @@ TEST_F(RootWindowControllerTest, MoveWindows_Basic) { |
#if !defined(OS_WIN) |
// TODO(oshima): Window reports smaller screen size. Investigate why. |
EXPECT_EQ("600,0 500x500", |
- fullscreen->GetWindowScreenBounds().ToString()); |
+ fullscreen->GetWindowBoundsInScreen().ToString()); |
EXPECT_EQ("0,0 500x500", |
- fullscreen->GetNativeView()->GetRootWindowBounds().ToString()); |
+ fullscreen->GetNativeView()->GetBoundsInRootWindow().ToString()); |
#endif |
UpdateDisplay("0+0-600x600"); |
EXPECT_EQ(root_windows[0], normal->GetNativeView()->GetRootWindow()); |
- EXPECT_EQ("50,10 100x100", normal->GetWindowScreenBounds().ToString()); |
+ EXPECT_EQ("50,10 100x100", normal->GetWindowBoundsInScreen().ToString()); |
EXPECT_EQ("50,10 100x100", |
- normal->GetNativeView()->GetRootWindowBounds().ToString()); |
+ normal->GetNativeView()->GetBoundsInRootWindow().ToString()); |
// Maximized area on primary display has 2px (given as |
// kAutoHideSize in shelf_layout_manager.cc) inset at the bottom. |
EXPECT_EQ(root_windows[0], maximized->GetNativeView()->GetRootWindow()); |
EXPECT_EQ("0,0 600x598", |
- maximized->GetWindowScreenBounds().ToString()); |
+ maximized->GetWindowBoundsInScreen().ToString()); |
EXPECT_EQ("0,0 600x598", |
- maximized->GetNativeView()->GetRootWindowBounds().ToString()); |
+ maximized->GetNativeView()->GetBoundsInRootWindow().ToString()); |
EXPECT_EQ(root_windows[0], minimized->GetNativeView()->GetRootWindow()); |
EXPECT_EQ("200,10 100x100", |
- minimized->GetWindowScreenBounds().ToString()); |
+ minimized->GetWindowBoundsInScreen().ToString()); |
EXPECT_EQ(root_windows[0], fullscreen->GetNativeView()->GetRootWindow()); |
EXPECT_TRUE(fullscreen->IsFullscreen()); |
EXPECT_EQ("0,0 600x600", |
- fullscreen->GetWindowScreenBounds().ToString()); |
+ fullscreen->GetWindowBoundsInScreen().ToString()); |
EXPECT_EQ("0,0 600x600", |
- fullscreen->GetNativeView()->GetRootWindowBounds().ToString()); |
+ fullscreen->GetNativeView()->GetBoundsInRootWindow().ToString()); |
// Test if the restore bounds are correctly updated. |
wm::RestoreWindow(maximized->GetNativeView()); |
- EXPECT_EQ("100,10 100x100", maximized->GetWindowScreenBounds().ToString()); |
+ EXPECT_EQ("100,10 100x100", maximized->GetWindowBoundsInScreen().ToString()); |
EXPECT_EQ("100,10 100x100", |
- maximized->GetNativeView()->GetRootWindowBounds().ToString()); |
+ maximized->GetNativeView()->GetBoundsInRootWindow().ToString()); |
fullscreen->SetFullscreen(false); |
EXPECT_EQ("300,10 100x100", |
- fullscreen->GetWindowScreenBounds().ToString()); |
+ fullscreen->GetWindowBoundsInScreen().ToString()); |
EXPECT_EQ("300,10 100x100", |
- fullscreen->GetNativeView()->GetRootWindowBounds().ToString()); |
+ fullscreen->GetNativeView()->GetBoundsInRootWindow().ToString()); |
} |
TEST_F(RootWindowControllerTest, MoveWindows_Modal) { |