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

Unified Diff: ui/aura/window_event_dispatcher.cc

Issue 503883004: Don't pass touches to gesture recognizer for async acks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove code churn. Created 5 years, 10 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
« no previous file with comments | « ui/aura/window_event_dispatcher.h ('k') | ui/aura/window_event_dispatcher_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window_event_dispatcher.cc
diff --git a/ui/aura/window_event_dispatcher.cc b/ui/aura/window_event_dispatcher.cc
index d0401efa395834e30efe12da167607cd6de9cf8d..1d2c33d08e1754eb3434402bb92eebf62dddea08 100644
--- a/ui/aura/window_event_dispatcher.cc
+++ b/ui/aura/window_event_dispatcher.cc
@@ -157,14 +157,10 @@ DispatchDetails WindowEventDispatcher::DispatchMouseExitAtPoint(
return DispatchMouseEnterOrExit(window, event, ui::ET_MOUSE_EXITED);
}
-void WindowEventDispatcher::ProcessedTouchEvent(ui::TouchEvent* event,
- Window* window,
+void WindowEventDispatcher::ProcessedTouchEvent(Window* window,
ui::EventResult result) {
- // Once we've fully migrated to the eager gesture detector, we won't need to
- // pass an event here.
scoped_ptr<ui::GestureRecognizer::Gestures> gestures(
- ui::GestureRecognizer::Get()->AckAsyncTouchEvent(
- *event, result, window));
+ ui::GestureRecognizer::Get()->AckAsyncTouchEvent(result, window));
DispatchDetails details = ProcessGestures(gestures.get());
if (details.dispatcher_destroyed)
return;
« no previous file with comments | « ui/aura/window_event_dispatcher.h ('k') | ui/aura/window_event_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698