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

Unified Diff: ui/aura/window_unittest.cc

Issue 72503002: Remove some pass-thrus on RootWindow API in favor of exposing the RootWindowHost again. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 1 month 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 | « ui/aura/window_tree_host_delegate.h ('k') | ui/shell/minimal_shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window_unittest.cc
diff --git a/ui/aura/window_unittest.cc b/ui/aura/window_unittest.cc
index ceff8d18cd56f6940e9b6921ca51f08b7336fd9b..4ab711099d35c7bd0badab696e1b1d0393f66e86 100644
--- a/ui/aura/window_unittest.cc
+++ b/ui/aura/window_unittest.cc
@@ -373,7 +373,7 @@ TEST_F(WindowTest, MoveCursorToWithTransformRootWindow) {
dispatcher()->MoveCursorTo(gfx::Point(10, 10));
#if !defined(OS_WIN)
gfx::Point mouse_location;
- EXPECT_TRUE(dispatcher()->QueryMouseLocationForTest(&mouse_location));
+ EXPECT_TRUE(dispatcher()->host()->QueryMouseLocation(&mouse_location));
// TODO(yoshiki): fix this to build on Windows. See crbug.com/133413.OD
EXPECT_EQ("50,120", mouse_location.ToString());
#endif
@@ -461,7 +461,7 @@ TEST_F(WindowTest, MoveCursorToWithComplexTransform) {
#if !defined(OS_WIN)
// TODO(yoshiki): fix this to build on Windows. See crbug.com/133413.
gfx::Point mouse_location;
- EXPECT_TRUE(dispatcher()->QueryMouseLocationForTest(&mouse_location));
+ EXPECT_TRUE(dispatcher()->host()->QueryMouseLocation(&mouse_location));
EXPECT_EQ("169,80", mouse_location.ToString());
#endif
EXPECT_EQ("20,53",
@@ -1535,7 +1535,7 @@ TEST_F(WindowTest, IgnoreEventsTest) {
// Tests transformation on the root window.
TEST_F(WindowTest, Transform) {
- gfx::Size size = dispatcher()->GetHostSize();
+ gfx::Size size = dispatcher()->host()->GetBounds().size();
EXPECT_EQ(gfx::Rect(size),
gfx::Screen::GetScreenFor(root_window())->GetDisplayNearestPoint(
gfx::Point()).bounds());
@@ -1557,11 +1557,11 @@ TEST_F(WindowTest, Transform) {
// Host size shouldn't change.
EXPECT_EQ(size.ToString(),
- dispatcher()->GetHostSize().ToString());
+ dispatcher()->host()->GetBounds().size().ToString());
}
TEST_F(WindowTest, TransformGesture) {
- gfx::Size size = dispatcher()->GetHostSize();
+ gfx::Size size = dispatcher()->host()->GetBounds().size();
scoped_ptr<GestureTrackPositionDelegate> delegate(
new GestureTrackPositionDelegate);
@@ -2295,7 +2295,7 @@ TEST_F(WindowTest, VisibilityClientIsVisible) {
// Tests mouse events on window change.
TEST_F(WindowTest, MouseEventsOnWindowChange) {
- gfx::Size size = dispatcher()->GetHostSize();
+ gfx::Size size = dispatcher()->host()->GetBounds().size();
EventGenerator generator(root_window());
generator.MoveMouseTo(50, 50);
« no previous file with comments | « ui/aura/window_tree_host_delegate.h ('k') | ui/shell/minimal_shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698