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

Unified Diff: ui/events/gesture_detection/motion_event_buffer.cc

Issue 999423003: Set the unique_event_id when converting from TouchEvent to WebTouchEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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: ui/events/gesture_detection/motion_event_buffer.cc
diff --git a/ui/events/gesture_detection/motion_event_buffer.cc b/ui/events/gesture_detection/motion_event_buffer.cc
index 839cce5ff910d3c8c9e4330812feba655b32b6d2..20d685e082d1479c6665c65257a63ab3990369d7 100644
--- a/ui/events/gesture_detection/motion_event_buffer.cc
+++ b/ui/events/gesture_detection/motion_event_buffer.cc
@@ -131,6 +131,7 @@ scoped_ptr<MotionEventGeneric> ResampleMotionEvent(
scoped_ptr<MotionEventGeneric> event;
const size_t pointer_count = event0.GetPointerCount();
DCHECK_EQ(pointer_count, event1.GetPointerCount());
+ LOG(ERROR) << " ResampleMotionEvent pointer_count " << pointer_count;
tdresser 2015/04/16 17:33:34 Remove log.
lanwei 2015/04/20 19:58:59 Done.
for (size_t event0_i = 0; event0_i < pointer_count; ++event0_i) {
int event1_i = event1.FindPointerIndexOfId(event0.GetPointerId(event0_i));
DCHECK_NE(event1_i, -1);
@@ -146,7 +147,6 @@ scoped_ptr<MotionEventGeneric> ResampleMotionEvent(
}
DCHECK(event);
- event->set_id(event0.GetId());
event->set_button_state(event0.GetButtonState());
return event.Pass();
}

Powered by Google App Engine
This is Rietveld 408576698