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

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: Update for new blink API - no touch ID for now 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..89319ee51a56e2f71f6c9f65f24e6eeeb457ba77 100644
--- a/content/browser/renderer_host/input/touch_event_queue.cc
+++ b/content/browser/renderer_host/input/touch_event_queue.cc
@@ -201,6 +201,15 @@ void TouchEventQueue::FlushQueue() {
ui::LatencyInfo());
}
+bool TouchEventQueue::IsPendingAckTouchStart() const {
+ if (touch_queue_.empty())
jdduke (slow) 2013/11/20 23:03:02 Nit: Could you also DCHECK(!dispatching_touch_ack)
Rick Byers 2013/11/21 02:37:36 Done.
+ 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