Chromium Code Reviews| 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..cd578464a879bbe54823d609d050cea7feb358f3 100644 |
| --- a/content/browser/renderer_host/input/touch_event_queue.cc |
| +++ b/content/browser/renderer_host/input/touch_event_queue.cc |
| @@ -201,6 +201,25 @@ void TouchEventQueue::FlushQueue() { |
| ui::LatencyInfo()); |
| } |
| +bool TouchEventQueue::IsPendingAckTouchStart(int touch_id) |
| +{ |
|
sadrul
2013/11/19 10:36:44
{ in the previous line
Rick Byers
2013/11/19 22:14:59
Done.
|
| + if (touch_queue_.empty()) |
| + return false; |
| + |
| + const blink::WebTouchEvent& event = |
| + touch_queue_.front()->coalesced_event().event; |
| + if (event.type == blink::WebInputEvent::TouchStart) { |
| + for (unsigned i = 0; i < event.touchesLength; ++i) { |
| + const blink::WebTouchPoint& point = event.touches[i]; |
| + if (point.state == blink::WebTouchPoint::StatePressed && |
| + point.id == touch_id) |
| + return true; |
| + } |
| + } |
| + |
| + return false; |
| +} |
| + |
| size_t TouchEventQueue::GetQueueSize() const { |
| return touch_queue_.size(); |
| } |