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

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

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_generic.h
diff --git a/ui/events/gesture_detection/motion_event_generic.h b/ui/events/gesture_detection/motion_event_generic.h
index f12ec440a3083483ac89ff7521c686eaadf9c93c..f88d6e495533d867424f00b8b1146dde8e800830 100644
--- a/ui/events/gesture_detection/motion_event_generic.h
+++ b/ui/events/gesture_detection/motion_event_generic.h
@@ -44,6 +44,7 @@ class GESTURE_DETECTION_EXPORT MotionEventGeneric : public MotionEvent {
// MotionEvent implementation.
int GetId() const override;
+ uint64 GetUniqueId() const override;
Action GetAction() const override;
int GetActionIndex() const override;
size_t GetPointerCount() const override;
@@ -88,6 +89,7 @@ class GESTURE_DETECTION_EXPORT MotionEventGeneric : public MotionEvent {
void set_action(Action action) { action_ = action; }
void set_event_time(base::TimeTicks event_time) { event_time_ = event_time; }
void set_id(int id) { id_ = id; }
+ void set_unique_id(uint64 unique_id) { unique_id_ = unique_id; }
void set_action_index(int action_index) { action_index_ = action_index; }
void set_button_state(int button_state) { button_state_ = button_state; }
void set_flags(int flags) { flags_ = flags; }
@@ -108,6 +110,7 @@ class GESTURE_DETECTION_EXPORT MotionEventGeneric : public MotionEvent {
Action action_;
base::TimeTicks event_time_;
int id_;
+ uint64 unique_id_;
int action_index_;
int button_state_;
int flags_;

Powered by Google App Engine
This is Rietveld 408576698