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

Unified Diff: ui/aura/window_event_dispatcher.cc

Issue 565433002: Fix incorrect touch transform before gesture recognition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment. Created 6 years, 3 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') | no next file » | 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 d990082f6f808260703ef7e54c31a6fbec5d96e5..70d4e588f656c979e9f91232a86aabf0c453e14f 100644
--- a/ui/aura/window_event_dispatcher.cc
+++ b/ui/aura/window_event_dispatcher.cc
@@ -159,12 +159,10 @@ DispatchDetails WindowEventDispatcher::DispatchMouseExitAtPoint(
void WindowEventDispatcher::ProcessedTouchEvent(ui::TouchEvent* event,
Window* window,
ui::EventResult result) {
- ui::TouchEvent orig_event(*event, window, this->window());
-
// TODO(tdresser): Move this to PreDispatchTouchEvent, to enable eager
// gesture detection. See crbug.com/410280.
if (!ui::GestureRecognizer::Get()
- ->ProcessTouchEventPreDispatch(orig_event, window)) {
+ ->ProcessTouchEventPreDispatch(*event, window)) {
return;
}
@@ -172,7 +170,7 @@ void WindowEventDispatcher::ProcessedTouchEvent(ui::TouchEvent* event,
// pass an event here.
scoped_ptr<ui::GestureRecognizer::Gestures> gestures(
ui::GestureRecognizer::Get()->ProcessTouchEventOnAsyncAck(
- orig_event, result, window));
+ *event, result, window));
DispatchDetails details = ProcessGestures(gestures.get());
if (details.dispatcher_destroyed)
return;
« no previous file with comments | « ui/aura/window_event_dispatcher.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698