Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make MIDIAccess transferable and exposed to workers #256

Merged
merged 2 commits into from
Jul 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ <h3 id="MIDIInputMap">
<dfn>MIDIInputMap</dfn> Interface
</h3>
<pre class="idl">
[SecureContext, Exposed=Window] interface MIDIInputMap {
[SecureContext, Exposed=(Window,Worker)] interface MIDIInputMap {
readonly maplike &lt;DOMString, MIDIInput&gt;;
};
</pre>
Expand Down Expand Up @@ -450,7 +450,7 @@ <h3 id="MIDIOutputMap">
<dfn>MIDIOutputMap</dfn> Interface
</h3>
<pre class="idl">
[SecureContext, Exposed=Window] interface MIDIOutputMap {
[SecureContext, Exposed=(Window,Worker)] interface MIDIOutputMap {
readonly maplike &lt;DOMString, MIDIOutput&gt;;
};
</pre>
Expand Down Expand Up @@ -488,7 +488,7 @@ <h2 id="MIDIAccess">
devices, and obtain access to an individual device.
</p>
<pre class="idl">
[SecureContext, Exposed=Window] interface MIDIAccess: EventTarget {
[SecureContext, Exposed=(Window,Worker), Transferable] interface MIDIAccess: EventTarget {
readonly attribute MIDIInputMap inputs;
readonly attribute MIDIOutputMap outputs;
attribute EventHandler onstatechange;
Expand Down Expand Up @@ -559,7 +559,7 @@ <h2 id="MIDIPort">
This interface represents a MIDI input or output port.
</p>
<pre class="idl">
[SecureContext, Exposed=Window] interface MIDIPort: EventTarget {
[SecureContext, Exposed=(Window,Worker)] interface MIDIPort: EventTarget {
readonly attribute DOMString id;
readonly attribute DOMString? manufacturer;
readonly attribute DOMString? name;
Expand Down Expand Up @@ -944,7 +944,7 @@ <h3 id="MIDIInput">
<dfn>MIDIInput</dfn> Interface
</h3>
<pre class="idl">
[SecureContext, Exposed=Window] interface MIDIInput: MIDIPort {
[SecureContext, Exposed=(Window,Worker)] interface MIDIInput: MIDIPort {
attribute EventHandler onmidimessage;
};
</pre>
Expand Down Expand Up @@ -1008,7 +1008,7 @@ <h3 id="MIDIOutput">
<dfn>MIDIOutput</dfn> Interface
</h3>
<pre class="idl">
[SecureContext, Exposed=Window] interface MIDIOutput : MIDIPort {
[SecureContext, Exposed=(Window,Worker)] interface MIDIOutput : MIDIPort {
undefined send(sequence&lt;octet&gt; data, optional DOMHighResTimeStamp timestamp = 0);
undefined clear();
};
Expand Down Expand Up @@ -1202,7 +1202,7 @@ <h2 id="MIDIMessageEvent">
high-resolution time of when the event was received or is to be sent.
</p>
<pre class="idl">
[SecureContext, Exposed=Window]
[SecureContext, Exposed=(Window,Worker)]
interface MIDIMessageEvent : Event {
constructor(DOMString type, optional MIDIMessageEventInit eventInitDict = {});
readonly attribute Uint8Array? data;
Expand Down Expand Up @@ -1277,7 +1277,7 @@ <h2 id="MIDIConnectionEvent">
heavy reliance on connection events not be used.
</p>
<pre class="idl">
[SecureContext, Exposed=Window]
[SecureContext, Exposed=(Window,Worker)]
interface MIDIConnectionEvent : Event {
constructor(DOMString type, optional MIDIConnectionEventInit eventInitDict = {});
readonly attribute MIDIPort? port;
Expand Down