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

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

Issue 2712963003: mustash: Use ui::chromeos::EventRewriter in mus (Closed)
Patch Set: Fix build issues. Created 3 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 9b101439e41315af96cc0164b867a7531905f0c9..2b0f9ed1059d43af371d0e4827110ea3d4453343 100644
--- a/content/browser/renderer_host/input/synthetic_gesture_target_aura.cc
+++ b/content/browser/renderer_host/input/synthetic_gesture_target_aura.cc
@@ -14,7 +14,7 @@
#include "content/browser/renderer_host/ui_events_helper.h"
#include "ui/aura/window.h"
#include "ui/aura/window_tree_host.h"
-#include "ui/events/event_processor.h"
+#include "ui/events/event_sink.h"
#include "ui/events/event_utils.h"
#include "ui/events/gesture_detection/gesture_configuration.h"
@@ -58,7 +58,7 @@ void SyntheticGestureTargetAura::DispatchWebTouchEventToPlatform(
event->set_location_f(device_location);
event->set_root_location_f(device_root_location);
ui::EventDispatchDetails details =
- host->event_processor()->OnEventFromSource(event.get());
+ host->event_sink()->OnEventFromSource(event.get());
if (details.dispatcher_destroyed)
break;
}
@@ -78,7 +78,7 @@ void SyntheticGestureTargetAura::DispatchWebMouseWheelEventToPlatform(
aura::Window* window = GetWindow();
wheel_event.ConvertLocationToTarget(window, window->GetRootWindow());
ui::EventDispatchDetails details =
- window->GetHost()->event_processor()->OnEventFromSource(&wheel_event);
+ window->GetHost()->event_sink()->OnEventFromSource(&wheel_event);
if (details.dispatcher_destroyed)
return;
}
@@ -159,7 +159,7 @@ void SyntheticGestureTargetAura::DispatchWebMouseEventToPlatform(
aura::Window* window = GetWindow();
mouse_event.ConvertLocationToTarget(window, window->GetRootWindow());
ui::EventDispatchDetails details =
- window->GetHost()->event_processor()->OnEventFromSource(&mouse_event);
+ window->GetHost()->event_sink()->OnEventFromSource(&mouse_event);
if (details.dispatcher_destroyed)
return;
}

Powered by Google App Engine
This is Rietveld 408576698