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

Unified Diff: third_party/WebKit/Source/core/events/UIEventWithKeyState.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/UIEventWithKeyState.h
diff --git a/third_party/WebKit/Source/core/events/UIEventWithKeyState.h b/third_party/WebKit/Source/core/events/UIEventWithKeyState.h
index 3fa0e71caa612d3299cf7f80e121b0b9e072e0bd..68914402691a0b2d9b519a6d0d8080aa200c4d30 100644
--- a/third_party/WebKit/Source/core/events/UIEventWithKeyState.h
+++ b/third_party/WebKit/Source/core/events/UIEventWithKeyState.h
@@ -75,7 +75,11 @@ class CORE_EXPORT UIEventWithKeyState : public UIEvent {
TimeTicks platform_time_stamp,
InputDeviceCapabilities* source_capabilities = nullptr);
UIEventWithKeyState(const AtomicString& type,
- const EventModifierInit& initializer);
+ const EventModifierInit& initializer,
+ TimeTicks platform_time_stamp);
+ UIEventWithKeyState(const AtomicString& type,
+ const EventModifierInit& initializer)
+ : UIEventWithKeyState(type, initializer, TimeTicks::Now()) {}
void InitModifiers(bool ctrl_key,
bool alt_key,
bool shift_key,
« no previous file with comments | « third_party/WebKit/Source/core/events/UIEvent.cpp ('k') | third_party/WebKit/Source/core/events/UIEventWithKeyState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698