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

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: Add back accidentally removed line 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..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();
}

Powered by Google App Engine
This is Rietveld 408576698