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

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

Issue 67383002: Initial browser-side implementation for touch-action (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tweaks from sadrul/jdduke CR Created 7 years, 1 month 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.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();
}

Powered by Google App Engine
This is Rietveld 408576698