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

Unified Diff: content/browser/renderer_host/input/gesture_event_queue.h

Issue 628763003: Support InputRouter recycling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updates Created 6 years, 2 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
Index: content/browser/renderer_host/input/gesture_event_queue.h
diff --git a/content/browser/renderer_host/input/gesture_event_queue.h b/content/browser/renderer_host/input/gesture_event_queue.h
index 8bc433bfb85237d10c23a06d3322542771ad0f5a..299242cff0acd3bcecb633453c9fa24a5644dadf 100644
--- a/content/browser/renderer_host/input/gesture_event_queue.h
+++ b/content/browser/renderer_host/input/gesture_event_queue.h
@@ -103,6 +103,10 @@ class CONTENT_EXPORT GestureEventQueue {
void ForwardGestureEvent(const GestureEventWithLatencyInfo& gesture_event);
+ // Reset the state of the queue, dropping all pending gestures and preparing
+ // for an entirely new event stream.
+ void Recycle();
+
// Whether the queue is expecting a gesture event ack.
bool ExpectingGestureAck() const;

Powered by Google App Engine
This is Rietveld 408576698