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

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

Issue 24312009: Properly forward queued touch events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Unit test Created 7 years, 3 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 358fae9c50d8d50f4cf227992c4c0c07341ca09d..d1f4a6180bfdd3049f32e8ba9a8ddb3c851cb5cc 100644
--- a/content/browser/renderer_host/input/touch_event_queue.h
+++ b/content/browser/renderer_host/input/touch_event_queue.h
@@ -72,6 +72,11 @@ class TouchEventQueue {
CONTENT_EXPORT size_t GetQueueSize() const;
CONTENT_EXPORT const TouchEventWithLatencyInfo& GetLatestEvent() const;
+ // Walks the queue, checking each event for |ShouldForwardToRenderer()|.
+ // If true, forwards the touch event and stops processing further events.
+ // If false, acks the event with |INPUT_EVENT_ACK_STATE_NO_CONSUMER_EXISTS|.
+ void TryForwardNextEventToRenderer();
+
// Pops the touch-event from the top of the queue and sends it to the
// TouchEventQueueClient. This reduces the size of the queue by one.
void PopTouchEventToClient(InputEventAckState ack_result,

Powered by Google App Engine
This is Rietveld 408576698