Index: Source/modules/webmidi/MIDIInput.h |
diff --git a/Source/modules/webmidi/MIDIInput.h b/Source/modules/webmidi/MIDIInput.h |
index 4c560d5b3cedd929ec1d0798e7d85e23a5bf6c15..d37f643fc53f007841c13a826b78db5f51f0a264 100644 |
--- a/Source/modules/webmidi/MIDIInput.h |
+++ b/Source/modules/webmidi/MIDIInput.h |
@@ -33,15 +33,17 @@ |
#include "core/dom/EventTarget.h" |
#include "modules/webmidi/MIDIPort.h" |
+#include "wtf/RefPtr.h" |
namespace WebCore { |
+class MIDIAccess; |
class ScriptExecutionContext; |
class MIDIInput : public MIDIPort { |
public: |
- static PassRefPtr<MIDIInput> create(ScriptExecutionContext*, const String& id, const String& manufacturer, const String& name, const String& version); |
- virtual ~MIDIInput() { } |
+ static PassRefPtr<MIDIInput> create(MIDIAccess*, ScriptExecutionContext*, const String& id, const String& manufacturer, const String& name, const String& version); |
+ virtual ~MIDIInput(); |
DEFINE_ATTRIBUTE_EVENT_LISTENER(midimessage); |
@@ -52,7 +54,9 @@ public: |
void didReceiveMIDIData(unsigned portIndex, const unsigned char* data, size_t length, double timeStamp); |
private: |
- MIDIInput(ScriptExecutionContext*, const String& id, const String& manufacturer, const String& name, const String& version); |
+ MIDIInput(MIDIAccess*, ScriptExecutionContext*, const String& id, const String& manufacturer, const String& name, const String& version); |
+ |
+ RefPtr<MIDIAccess> m_access; |
}; |
typedef Vector<RefPtr<MIDIInput> > MIDIInputVector; |