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

Unified Diff: third_party/WebKit/Source/modules/webmidi/MIDIMessageEvent.h

Issue 2542693002: Use WTF::TimeTicks to represent timestamp in Platform/Core event types (Closed)
Patch Set: rebase Created 4 years 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/modules/webmidi/MIDIMessageEvent.h
diff --git a/third_party/WebKit/Source/modules/webmidi/MIDIMessageEvent.h b/third_party/WebKit/Source/modules/webmidi/MIDIMessageEvent.h
index c0ca09bab4d8b572867bb2c1570fcfd7c6bb081f..566e6a3a2d0d2b035a652968bfbd24ec9480538d 100644
--- a/third_party/WebKit/Source/modules/webmidi/MIDIMessageEvent.h
+++ b/third_party/WebKit/Source/modules/webmidi/MIDIMessageEvent.h
@@ -64,7 +64,10 @@ class MIDIMessageEvent final : public Event {
private:
MIDIMessageEvent(double timeStamp, DOMUint8Array* data)
- : Event(EventTypeNames::midimessage, true, false, timeStamp),
+ : Event(EventTypeNames::midimessage,
+ true,
+ false,
+ TimeTicks() + TimeDelta::FromSecondsD(timeStamp)),
m_data(data) {}
MIDIMessageEvent(const AtomicString& type,
« no previous file with comments | « third_party/WebKit/Source/core/page/DragController.cpp ('k') | third_party/WebKit/Source/platform/PlatformEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698