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

Unified Diff: Source/modules/webmidi/MIDIConnectionEvent.cpp

Issue 943173002: Web MIDI: dispatch MIDIConnectionEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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: Source/modules/webmidi/MIDIConnectionEvent.cpp
diff --git a/Source/modules/webmidi/MIDIConnectionEvent.cpp b/Source/modules/webmidi/MIDIConnectionEvent.cpp
index 2d20d6e48b7e5415d1df7d2f2953dac7f438a0ee..0120376b23789cc882e5687073c9a8994ab4df9b 100644
--- a/Source/modules/webmidi/MIDIConnectionEvent.cpp
+++ b/Source/modules/webmidi/MIDIConnectionEvent.cpp
@@ -34,16 +34,6 @@
namespace blink {
-MIDIConnectionEvent::MIDIConnectionEvent()
-{
-}
-
-MIDIConnectionEvent::MIDIConnectionEvent(const AtomicString& type, MIDIPort* port)
- : Event(type, false, false)
- , m_port(port)
-{
-}
-
MIDIConnectionEvent::MIDIConnectionEvent(const AtomicString& type, const MIDIConnectionEventInit& initializer)
: Event(type, initializer)
, m_port(nullptr)
@@ -52,25 +42,4 @@ MIDIConnectionEvent::MIDIConnectionEvent(const AtomicString& type, const MIDICon
m_port = initializer.port();
}
-PassRefPtrWillBeRawPtr<MIDIConnectionEvent> MIDIConnectionEvent::create()
-{
- return adoptRefWillBeNoop(new MIDIConnectionEvent());
-}
-
-PassRefPtrWillBeRawPtr<MIDIConnectionEvent> MIDIConnectionEvent::create(const AtomicString& type, MIDIPort* port)
-{
- return adoptRefWillBeNoop(new MIDIConnectionEvent(type, port));
-}
-
-PassRefPtrWillBeRawPtr<MIDIConnectionEvent> MIDIConnectionEvent::create(const AtomicString& type, const MIDIConnectionEventInit& initializer)
-{
- return adoptRefWillBeNoop(new MIDIConnectionEvent(type, initializer));
-}
-
-DEFINE_TRACE(MIDIConnectionEvent)
-{
- visitor->trace(m_port);
- Event::trace(visitor);
-}
-
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698