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

Unified Diff: third_party/WebKit/Source/core/events/Event.h

Issue 2834183002: Add time stamp to the constructor of the events (Closed)
Patch Set: Fix typos Created 3 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: third_party/WebKit/Source/core/events/Event.h
diff --git a/third_party/WebKit/Source/core/events/Event.h b/third_party/WebKit/Source/core/events/Event.h
index affe81af50c1a684f4218de65f692f0c44158537..b5414da7158f6f90d7a6eb12e68afbeefd0cd514 100644
--- a/third_party/WebKit/Source/core/events/Event.h
+++ b/third_party/WebKit/Source/core/events/Event.h
@@ -258,7 +258,11 @@ class CORE_EXPORT Event : public GarbageCollectedFinalized<Event>,
bool can_bubble,
bool cancelable,
ComposedMode = ComposedMode::kScoped);
- Event(const AtomicString& type, const EventInit&);
+ Event(const AtomicString& type,
+ const EventInit&,
+ TimeTicks platform_time_stamp);
+ Event(const AtomicString& type, const EventInit& init)
+ : Event(type, init, TimeTicks::Now()) {}
virtual void ReceivedTarget();

Powered by Google App Engine
This is Rietveld 408576698