Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1481)

Unified Diff: ash/wm/workspace/multi_window_resize_controller_unittest.cc

Issue 10795013: Rename bounds accessors to be intuitive and consistent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/wm/workspace/multi_window_resize_controller.cc ('k') | ash/wm/workspace/phantom_window_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/workspace/multi_window_resize_controller_unittest.cc
diff --git a/ash/wm/workspace/multi_window_resize_controller_unittest.cc b/ash/wm/workspace/multi_window_resize_controller_unittest.cc
index 4dbf4f20d9f2843ce0b25ad84aa48e5b94d94519..12dc0c92a56577710a3da2aab9cdbdcd9743b128 100644
--- a/ash/wm/workspace/multi_window_resize_controller_unittest.cc
+++ b/ash/wm/workspace/multi_window_resize_controller_unittest.cc
@@ -150,7 +150,7 @@ TEST_F(MultiWindowResizeControllerTest, DeleteWindow) {
// Move the mouse over the resize widget.
ASSERT_TRUE(resize_widget());
- gfx::Rect bounds(resize_widget()->GetWindowScreenBounds());
+ gfx::Rect bounds(resize_widget()->GetWindowBoundsInScreen());
generator.MoveMouseTo(bounds.x() + 1, bounds.y() + 1);
EXPECT_FALSE(HasPendingShow());
EXPECT_TRUE(IsShowing());
@@ -193,7 +193,7 @@ TEST_F(MultiWindowResizeControllerTest, Drag) {
// Move the mouse over the resize widget.
ASSERT_TRUE(resize_widget());
- gfx::Rect bounds(resize_widget()->GetWindowScreenBounds());
+ gfx::Rect bounds(resize_widget()->GetWindowBoundsInScreen());
generator.MoveMouseTo(bounds.x() + 1, bounds.y() + 1);
EXPECT_FALSE(HasPendingShow());
EXPECT_TRUE(IsShowing());
@@ -240,7 +240,7 @@ TEST_F(MultiWindowResizeControllerTest, Three) {
EXPECT_FALSE(HasPendingHide());
// w3 should be picked up when resize is started.
- gfx::Rect bounds(resize_widget()->GetWindowScreenBounds());
+ gfx::Rect bounds(resize_widget()->GetWindowBoundsInScreen());
generator.MoveMouseTo(bounds.x() + 1, bounds.y() + 1);
generator.PressLeftButton();
generator.MoveMouseTo(bounds.x() + 11, bounds.y() + 10);
« no previous file with comments | « ash/wm/workspace/multi_window_resize_controller.cc ('k') | ash/wm/workspace/phantom_window_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698