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

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..635734208bdbd258e2eb784b5785f9ed8d2ded3e 100644
--- a/ui/events/gesture_detection/motion_event_generic.h
+++ b/ui/events/gesture_detection/motion_event_generic.h
@@ -43,7 +43,7 @@ class GESTURE_DETECTION_EXPORT MotionEventGeneric : public MotionEvent {
~MotionEventGeneric() override;
// MotionEvent implementation.
- int GetId() const override;
+ uint32 GetUniqueEventId() const override;
Action GetAction() const override;
int GetActionIndex() const override;
size_t GetPointerCount() const override;
@@ -87,7 +87,9 @@ 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_event_id(uint32 unique_event_id) {
+ unique_event_id_ = unique_event_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; }
@@ -107,7 +109,7 @@ class GESTURE_DETECTION_EXPORT MotionEventGeneric : public MotionEvent {
Action action_;
base::TimeTicks event_time_;
- int id_;
+ uint32 unique_event_id_;
int action_index_;
int button_state_;
int flags_;
« no previous file with comments | « ui/events/gesture_detection/motion_event_buffer_unittest.cc ('k') | ui/events/gesture_detection/motion_event_generic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698