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

Unified Diff: content/browser/renderer_host/gesture_event_filter.cc

Issue 11418218: Add gestureFlingStart to gestures that can cancel a deferred tapDown (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reupload Created 8 years, 1 month 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/gesture_event_filter.cc
diff --git a/content/browser/renderer_host/gesture_event_filter.cc b/content/browser/renderer_host/gesture_event_filter.cc
index f1e7bf9114832b9aac51607db97a02717b8f61a9..2674c3f1fc1eef8e253ea695f9945f192e803182 100644
--- a/content/browser/renderer_host/gesture_event_filter.cc
+++ b/content/browser/renderer_host/gesture_event_filter.cc
@@ -131,10 +131,6 @@ bool GestureEventFilter::ShouldForwardForTapDeferral(
return ShouldHandleEventNow();
}
return false;
- case WebInputEvent::GestureFlingStart:
- fling_in_progress_ = true;
- coalesced_gesture_events_.push_back(gesture_event);
- return ShouldHandleEventNow();
case WebInputEvent::GestureTapDown:
// GestureTapDown is always paired with either a Tap, DoubleTap, LongPress
// or TapCancel, so it should be impossible to have more than one
@@ -172,6 +168,8 @@ bool GestureEventFilter::ShouldForwardForTapDeferral(
}
coalesced_gesture_events_.push_back(gesture_event);
return ShouldHandleEventNow();
+ case WebInputEvent::GestureFlingStart:
+ fling_in_progress_ = true;
case WebInputEvent::GestureScrollBegin:
case WebInputEvent::GesturePinchBegin:
send_gtd_timer_.Stop();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698