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

Unified Diff: ui/events/gestures/motion_event_aura.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/gestures/motion_event_aura.cc
diff --git a/ui/events/gestures/motion_event_aura.cc b/ui/events/gestures/motion_event_aura.cc
index 174918fedc5a545da380fd2efd3205e36c3e3258..01df3f6042620f5dd945e786f91d93affda7a1db 100644
--- a/ui/events/gestures/motion_event_aura.cc
+++ b/ui/events/gestures/motion_event_aura.cc
@@ -125,15 +125,12 @@ bool MotionEventAura::OnTouch(const TouchEvent& touch) {
}
UpdateCachedAction(touch);
+ set_unique_event_id(touch.unique_event_id());
sadrul 2015/04/23 16:56:23 For multi-touch motion-events, the 'unique id' of
lanwei 2015/04/24 20:21:09 For the unique_event_id, we only use it when the g
set_flags(touch.flags());
set_event_time(touch.time_stamp() + base::TimeTicks());
return true;
}
-int MotionEventAura::GetId() const {
- return GetPointerId(0);
-}
-
void MotionEventAura::CleanupRemovedTouchPoints(const TouchEvent& event) {
if (event.type() != ET_TOUCH_RELEASED &&
event.type() != ET_TOUCH_CANCELLED) {

Powered by Google App Engine
This is Rietveld 408576698