Skip to content

Commit

Permalink
Merge pull request #256 from mjwilson-google/worker-availability
Browse files Browse the repository at this point in the history
Make MIDIAccess transferable and exposed to workers
  • Loading branch information
svgeesus authored Jul 4, 2024
2 parents c24c1ff + 32a4224 commit 4314762
Showing 1 changed file with 8 additions and 8 deletions.
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

0 comments on commit 4314762

Please sign in to comment.