Index: content/browser/renderer_host/input/synthetic_gesture_target_aura.cc |
diff --git a/content/browser/renderer_host/input/synthetic_gesture_target_aura.cc b/content/browser/renderer_host/input/synthetic_gesture_target_aura.cc |
index 123999ed784449f9439a09f0fa4d89b87a194e21..5dad88d65634aa571154d2681aa337819fd85db6 100644 |
--- a/content/browser/renderer_host/input/synthetic_gesture_target_aura.cc |
+++ b/content/browser/renderer_host/input/synthetic_gesture_target_aura.cc |
@@ -31,11 +31,12 @@ void SyntheticGestureTargetAura::DispatchWebTouchEventToPlatform( |
DCHECK(conversion_success); |
aura::Window* window = GetWindow(); |
- aura::WindowEventDispatcher* dispatcher = window->GetDispatcher(); |
+ aura::WindowTreeHost* host = window->GetHost(); |
for (ScopedVector<ui::TouchEvent>::iterator iter = events.begin(), |
end = events.end(); iter != end; ++iter) { |
- (*iter)->ConvertLocationToTarget(window, dispatcher->window()); |
- ui::EventDispatchDetails details = dispatcher->OnEventFromSource(*iter); |
+ (*iter)->ConvertLocationToTarget(window, host->window()); |
+ ui::EventDispatchDetails details = |
+ host->dispatcher()->OnEventFromSource(*iter); |
if (details.dispatcher_destroyed) |
break; |
} |
@@ -53,7 +54,7 @@ void SyntheticGestureTargetAura::DispatchWebMouseWheelEventToPlatform( |
aura::Window* window = GetWindow(); |
wheel_event.ConvertLocationToTarget(window, window->GetRootWindow()); |
ui::EventDispatchDetails details = |
- window->GetDispatcher()->OnEventFromSource(&wheel_event); |
+ window->GetHost()->dispatcher()->OnEventFromSource(&wheel_event); |
if (details.dispatcher_destroyed) |
return; |
} |
@@ -120,7 +121,7 @@ void SyntheticGestureTargetAura::DispatchWebMouseEventToPlatform( |
aura::Window* window = GetWindow(); |
mouse_event.ConvertLocationToTarget(window, window->GetRootWindow()); |
ui::EventDispatchDetails details = |
- window->GetDispatcher()->OnEventFromSource(&mouse_event); |
+ window->GetHost()->dispatcher()->OnEventFromSource(&mouse_event); |
if (details.dispatcher_destroyed) |
return; |
} |