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

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

Issue 788923002: Touch Events - changedTouches list includes non-changed touch points on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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.h
diff --git a/content/browser/renderer_host/input/touch_event_queue.h b/content/browser/renderer_host/input/touch_event_queue.h
index 3bdab903750f69d119f6f1f077c7f2a89ce3f784..0895cfaa9afbec7491329875a100aa4c95dcfa61 100644
--- a/content/browser/renderer_host/input/touch_event_queue.h
+++ b/content/browser/renderer_host/input/touch_event_queue.h
@@ -168,6 +168,11 @@ class CONTENT_EXPORT TouchEventQueue {
// Safely pop the head of the queue.
scoped_ptr<CoalescedWebTouchEvent> PopTouchEvent();
+ // Updates touches state in TouchMove event if touch position
+ // has not been changed and should call SendTouchEventImmediately()
+ void UpdateTouchesStateIfNeededAndSendTouchEvent(
+ TouchEventWithLatencyInfo& touch);
+
// Dispatch |touch| to the client.
void SendTouchEventImmediately(const TouchEventWithLatencyInfo& touch);
@@ -241,6 +246,9 @@ class CONTENT_EXPORT TouchEventQueue {
// mode.
const TouchScrollingMode touch_scrolling_mode_;
+ // TouchMove event is saved to compare touches position in next TouchMove
+ scoped_ptr<TouchEventWithLatencyInfo> last_sent_touchmove_;
+
DISALLOW_COPY_AND_ASSIGN(TouchEventQueue);
};

Powered by Google App Engine
This is Rietveld 408576698