Index: content/browser/renderer_host/input/touch_event_queue.cc |
diff --git a/content/browser/renderer_host/input/touch_event_queue.cc b/content/browser/renderer_host/input/touch_event_queue.cc |
index ecc12056729c1ec58ffeea36e929288e7f08c5ca..4ea8be040660bc364ef6beabb4e1840b92b0ef5a 100644 |
--- a/content/browser/renderer_host/input/touch_event_queue.cc |
+++ b/content/browser/renderer_host/input/touch_event_queue.cc |
@@ -201,6 +201,16 @@ void TouchEventQueue::FlushQueue() { |
ui::LatencyInfo()); |
} |
+bool TouchEventQueue::IsPendingAckTouchStart() const { |
+ DCHECK(!dispatching_touch_ack_); |
+ if (touch_queue_.empty()) |
+ return false; |
+ |
+ const blink::WebTouchEvent& event = |
+ touch_queue_.front()->coalesced_event().event; |
+ return (event.type == blink::WebInputEvent::TouchStart); |
+} |
+ |
size_t TouchEventQueue::GetQueueSize() const { |
return touch_queue_.size(); |
} |