Index: Source/modules/webmidi/MIDIPort.h |
diff --git a/Source/modules/webmidi/MIDIPort.h b/Source/modules/webmidi/MIDIPort.h |
index 12babafdc56aaab9827cad35a03cd99d89fe24f5..5c0c0fc2c3469043b92e10957748c1f0246db685 100644 |
--- a/Source/modules/webmidi/MIDIPort.h |
+++ b/Source/modules/webmidi/MIDIPort.h |
@@ -76,15 +76,18 @@ public: |
virtual ExecutionContext* executionContext() const override final; |
protected: |
- MIDIPort(MIDIAccess*, const String& id, const String& manufacturer, const String& name, TypeCode, const String& version, MIDIAccessor::MIDIPortState); |
- |
-private: |
enum ConnectionState { |
ConnectionStateOpen, |
ConnectionStateClosed, |
ConnectionStatePending |
}; |
+ MIDIPort(MIDIAccess*, const String& id, const String& manufacturer, const String& name, TypeCode, const String& version, MIDIAccessor::MIDIPortState); |
+ ConnectionState getConnection() const { return m_connection; } |
yhirano
2015/04/02 02:15:10
I think this function can be public.
Takashi Toyoshima
2015/04/02 04:03:21
Done.
|
+ |
+ void open(); |
+ |
+private: |
ScriptPromise accept(ScriptState*); |
ScriptPromise reject(ScriptState*, ExceptionCode, const String& message); |