Fix incorrect touch transform before gesture recognition.

TEST=see crbug.com/412875

BUG=412749

Review URL: https://codereview.chromium.org/565433002

Cr-Commit-Position: refs/heads/master@{#294220}
diff --git a/ui/aura/window_event_dispatcher.cc b/ui/aura/window_event_dispatcher.cc
index d990082..70d4e58 100644
--- a/ui/aura/window_event_dispatcher.cc
+++ b/ui/aura/window_event_dispatcher.cc
@@ -159,12 +159,10 @@
 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 @@
   // 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;
diff --git a/ui/aura/window_event_dispatcher.h b/ui/aura/window_event_dispatcher.h
index 1c2c6f1..8494123 100644
--- a/ui/aura/window_event_dispatcher.h
+++ b/ui/aura/window_event_dispatcher.h
@@ -88,7 +88,8 @@
   // event during the event dispatch. Once the event is properly processed, the
   // window should let the WindowEventDispatcher know about the result of the
   // event processing, so that gesture events can be properly created and
-  // dispatched.
+  // dispatched. |event|'s location should be in the dispatcher's coordinate
+  // space, in DIPs.
   void ProcessedTouchEvent(ui::TouchEvent* event,
                            Window* window,
                            ui::EventResult result);