Index: ash/wm/system_gesture_event_filter_unittest.cc |
diff --git a/ash/wm/system_gesture_event_filter_unittest.cc b/ash/wm/system_gesture_event_filter_unittest.cc |
index 65e31519c8064350e239799343f822f14922a988..85bc855c754c3a644ff3d6ded677ee4e8588e52b 100644 |
--- a/ash/wm/system_gesture_event_filter_unittest.cc |
+++ b/ash/wm/system_gesture_event_filter_unittest.cc |
@@ -234,7 +234,8 @@ void MoveToDeviceControlBezelStartPosition( |
gfx::Point(-10, ypos + ypos_half), |
touch_id, |
ui::EventTimeForNow()); |
- root_window->AsRootWindowHostDelegate()->OnHostTouchEvent(&press1); |
+ root_window->GetDispatcher()->AsRootWindowHostDelegate()->OnHostTouchEvent( |
+ &press1); |
// There is a noise filter which will require several calls before it |
// allows the touch event through. |
@@ -276,7 +277,7 @@ void MoveToDeviceControlBezelStartPosition( |
} |
TEST_F(SystemGestureEventFilterTest, LongPressAffordanceStateOnCaptureLoss) { |
- aura::RootWindow* root_window = Shell::GetPrimaryRootWindow(); |
+ aura::Window* root_window = Shell::GetPrimaryRootWindow(); |
aura::test::TestWindowDelegate delegate; |
scoped_ptr<aura::Window> window0( |
@@ -300,7 +301,8 @@ TEST_F(SystemGestureEventFilterTest, LongPressAffordanceStateOnCaptureLoss) { |
gfx::Point(10, 10), |
kTouchId, |
ui::EventTimeForNow()); |
- root_window->AsRootWindowHostDelegate()->OnHostTouchEvent(&press); |
+ root_window->GetDispatcher()->AsRootWindowHostDelegate()->OnHostTouchEvent( |
+ &press); |
EXPECT_TRUE(window1->HasCapture()); |
base::OneShotTimer<internal::LongPressAffordanceHandler>* timer = |
@@ -335,7 +337,7 @@ TEST_F(SystemGestureEventFilterTest, LongPressAffordanceStateOnCaptureLoss) { |
} |
TEST_F(SystemGestureEventFilterTest, MultiFingerSwipeGestures) { |
- aura::RootWindow* root_window = Shell::GetPrimaryRootWindow(); |
+ aura::Window* root_window = Shell::GetPrimaryRootWindow(); |
views::Widget* toplevel = views::Widget::CreateWindowWithContextAndBounds( |
new ResizableWidgetDelegate, root_window, gfx::Rect(0, 0, 600, 600)); |
toplevel->Show(); |
@@ -394,7 +396,7 @@ TEST_F(SystemGestureEventFilterTest, MultiFingerSwipeGestures) { |
TEST_F(SystemGestureEventFilterTest, TwoFingerDrag) { |
gfx::Rect bounds(0, 0, 600, 600); |
- aura::RootWindow* root_window = Shell::GetPrimaryRootWindow(); |
+ aura::Window* root_window = Shell::GetPrimaryRootWindow(); |
views::Widget* toplevel = views::Widget::CreateWindowWithContextAndBounds( |
new ResizableWidgetDelegate, root_window, bounds); |
toplevel->Show(); |
@@ -451,7 +453,7 @@ TEST_F(SystemGestureEventFilterTest, TwoFingerDrag) { |
} |
TEST_F(SystemGestureEventFilterTest, TwoFingerDragTwoWindows) { |
- aura::RootWindow* root_window = Shell::GetPrimaryRootWindow(); |
+ aura::Window* root_window = Shell::GetPrimaryRootWindow(); |
ui::GestureConfiguration::set_max_separation_for_gesture_touches_in_pixels(0); |
views::Widget* first = views::Widget::CreateWindowWithContextAndBounds( |
new ResizableWidgetDelegate, root_window, gfx::Rect(0, 0, 50, 100)); |
@@ -485,7 +487,7 @@ TEST_F(SystemGestureEventFilterTest, TwoFingerDragTwoWindows) { |
TEST_F(SystemGestureEventFilterTest, WindowsWithMaxSizeDontSnap) { |
gfx::Rect bounds(150, 150, 100, 100); |
- aura::RootWindow* root_window = Shell::GetPrimaryRootWindow(); |
+ aura::Window* root_window = Shell::GetPrimaryRootWindow(); |
views::Widget* toplevel = views::Widget::CreateWindowWithContextAndBounds( |
new MaxSizeWidgetDelegate, root_window, bounds); |
toplevel->Show(); |
@@ -544,7 +546,7 @@ TEST_F(SystemGestureEventFilterTest, WindowsWithMaxSizeDontSnap) { |
TEST_F(SystemGestureEventFilterTest, TwoFingerDragEdge) { |
gfx::Rect bounds(0, 0, 100, 100); |
- aura::RootWindow* root_window = Shell::GetPrimaryRootWindow(); |
+ aura::Window* root_window = Shell::GetPrimaryRootWindow(); |
views::Widget* toplevel = views::Widget::CreateWindowWithContextAndBounds( |
new ResizableWidgetDelegate, root_window, bounds); |
toplevel->Show(); |