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

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

Issue 217163006: Defer synthetic gesture completions until events have been flushed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Restore browser test Created 6 years, 9 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
« no previous file with comments | « no previous file | content/browser/renderer_host/input/gesture_event_queue.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4c340701b590b63d03c31986eb437f89da699439..e02d50702cc27208d2664b2bad8c5cca35e7ca5e 100644
--- a/content/browser/renderer_host/input/gesture_event_queue.h
+++ b/content/browser/renderer_host/input/gesture_event_queue.h
@@ -86,11 +86,16 @@ class CONTENT_EXPORT GestureEventQueue {
// Returns the |TouchpadTapSuppressionController| instance.
TouchpadTapSuppressionController* GetTouchpadTapSuppressionController();
- // Returns whether there are any gesture event in the queue.
- bool HasQueuedGestureEvents() const;
-
void ForwardGestureEvent(const GestureEventWithLatencyInfo& gesture_event);
+ // Whether the queue is expecting a gesture event ack.
+ bool ExpectingGestureAck() const;
+
+ bool empty() const {
+ return coalesced_gesture_events_.empty() &&
+ debouncing_deferral_queue_.empty();
+ }
+
void set_debounce_enabled_for_testing(bool enabled) {
debounce_enabled_ = enabled;
}
« no previous file with comments | « no previous file | content/browser/renderer_host/input/gesture_event_queue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698