diff options
Diffstat (limited to 'chromium/third_party/WebKit/Source/modules/webmidi/MIDIMessageEvent.h')
-rw-r--r-- | chromium/third_party/WebKit/Source/modules/webmidi/MIDIMessageEvent.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/chromium/third_party/WebKit/Source/modules/webmidi/MIDIMessageEvent.h b/chromium/third_party/WebKit/Source/modules/webmidi/MIDIMessageEvent.h index 8c173ce6707..b4517e0c39b 100644 --- a/chromium/third_party/WebKit/Source/modules/webmidi/MIDIMessageEvent.h +++ b/chromium/third_party/WebKit/Source/modules/webmidi/MIDIMessageEvent.h @@ -31,7 +31,7 @@ #ifndef MIDIMessageEvent_h #define MIDIMessageEvent_h -#include "core/events/Event.h" +#include "modules/EventModules.h" #include "wtf/Uint8Array.h" namespace WebCore { @@ -46,21 +46,21 @@ struct MIDIMessageEventInit : public EventInit { RefPtr<Uint8Array> data; }; -class MIDIMessageEvent : public Event { +class MIDIMessageEvent FINAL : public Event { public: - static PassRefPtr<MIDIMessageEvent> create() + static PassRefPtrWillBeRawPtr<MIDIMessageEvent> create() { - return adoptRef(new MIDIMessageEvent()); + return adoptRefWillBeNoop(new MIDIMessageEvent()); } - static PassRefPtr<MIDIMessageEvent> create(double receivedTime, PassRefPtr<Uint8Array> data) + static PassRefPtrWillBeRawPtr<MIDIMessageEvent> create(double receivedTime, PassRefPtr<Uint8Array> data) { - return adoptRef(new MIDIMessageEvent(receivedTime, data)); + return adoptRefWillBeNoop(new MIDIMessageEvent(receivedTime, data)); } - static PassRefPtr<MIDIMessageEvent> create(const AtomicString& type, const MIDIMessageEventInit& initializer) + static PassRefPtrWillBeRawPtr<MIDIMessageEvent> create(const AtomicString& type, const MIDIMessageEventInit& initializer) { - return adoptRef(new MIDIMessageEvent(type, initializer)); + return adoptRefWillBeNoop(new MIDIMessageEvent(type, initializer)); } double receivedTime() { return m_receivedTime; } @@ -68,6 +68,8 @@ public: virtual const AtomicString& interfaceName() const OVERRIDE { return EventNames::MIDIMessageEvent; } + virtual void trace(Visitor* visitor) OVERRIDE { Event::trace(visitor); } + private: MIDIMessageEvent() : m_receivedTime(0) |