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

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: Relaxed touches state condition for TouchMove events for now 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
« no previous file with comments | « no previous file | content/browser/renderer_host/input/touch_event_queue.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..dff898e08de9ed922b0d58a39a5e319c7e160d46 100644
--- a/content/browser/renderer_host/input/touch_event_queue.h
+++ b/content/browser/renderer_host/input/touch_event_queue.h
@@ -168,8 +168,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 touches state
jdduke (slow) 2015/01/14 16:04:33 Perhaps "...updates pointer states in touchmove ev
USE s.singapati at gmail.com 2015/01/16 14:14:28 Done.
+ // in touchmove event if touch position has not been changed
+ void SendTouchEventImmediately(TouchEventWithLatencyInfo* touch);
enum PreFilterResult {
ACK_WITH_NO_CONSUMER_EXISTS,
@@ -241,6 +242,9 @@ class CONTENT_EXPORT TouchEventQueue {
// mode.
const TouchScrollingMode touch_scrolling_mode_;
+ // Touch event is saved to compare touches position in next TouchMove event
jdduke (slow) 2015/01/14 16:04:33 Maybe "... to compare pointer positions for new to
USE s.singapati at gmail.com 2015/01/16 14:14:28 Done.
+ scoped_ptr<blink::WebTouchEvent> last_sent_touchevent_;
+
DISALLOW_COPY_AND_ASSIGN(TouchEventQueue);
};
« no previous file with comments | « no previous file | content/browser/renderer_host/input/touch_event_queue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698