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

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: Added unit test for checking Pointer states when other than position changed. Created 5 years, 11 months 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 3c3436af30c98022e80a4299ede90c65bedb99e8..ac3f7c3aba4db6d7f39b2d86a09ce34b85c6726d 100644
--- a/content/browser/renderer_host/input/touch_event_queue.h
+++ b/content/browser/renderer_host/input/touch_event_queue.h
@@ -164,8 +164,9 @@ class CONTENT_EXPORT TouchEventQueue {
// Safely pop the head of the queue.
scoped_ptr<CoalescedWebTouchEvent> PopTouchEvent();
- // Dispatch |touch| to the client.
- void SendTouchEventImmediately(const TouchEventWithLatencyInfo& touch);
+ // Dispatch |touch| to the client. Before dispatching, updates pointer
+ // states in touchmove events for pointers that have not changed position.
+ void SendTouchEventImmediately(TouchEventWithLatencyInfo* touch);
enum PreFilterResult {
ACK_WITH_NO_CONSUMER_EXISTS,
@@ -237,6 +238,9 @@ class CONTENT_EXPORT TouchEventQueue {
// mode.
const TouchScrollingMode touch_scrolling_mode_;
+ // Event is saved to compare pointer positions for new touchmove events.
+ scoped_ptr<blink::WebTouchEvent> last_sent_touchevent_;
+
DISALLOW_COPY_AND_ASSIGN(TouchEventQueue);
};

Powered by Google App Engine
This is Rietveld 408576698