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

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

Issue 2489033005: Web MIDI: deprecate MIDIMessageEvent.receivedTime (Closed)
Patch Set: expectation for virtual Created 4 years, 1 month 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 013dc8955179c99b1052e1da301518430dffda74..c0ca09bab4d8b572867bb2c1570fcfd7c6bb081f 100644
--- a/third_party/WebKit/Source/modules/webmidi/MIDIMessageEvent.h
+++ b/third_party/WebKit/Source/modules/webmidi/MIDIMessageEvent.h
@@ -37,23 +37,20 @@
namespace blink {
class MIDIMessageEventInit;
-class ExecutionContext;
class MIDIMessageEvent final : public Event {
DEFINE_WRAPPERTYPEINFO();
public:
- static MIDIMessageEvent* create(double receivedTime, DOMUint8Array* data) {
- return new MIDIMessageEvent(receivedTime, data);
+ static MIDIMessageEvent* create(double timeStamp, DOMUint8Array* data) {
+ return new MIDIMessageEvent(timeStamp, data);
}
- static MIDIMessageEvent* create(ExecutionContext* context,
- const AtomicString& type,
+ static MIDIMessageEvent* create(const AtomicString& type,
const MIDIMessageEventInit& initializer) {
- return new MIDIMessageEvent(context, type, initializer);
+ return new MIDIMessageEvent(type, initializer);
}
- double receivedTime() { return m_receivedTime; }
DOMUint8Array* data() { return m_data; }
const AtomicString& interfaceName() const override {
@@ -66,16 +63,13 @@ class MIDIMessageEvent final : public Event {
}
private:
- MIDIMessageEvent(double receivedTime, DOMUint8Array* data)
- : Event(EventTypeNames::midimessage, true, false),
- m_receivedTime(receivedTime),
+ MIDIMessageEvent(double timeStamp, DOMUint8Array* data)
+ : Event(EventTypeNames::midimessage, true, false, timeStamp),
m_data(data) {}
- MIDIMessageEvent(ExecutionContext*,
- const AtomicString& type,
+ MIDIMessageEvent(const AtomicString& type,
const MIDIMessageEventInit& initializer);
- double m_receivedTime;
Member<DOMUint8Array> m_data;
};

Powered by Google App Engine
This is Rietveld 408576698