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

Unified Diff: content/browser/renderer_host/input/synthetic_gesture_target_aura.cc

Issue 196383014: Remove window/host accessors from WED; IWYU for WTH (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 9 months 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
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 5dad88d65634aa571154d2681aa337819fd85db6..1fd1e43f28fc4165a76c2a3ed3342d8f45b308af 100644
--- a/content/browser/renderer_host/input/synthetic_gesture_target_aura.cc
+++ b/content/browser/renderer_host/input/synthetic_gesture_target_aura.cc
@@ -8,7 +8,8 @@
#include "content/browser/renderer_host/render_widget_host_view_aura.h"
#include "content/browser/renderer_host/ui_events_helper.h"
#include "ui/aura/window.h"
-#include "ui/aura/window_event_dispatcher.h"
+#include "ui/aura/window_tree_host.h"
+#include "ui/events/event_processor.h"
#include "ui/events/gestures/gesture_configuration.h"
using blink::WebTouchEvent;
@@ -36,7 +37,7 @@ void SyntheticGestureTargetAura::DispatchWebTouchEventToPlatform(
end = events.end(); iter != end; ++iter) {
(*iter)->ConvertLocationToTarget(window, host->window());
ui::EventDispatchDetails details =
- host->dispatcher()->OnEventFromSource(*iter);
+ host->event_processor()->OnEventFromSource(*iter);
if (details.dispatcher_destroyed)
break;
}
@@ -54,7 +55,7 @@ void SyntheticGestureTargetAura::DispatchWebMouseWheelEventToPlatform(
aura::Window* window = GetWindow();
wheel_event.ConvertLocationToTarget(window, window->GetRootWindow());
ui::EventDispatchDetails details =
- window->GetHost()->dispatcher()->OnEventFromSource(&wheel_event);
+ window->GetHost()->event_processor()->OnEventFromSource(&wheel_event);
if (details.dispatcher_destroyed)
return;
}
@@ -121,7 +122,7 @@ void SyntheticGestureTargetAura::DispatchWebMouseEventToPlatform(
aura::Window* window = GetWindow();
mouse_event.ConvertLocationToTarget(window, window->GetRootWindow());
ui::EventDispatchDetails details =
- window->GetHost()->dispatcher()->OnEventFromSource(&mouse_event);
+ window->GetHost()->event_processor()->OnEventFromSource(&mouse_event);
if (details.dispatcher_destroyed)
return;
}

Powered by Google App Engine
This is Rietveld 408576698