| Index: Source/modules/webmidi/MIDIAccess.h
|
| diff --git a/Source/modules/webmidi/MIDIAccess.h b/Source/modules/webmidi/MIDIAccess.h
|
| index 615e9e4db78ed3853f2dcccfe66b2f337f3fdf0f..d0a286cc61e5495b9d06bef18ad77223f7e9a08c 100644
|
| --- a/Source/modules/webmidi/MIDIAccess.h
|
| +++ b/Source/modules/webmidi/MIDIAccess.h
|
| @@ -61,7 +61,8 @@ public:
|
| DEFINE_ATTRIBUTE_EVENT_LISTENER(connect);
|
| DEFINE_ATTRIBUTE_EVENT_LISTENER(disconnect);
|
|
|
| - void enableSysEx(bool enable);
|
| + void setSysExEnabled(bool);
|
| + bool sysExEnabled() const { return m_sysExEnabled; }
|
|
|
| // EventTarget
|
| virtual const AtomicString& interfaceName() const OVERRIDE { return eventNames().interfaceForMIDIAccess; }
|
| @@ -77,6 +78,9 @@ public:
|
| virtual void didStartSession() OVERRIDE;
|
| virtual void didReceiveMIDIData(unsigned portIndex, const unsigned char* data, size_t length, double timeStamp) OVERRIDE;
|
|
|
| + // |timeStampInMilliseconds| is in the same time coordinate system as performance.now().
|
| + void sendMIDIData(unsigned portIndex, const unsigned char* data, size_t length, double timeStampInMilliseconds);
|
| +
|
| private:
|
| explicit MIDIAccess(ScriptExecutionContext*, MIDIAccessPromise*);
|
|
|
| @@ -96,7 +100,7 @@ private:
|
|
|
| OwnPtr<MIDIAccessor> m_accessor;
|
| bool m_hasAccess;
|
| - bool m_enableSysEx;
|
| + bool m_sysExEnabled;
|
| bool m_requesting;
|
| };
|
|
|
|
|