| Index: Source/modules/webmidi/MIDIPort.h
|
| diff --git a/Source/modules/webmidi/MIDIPort.h b/Source/modules/webmidi/MIDIPort.h
|
| index f089cb706f4955c42f8a9d20e4c069fae81d0dc2..0e0807d82eba5667f64552ad9d7f053f45f90842 100644
|
| --- a/Source/modules/webmidi/MIDIPort.h
|
| +++ b/Source/modules/webmidi/MIDIPort.h
|
| @@ -52,6 +52,7 @@ public:
|
|
|
| virtual ~MIDIPort() { }
|
|
|
| + String connection() const;
|
| String id() const { return m_id; }
|
| String manufacturer() const { return m_manufacturer; }
|
| String name() const { return m_name; }
|
| @@ -78,9 +79,17 @@ protected:
|
| MIDIPort(MIDIAccess*, const String& id, const String& manufacturer, const String& name, MIDIPortTypeCode, const String& version, MIDIAccessor::MIDIPortState);
|
|
|
| private:
|
| + enum MIDIPortConnectionState {
|
| + MIDIPortConnectionStateOpen,
|
| + MIDIPortConnectionStateClosed,
|
| + MIDIPortConnectionStatePending
|
| + };
|
| +
|
| ScriptPromise accept(ScriptState*);
|
| ScriptPromise reject(ScriptState*, ExceptionCode, const String& message);
|
|
|
| + void setStates(MIDIAccessor::MIDIPortState, MIDIPortConnectionState);
|
| +
|
| String m_id;
|
| String m_manufacturer;
|
| String m_name;
|
| @@ -88,6 +97,7 @@ private:
|
| String m_version;
|
| Member<MIDIAccess> m_access;
|
| MIDIAccessor::MIDIPortState m_state;
|
| + MIDIPortConnectionState m_connection;
|
| };
|
|
|
| } // namespace blink
|
|
|