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

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

Issue 188833004: [Android] Properly disable the touch ack timeout during a touch sequence (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@input_log_verbose
Patch Set: Timeout tweaks 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
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 6c50c329e85938dbeb53b6725ef738fad1fe481f..a0fca696915e0d8ee8590711aa10ceecc0e6f5a2 100644
--- a/content/browser/renderer_host/input/touch_event_queue.h
+++ b/content/browser/renderer_host/input/touch_event_queue.h
@@ -9,6 +9,7 @@
#include <map>
#include "base/basictypes.h"
+#include "base/time/time.h"
#include "content/common/content_export.h"
#include "content/port/browser/event_with_latency_info.h"
#include "content/port/common/input_event_ack_state.h"
@@ -93,8 +94,9 @@ class CONTENT_EXPORT TouchEventQueue {
bool IsPendingAckTouchStart() const;
// Sets whether a delayed touch ack will cancel and flush the current
- // touch sequence.
- void SetAckTimeoutEnabled(bool enabled, size_t ack_timeout_delay_ms);
+ // touch sequence. Note that, if the timeout was previously disabled, enabling
+ // it will take effect only for the following touch sequence.
+ void SetAckTimeoutEnabled(bool enabled, base::TimeDelta ack_timeout_delay);
bool empty() const WARN_UNUSED_RESULT {
return touch_queue_.empty();

Powered by Google App Engine
This is Rietveld 408576698