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 0ccea2830a8420fbc07cd3f00c17581c7d9abeff..27592449d21d356457ac0ecc0bea64e338797e8e 100644 |
--- a/content/browser/web_contents/web_contents_view_aura_browsertest.cc |
+++ b/content/browser/web_contents/web_contents_view_aura_browsertest.cc |
@@ -150,7 +150,7 @@ class WebContentsViewAuraTest : public ContentBrowserTest { |
NavigateToURL(shell(), test_url); |
aura::Window* content = |
shell()->web_contents()->GetView()->GetContentNativeView(); |
- content->GetRootWindow()->SetHostSize(gfx::Size(800, 600)); |
+ content->GetDispatcher()->SetHostSize(gfx::Size(800, 600)); |
WebContentsImpl* web_contents = |
static_cast<WebContentsImpl*>(shell()->web_contents()); |
@@ -331,21 +331,21 @@ IN_PROC_BROWSER_TEST_F(WebContentsViewAuraTest, |
EXPECT_EQ(1, GetCurrentIndex()); |
aura::Window* content = web_contents->GetView()->GetContentNativeView(); |
- aura::RootWindow* root_window = content->GetRootWindow(); |
+ aura::WindowEventDispatcher* dispatcher = content->GetDispatcher(); |
gfx::Rect bounds = content->GetBoundsInRootWindow(); |
base::TimeDelta timestamp; |
ui::TouchEvent press(ui::ET_TOUCH_PRESSED, |
gfx::Point(bounds.x() + bounds.width() / 2, bounds.y() + 5), |
0, timestamp); |
- root_window->AsRootWindowHostDelegate()->OnHostTouchEvent(&press); |
+ dispatcher->AsRootWindowHostDelegate()->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); |
- root_window->AsRootWindowHostDelegate()->OnHostTouchEvent(&move1); |
+ dispatcher->AsRootWindowHostDelegate()->OnHostTouchEvent(&move1); |
EXPECT_EQ(1, GetCurrentIndex()); |
// Swipe back from the right edge, back to the left edge, back to the right |
@@ -356,7 +356,7 @@ IN_PROC_BROWSER_TEST_F(WebContentsViewAuraTest, |
ui::TouchEvent inc(ui::ET_TOUCH_MOVED, |
gfx::Point(x, bounds.y() + 5), |
0, timestamp); |
- root_window->AsRootWindowHostDelegate()->OnHostTouchEvent(&inc); |
+ dispatcher->AsRootWindowHostDelegate()->OnHostTouchEvent(&inc); |
EXPECT_EQ(1, GetCurrentIndex()); |
} |
@@ -365,7 +365,7 @@ IN_PROC_BROWSER_TEST_F(WebContentsViewAuraTest, |
ui::TouchEvent inc(ui::ET_TOUCH_MOVED, |
gfx::Point(x, bounds.y() + 5), |
0, timestamp); |
- root_window->AsRootWindowHostDelegate()->OnHostTouchEvent(&inc); |
+ dispatcher->AsRootWindowHostDelegate()->OnHostTouchEvent(&inc); |
EXPECT_EQ(1, GetCurrentIndex()); |
} |
@@ -374,7 +374,7 @@ IN_PROC_BROWSER_TEST_F(WebContentsViewAuraTest, |
ui::TouchEvent inc(ui::ET_TOUCH_MOVED, |
gfx::Point(x, bounds.y() + 5), |
0, timestamp); |
- root_window->AsRootWindowHostDelegate()->OnHostTouchEvent(&inc); |
+ dispatcher->AsRootWindowHostDelegate()->OnHostTouchEvent(&inc); |
EXPECT_EQ(1, GetCurrentIndex()); |
} |