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

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

Issue 2099213002: Web MIDI: prepare to deprecate MIDIMessageEvent::receivedTime (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 5 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/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 b8f036b8e4a843a8ff8c9a5a10becb70a2860cb5..dceb77c3202abac7eb0df286be7c808fc59e335b 100644
--- a/third_party/WebKit/Source/modules/webmidi/MIDIMessageEvent.h
+++ b/third_party/WebKit/Source/modules/webmidi/MIDIMessageEvent.h
@@ -37,6 +37,7 @@
namespace blink {
class MIDIMessageEventInit;
+class ExecutionContext;
class MIDIMessageEvent final : public Event {
DEFINE_WRAPPERTYPEINFO();
@@ -51,9 +52,9 @@ public:
return new MIDIMessageEvent(receivedTime, data);
}
- static MIDIMessageEvent* create(const AtomicString& type, const MIDIMessageEventInit& initializer)
+ static MIDIMessageEvent* create(ExecutionContext* context, const AtomicString& type, const MIDIMessageEventInit& initializer)
{
- return new MIDIMessageEvent(type, initializer);
+ return new MIDIMessageEvent(context, type, initializer);
}
double receivedTime() { return m_receivedTime; }
@@ -76,7 +77,7 @@ private:
, m_receivedTime(receivedTime)
, m_data(data) { }
- MIDIMessageEvent(const AtomicString& type, const MIDIMessageEventInit& initializer);
+ MIDIMessageEvent(ExecutionContext*, const AtomicString& type, const MIDIMessageEventInit& initializer);
double m_receivedTime;
Member<DOMUint8Array> m_data;
« no previous file with comments | « third_party/WebKit/Source/core/frame/UseCounter.h ('k') | third_party/WebKit/Source/modules/webmidi/MIDIMessageEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698