Index: content/browser/renderer_host/input/gesture_event_queue.cc |
diff --git a/content/browser/renderer_host/input/gesture_event_queue.cc b/content/browser/renderer_host/input/gesture_event_queue.cc |
index b16923be17f7234c5e4d69ceb04979253800eca9..af2d6c429bb1dcd8f50dcdf361647effdb62a657 100644 |
--- a/content/browser/renderer_host/input/gesture_event_queue.cc |
+++ b/content/browser/renderer_host/input/gesture_event_queue.cc |
@@ -245,6 +245,16 @@ void GestureEventQueue::ForwardGestureEvent( |
client_->SendGestureEventImmediately(gesture_event); |
} |
+void GestureEventQueue::Recycle() { |
+ fling_in_progress_ = false; |
+ scrolling_in_progress_ = false; |
+ ignore_next_ack_ = false; |
+ coalesced_gesture_events_.clear(); |
+ debouncing_deferral_queue_.clear(); |
+ touchpad_tap_suppression_controller_.Reset(); |
+ touchscreen_tap_suppression_controller_.Reset(); |
+} |
+ |
void GestureEventQueue::SendScrollEndingEventsNow() { |
scrolling_in_progress_ = false; |
if (debouncing_deferral_queue_.empty()) |