| Index: Source/modules/webmidi/MIDIConnectionEvent.h
|
| diff --git a/Source/modules/webmidi/MIDIConnectionEvent.h b/Source/modules/webmidi/MIDIConnectionEvent.h
|
| index 4e9015a7fcf3ea26c2320b46d6067aea9a8ae0c5..97fa5d34c64550002b70875d3b27842627ac4c90 100644
|
| --- a/Source/modules/webmidi/MIDIConnectionEvent.h
|
| +++ b/Source/modules/webmidi/MIDIConnectionEvent.h
|
| @@ -47,48 +47,22 @@ struct MIDIConnectionEventInit : public EventInit {
|
|
|
| class MIDIConnectionEvent FINAL : public Event {
|
| public:
|
| - static PassRefPtrWillBeRawPtr<MIDIConnectionEvent> create()
|
| - {
|
| - return adoptRefWillBeNoop(new MIDIConnectionEvent());
|
| - }
|
| -
|
| - static PassRefPtrWillBeRawPtr<MIDIConnectionEvent> create(const AtomicString& type, PassRefPtr<MIDIPort> port)
|
| - {
|
| - return adoptRefWillBeNoop(new MIDIConnectionEvent(type, port));
|
| - }
|
| -
|
| - static PassRefPtrWillBeRawPtr<MIDIConnectionEvent> create(const AtomicString& type, const MIDIConnectionEventInit& initializer)
|
| - {
|
| - return adoptRefWillBeNoop(new MIDIConnectionEvent(type, initializer));
|
| - }
|
| + static PassRefPtrWillBeRawPtr<MIDIConnectionEvent> create();
|
| + static PassRefPtrWillBeRawPtr<MIDIConnectionEvent> create(const AtomicString&, PassRefPtrWillBeRawPtr<MIDIPort>);
|
| + static PassRefPtrWillBeRawPtr<MIDIConnectionEvent> create(const AtomicString&, const MIDIConnectionEventInit&);
|
|
|
| - RefPtr<MIDIPort> port() { return m_port; }
|
| + PassRefPtrWillBeRawPtr<MIDIPort> port() { return m_port; }
|
|
|
| virtual const AtomicString& interfaceName() const OVERRIDE { return EventNames::MIDIConnectionEvent; }
|
|
|
| - virtual void trace(Visitor* visitor) OVERRIDE { Event::trace(visitor); }
|
| + virtual void trace(Visitor*) OVERRIDE;
|
|
|
| private:
|
| - MIDIConnectionEvent()
|
| - {
|
| - ScriptWrappable::init(this);
|
| - }
|
| -
|
| - MIDIConnectionEvent(const AtomicString& type, PassRefPtr<MIDIPort> port)
|
| - : Event(type, false, false)
|
| - , m_port(port)
|
| - {
|
| - ScriptWrappable::init(this);
|
| - }
|
| -
|
| - MIDIConnectionEvent(const AtomicString& type, const MIDIConnectionEventInit& initializer)
|
| - : Event(type, initializer)
|
| - , m_port(initializer.port)
|
| - {
|
| - ScriptWrappable::init(this);
|
| - }
|
| + MIDIConnectionEvent();
|
| + MIDIConnectionEvent(const AtomicString&, PassRefPtrWillBeRawPtr<MIDIPort>);
|
| + MIDIConnectionEvent(const AtomicString&, const MIDIConnectionEventInit&);
|
|
|
| - RefPtr<MIDIPort> m_port;
|
| + RefPtrWillBeMember<MIDIPort> m_port;
|
| };
|
|
|
| } // namespace WebCore
|
|
|