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

Unified Diff: content/browser/renderer_host/input/touch_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/touch_event_queue.h
diff --git a/content/browser/renderer_host/input/touch_event_queue.h b/content/browser/renderer_host/input/touch_event_queue.h
index 3bdab903750f69d119f6f1f077c7f2a89ce3f784..8420a885e33735da1c5d34b297add8c8f937e64e 100644
--- a/content/browser/renderer_host/input/touch_event_queue.h
+++ b/content/browser/renderer_host/input/touch_event_queue.h
@@ -106,6 +106,10 @@ class CONTENT_EXPORT TouchEventQueue {
// Notifies the queue whether the renderer has at least one touch handler.
void OnHasTouchEventHandlers(bool has_handlers);
+ // Empties the queue of touch events, ack'ing each in turn with |ack_state|.
+ // This may result in any number of gesture events being sent to the renderer.
+ void Flush(InputEventAckState flush_ack);
+
// Returns whether the currently pending touch event (waiting ACK) is for
// a touch start event.
bool IsPendingAckTouchStart() const;
@@ -139,10 +143,6 @@ class CONTENT_EXPORT TouchEventQueue {
bool IsTimeoutRunningForTesting() const;
const TouchEventWithLatencyInfo& GetLatestEventForTesting() const;
- // Empties the queue of touch events. This may result in any number of gesture
- // events being sent to the renderer.
- void FlushQueue();
-
// Walks the queue, checking each event with |FilterBeforeForwarding()|.
// If allowed, forwards the touch event and stops processing further events.
// Otherwise, acks the event with |INPUT_EVENT_ACK_STATE_NO_CONSUMER_EXISTS|.

Powered by Google App Engine
This is Rietveld 408576698