| Index: Source/modules/webmidi/MIDIConnectionEvent.h
|
| diff --git a/Source/modules/webmidi/MIDIConnectionEvent.h b/Source/modules/webmidi/MIDIConnectionEvent.h
|
| index d5f24083964ec79bc94456de519fb9053a48a47d..9d6c25367b296db66dc841546cb3b0f7a89fb768 100644
|
| --- a/Source/modules/webmidi/MIDIConnectionEvent.h
|
| +++ b/Source/modules/webmidi/MIDIConnectionEvent.h
|
| @@ -41,9 +41,20 @@ class MIDIConnectionEventInit;
|
| class MIDIConnectionEvent final : public Event {
|
| DEFINE_WRAPPERTYPEINFO();
|
| public:
|
| - static PassRefPtrWillBeRawPtr<MIDIConnectionEvent> create();
|
| - static PassRefPtrWillBeRawPtr<MIDIConnectionEvent> create(const AtomicString&, MIDIPort*);
|
| - static PassRefPtrWillBeRawPtr<MIDIConnectionEvent> create(const AtomicString&, const MIDIConnectionEventInit&);
|
| + static PassRefPtrWillBeRawPtr<MIDIConnectionEvent> create()
|
| + {
|
| + return adoptRefWillBeNoop(new MIDIConnectionEvent());
|
| + }
|
| +
|
| + static PassRefPtrWillBeRawPtr<MIDIConnectionEvent> create(MIDIPort* port)
|
| + {
|
| + return adoptRefWillBeNoop(new MIDIConnectionEvent(port));
|
| + }
|
| +
|
| + static PassRefPtrWillBeRawPtr<MIDIConnectionEvent> create(const AtomicString& type, const MIDIConnectionEventInit& initializer)
|
| + {
|
| + return adoptRefWillBeNoop(new MIDIConnectionEvent(type, initializer));
|
| + }
|
|
|
| MIDIPort* port() { return m_port; }
|
|
|
| @@ -52,8 +63,13 @@ public:
|
| DECLARE_VIRTUAL_TRACE();
|
|
|
| private:
|
| - MIDIConnectionEvent();
|
| - MIDIConnectionEvent(const AtomicString&, MIDIPort*);
|
| + MIDIConnectionEvent()
|
| + : Event(EventTypeNames::statechange, false, false) { }
|
| +
|
| + MIDIConnectionEvent(MIDIPort* port)
|
| + : Event(EventTypeNames::statechange, false, false)
|
| + , m_port(port) { }
|
| +
|
| MIDIConnectionEvent(const AtomicString&, const MIDIConnectionEventInit&);
|
|
|
| PersistentWillBeMember<MIDIPort> m_port;
|
|
|