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

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

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
« no previous file with comments | « third_party/WebKit/Source/core/events/Event.h ('k') | third_party/WebKit/Source/core/events/MouseEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/events/Event.cpp
diff --git a/third_party/WebKit/Source/core/events/Event.cpp b/third_party/WebKit/Source/core/events/Event.cpp
index 082f1da5bafc87db7cea460f6758d9c2ee17c15e..ffb20274fd9b64524a5285048380c61d7a97914e 100644
--- a/third_party/WebKit/Source/core/events/Event.cpp
+++ b/third_party/WebKit/Source/core/events/Event.cpp
@@ -97,13 +97,15 @@ Event::Event(const AtomicString& event_type,
current_target_(nullptr),
platform_time_stamp_(platform_time_stamp) {}
-Event::Event(const AtomicString& event_type, const EventInit& initializer)
+Event::Event(const AtomicString& event_type,
+ const EventInit& initializer,
+ TimeTicks platform_time_stamp)
: Event(event_type,
initializer.bubbles(),
initializer.cancelable(),
initializer.composed() ? ComposedMode::kComposed
: ComposedMode::kScoped,
- TimeTicks::Now()) {}
+ platform_time_stamp) {}
Event::~Event() {}
« no previous file with comments | « third_party/WebKit/Source/core/events/Event.h ('k') | third_party/WebKit/Source/core/events/MouseEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698