Index: content/browser/web_contents/web_contents_view_aura_browsertest.cc |
diff --git a/content/browser/web_contents/web_contents_view_aura_browsertest.cc b/content/browser/web_contents/web_contents_view_aura_browsertest.cc |
index eb3bdaeb209656835da4057ccedb93e0d80aaa95..4e49a46e841bc875404bc76b3f0a88bd02364880 100644 |
--- a/content/browser/web_contents/web_contents_view_aura_browsertest.cc |
+++ b/content/browser/web_contents/web_contents_view_aura_browsertest.cc |
@@ -335,14 +335,14 @@ IN_PROC_BROWSER_TEST_F(WebContentsViewAuraTest, |
ui::TouchEvent press(ui::ET_TOUCH_PRESSED, |
gfx::Point(bounds.x() + bounds.width() / 2, bounds.y() + 5), |
0, timestamp); |
- dispatcher->AsRootWindowHostDelegate()->OnHostTouchEvent(&press); |
+ dispatcher->AsWindowTreeHostDelegate()->OnHostTouchEvent(&press); |
EXPECT_EQ(1, GetCurrentIndex()); |
timestamp += base::TimeDelta::FromMilliseconds(10); |
ui::TouchEvent move1(ui::ET_TOUCH_MOVED, |
gfx::Point(bounds.right() - 10, bounds.y() + 5), |
0, timestamp); |
- dispatcher->AsRootWindowHostDelegate()->OnHostTouchEvent(&move1); |
+ dispatcher->AsWindowTreeHostDelegate()->OnHostTouchEvent(&move1); |
EXPECT_EQ(1, GetCurrentIndex()); |
// Swipe back from the right edge, back to the left edge, back to the right |
@@ -353,7 +353,7 @@ IN_PROC_BROWSER_TEST_F(WebContentsViewAuraTest, |
ui::TouchEvent inc(ui::ET_TOUCH_MOVED, |
gfx::Point(x, bounds.y() + 5), |
0, timestamp); |
- dispatcher->AsRootWindowHostDelegate()->OnHostTouchEvent(&inc); |
+ dispatcher->AsWindowTreeHostDelegate()->OnHostTouchEvent(&inc); |
EXPECT_EQ(1, GetCurrentIndex()); |
} |
@@ -362,7 +362,7 @@ IN_PROC_BROWSER_TEST_F(WebContentsViewAuraTest, |
ui::TouchEvent inc(ui::ET_TOUCH_MOVED, |
gfx::Point(x, bounds.y() + 5), |
0, timestamp); |
- dispatcher->AsRootWindowHostDelegate()->OnHostTouchEvent(&inc); |
+ dispatcher->AsWindowTreeHostDelegate()->OnHostTouchEvent(&inc); |
EXPECT_EQ(1, GetCurrentIndex()); |
} |
@@ -371,7 +371,7 @@ IN_PROC_BROWSER_TEST_F(WebContentsViewAuraTest, |
ui::TouchEvent inc(ui::ET_TOUCH_MOVED, |
gfx::Point(x, bounds.y() + 5), |
0, timestamp); |
- dispatcher->AsRootWindowHostDelegate()->OnHostTouchEvent(&inc); |
+ dispatcher->AsWindowTreeHostDelegate()->OnHostTouchEvent(&inc); |
EXPECT_EQ(1, GetCurrentIndex()); |
} |