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

Unified Diff: content/browser/renderer_host/render_widget_host_view_aura.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: Fix mac build. Created 6 years, 4 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 | « no previous file | ui/aura/gestures/gesture_recognizer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_view_aura.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc
index 49ee8e48f09e47f0b9305899e12443c993a9e26f..cdb7df4f2de135a9ffbeb23316cccea61ca0d63a 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -1140,11 +1140,6 @@ void RenderWidgetHostViewAura::GestureEventAck(
void RenderWidgetHostViewAura::ProcessAckedTouchEvent(
const TouchEventWithLatencyInfo& touch, InputEventAckState ack_result) {
- ScopedVector<ui::TouchEvent> events;
- if (!MakeUITouchEventsFromWebTouchEvents(touch, &events,
- SCREEN_COORDINATES))
- return;
-
aura::WindowTreeHost* host = window_->GetHost();
// |host| is NULL during tests.
if (!host)
@@ -1152,10 +1147,8 @@ void RenderWidgetHostViewAura::ProcessAckedTouchEvent(
ui::EventResult result = (ack_result ==
INPUT_EVENT_ACK_STATE_CONSUMED) ? ui::ER_HANDLED : ui::ER_UNHANDLED;
- for (ScopedVector<ui::TouchEvent>::iterator iter = events.begin(),
- end = events.end(); iter != end; ++iter) {
- host->dispatcher()->ProcessedTouchEvent((*iter), window_, result);
- }
+ for (size_t i = 0; i < touch.event.touchesLength; ++i)
+ host->dispatcher()->ProcessedTouchEvent(window_, result);
sadrul 2014/08/26 20:09:07 With this change, we are going to be ack-ing more
tdresser 2014/08/27 17:40:24 Easy fix, hard test... https://code.google.com/p/
}
scoped_ptr<SyntheticGestureTarget>
« no previous file with comments | « no previous file | ui/aura/gestures/gesture_recognizer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698