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

Unified Diff: content/browser/renderer_host/input/motion_event_android.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: Motion events Created 5 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: content/browser/renderer_host/input/motion_event_android.h
diff --git a/content/browser/renderer_host/input/motion_event_android.h b/content/browser/renderer_host/input/motion_event_android.h
index f4e8c9422ddd7778292257818911c2661c033aac..7da2b03078f6f1d0be787bae6385f158d872354f 100644
--- a/content/browser/renderer_host/input/motion_event_android.h
+++ b/content/browser/renderer_host/input/motion_event_android.h
@@ -59,6 +59,7 @@ class CONTENT_EXPORT MotionEventAndroid : public ui::MotionEvent {
// ui::MotionEvent methods.
int GetId() const override;
+ uint64 GetUniqueId() const override;
Action GetAction() const override;
int GetActionIndex() const override;
size_t GetPointerCount() const override;
@@ -105,6 +106,9 @@ class CONTENT_EXPORT MotionEventAndroid : public ui::MotionEvent {
// DIP coordinates cached/returned by the MotionEventAndroid.
const float pix_to_dip_;
+ // A unique identifier for the Android motion event.
+ const uint64 unique_id_;
+
const base::TimeTicks cached_time_;
const Action cached_action_;
const size_t cached_pointer_count_;

Powered by Google App Engine
This is Rietveld 408576698