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

Unified Diff: ui/events/gesture_detection/mock_motion_event.h

Issue 212663010: Store the id of a contributing motion event in GestureEventData (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Store motion_event_id, not touch_id. Created 6 years, 9 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/mock_motion_event.h
diff --git a/ui/events/gesture_detection/mock_motion_event.h b/ui/events/gesture_detection/mock_motion_event.h
index f52b849a6b5dbccd3a0c0712d5782bb0054dfd34..4b8dd6cf787f3a5c6090734b71dabf21a180da19 100644
--- a/ui/events/gesture_detection/mock_motion_event.h
+++ b/ui/events/gesture_detection/mock_motion_event.h
@@ -28,6 +28,8 @@ struct MockMotionEvent : public MotionEvent {
virtual Action GetAction() const OVERRIDE;
virtual int GetActionIndex() const OVERRIDE;
virtual size_t GetPointerCount() const OVERRIDE;
+ virtual int GetId() const OVERRIDE;
+ void SetId(int new_id);
jdduke (slow) 2014/04/02 18:33:12 Nit: Please move |SetId()| down by the other utili
tdresser 2014/04/03 14:01:23 Done.
virtual int GetPointerId(size_t pointer_index) const OVERRIDE;
virtual float GetX(size_t pointer_index) const OVERRIDE;
virtual float GetY(size_t pointer_index) const OVERRIDE;
@@ -56,6 +58,7 @@ struct MockMotionEvent : public MotionEvent {
MotionEvent::Action action;
size_t pointer_count;
gfx::PointF points[MAX_POINTERS];
+ int id;
base::TimeTicks time;
};

Powered by Google App Engine
This is Rietveld 408576698