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

Unified Diff: public/web/WebInputEvent.h

Issue 1008573002: Add unique_event_id to the WebTouchEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Change the constrctor 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
« no previous file with comments | « Source/web/WebInputEvent.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebInputEvent.h
diff --git a/public/web/WebInputEvent.h b/public/web/WebInputEvent.h
index 845454f8d36e4c8d11bd6776efd523ba2bc061c5..8a1e807a94511e7616efc317547ba5a853c4d6af 100644
--- a/public/web/WebInputEvent.h
+++ b/public/web/WebInputEvent.h
@@ -520,11 +520,17 @@ public:
// generated.
bool causesScrollingIfUncanceled;
- WebTouchEvent()
+ // A unique identifier for the touch event.
+ uint64_t uniqueTouchEventId;
+
+ // Pass the uniqueTouchEventId to the WebTouchEvent's constructor to
+ // guarantee that every object has a valid touch Id.
+ WebTouchEvent(uint64_t uniqueTouchId)
: WebInputEvent(sizeof(WebTouchEvent))
, touchesLength(0)
, cancelable(true)
, causesScrollingIfUncanceled(false)
+ , uniqueTouchEventId(uniqueTouchId)
{
}
};
« no previous file with comments | « Source/web/WebInputEvent.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698