| Index: Source/modules/webmidi/MIDIPort.cpp
|
| diff --git a/Source/modules/webmidi/MIDIPort.cpp b/Source/modules/webmidi/MIDIPort.cpp
|
| index 240e570b21f10fa2de009ca011ba72c4b6584ff9..6364968167794e93a5d7d679263ddf5eb45ffcd0 100644
|
| --- a/Source/modules/webmidi/MIDIPort.cpp
|
| +++ b/Source/modules/webmidi/MIDIPort.cpp
|
| @@ -32,6 +32,7 @@
|
| #include "modules/webmidi/MIDIPort.h"
|
|
|
| #include "modules/webmidi/MIDIAccess.h"
|
| +#include "modules/webmidi/MIDIConnectionEvent.h"
|
|
|
| namespace blink {
|
|
|
| @@ -61,6 +62,12 @@ String MIDIPort::type() const
|
| return emptyString();
|
| }
|
|
|
| +void MIDIPort::setActiveState(bool isActive)
|
| +{
|
| + m_isActive = isActive;
|
| + dispatchEvent(MIDIConnectionEvent::create(this));
|
| +}
|
| +
|
| ExecutionContext* MIDIPort::executionContext() const
|
| {
|
| return m_access->executionContext();
|
|
|