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

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

Issue 1050993004: Route touchmove existence notifications to the TouchEventQueue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 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 3a4bbdf4355065faca7457c6fd6693810be26741..48a57f12b248aa250df455ede970994497a9c331 100644
--- a/content/browser/renderer_host/input/touch_event_queue.h
+++ b/content/browser/renderer_host/input/touch_event_queue.h
@@ -86,6 +86,9 @@ class CONTENT_EXPORT TouchEventQueue {
// Notifies the queue whether the renderer has at least one touch handler.
void OnHasTouchEventHandlers(bool has_handlers);
+ // Notifies the queue whether the renderer has at least one touchmove handler.
+ void OnHasTouchMoveEventHandlers(bool has_handlers);
+
// Returns whether the currently pending touch event (waiting ACK) is for
// a touch start event.
bool IsPendingAckTouchStart() const;
@@ -113,7 +116,7 @@ class CONTENT_EXPORT TouchEventQueue {
return touch_queue_.size();
}
- bool has_handlers() const { return has_handlers_; }
+ bool has_handlers() const { return has_handlers_ || has_move_handlers_; }
size_t uncancelable_touch_moves_pending_ack_count() const {
return ack_pending_async_touchmove_ids_.size();
@@ -197,6 +200,9 @@ class CONTENT_EXPORT TouchEventQueue {
// Whether the renderer has at least one touch handler.
bool has_handlers_;
+ // Whether the renderer has at least one touchmove handler.
+ bool has_move_handlers_;
+
// Whether any pointer in the touch sequence reported having a consumer.
bool has_handler_for_current_sequence_;

Powered by Google App Engine
This is Rietveld 408576698