@@ -239,7 +239,7 @@ <h2 id="MIDIOptions"><dfn>MIDIOptions</dfn> Dictionary</h2>
239
239
< section data-dfn-for ="MIDIInputMap ">
240
240
< h3 id ="MIDIInputMap "> < dfn > MIDIInputMap</ dfn > Interface</ h3 >
241
241
< pre class ="idl ">
242
- [SecureContext] interface MIDIInputMap {
242
+ [SecureContext, Exposed=Window ] interface MIDIInputMap {
243
243
readonly maplike <DOMString, MIDIInput> ;
244
244
};
245
245
</ pre >
@@ -268,7 +268,7 @@ <h3 id="MIDIInputMap"><dfn>MIDIInputMap</dfn> Interface</h3>
268
268
< section data-dfn-for ="MIDIOutputMap ">
269
269
< h3 id ="MIDIOutputMap "> < dfn > MIDIOutputMap</ dfn > Interface</ h3 >
270
270
< pre class ="idl ">
271
- [SecureContext] interface MIDIOutputMap {
271
+ [SecureContext, Exposed=Window ] interface MIDIOutputMap {
272
272
readonly maplike <DOMString, MIDIOutput> ;
273
273
};
274
274
</ pre >
@@ -297,7 +297,7 @@ <h2 id="MIDIAccess"><dfn>MIDIAccess</dfn> Interface</h2>
297
297
< p > This interface provides the methods to list MIDI input and output
298
298
devices, and obtain access to an individual device.</ p >
299
299
< pre class ="idl ">
300
- [SecureContext] interface MIDIAccess: EventTarget {
300
+ [SecureContext, Exposed=Window ] interface MIDIAccess: EventTarget {
301
301
readonly attribute MIDIInputMap inputs;
302
302
readonly attribute MIDIOutputMap outputs;
303
303
attribute EventHandler onstatechange;
@@ -339,7 +339,7 @@ <h2 id="MIDIPort"><dfn>MIDIPort</dfn> Interface</h2>
339
339
340
340
< p > This interface represents a MIDI input or output port.</ p >
341
341
< pre class ="idl ">
342
- [SecureContext] interface MIDIPort: EventTarget {
342
+ [SecureContext, Exposed=Window ] interface MIDIPort: EventTarget {
343
343
readonly attribute DOMString id;
344
344
readonly attribute DOMString? manufacturer;
345
345
readonly attribute DOMString? name;
@@ -615,7 +615,7 @@ <h2 id="MIDIPort"><dfn>MIDIPort</dfn> Interface</h2>
615
615
< section data-dfn-for ="MIDIInput ">
616
616
< h3 id ="MIDIInput "> < dfn > MIDIInput</ dfn > Interface</ h3 >
617
617
< pre class ="idl ">
618
- [SecureContext] interface MIDIInput: MIDIPort {
618
+ [SecureContext, Exposed=Window ] interface MIDIInput: MIDIPort {
619
619
attribute EventHandler onmidimessage;
620
620
};
621
621
</ pre >
@@ -675,7 +675,7 @@ <h3 id="MIDIInput"><dfn>MIDIInput</dfn> Interface</h3>
675
675
< section data-dfn-for ="MIDIOutput ">
676
676
< h3 id ="MIDIOutput "> < dfn > MIDIOutput</ dfn > Interface</ h3 >
677
677
< pre class ="idl ">
678
- [SecureContext] interface MIDIOutput : MIDIPort {
678
+ [SecureContext, Exposed=Window ] interface MIDIOutput : MIDIPort {
679
679
void send(sequence<octet> data, optional DOMHighResTimeStamp timestamp = 0);
680
680
void clear();
681
681
};
@@ -794,7 +794,7 @@ <h2><dfn>MIDIPortConnectionState</dfn> Enum</h2>
794
794
< h2 id ="MIDIMessageEvent "> < dfn > MIDIMessageEvent</ dfn > Interface</ h2 >
795
795
< p > An event object implementing this interface is passed to a MIDIInput's onmidimessage handler when MIDI messages are received. Note that the DOM {{Event}} < code > timeStamp</ code > attribute is defined as a {{DOMHighResTimeStamp}}, and represents the high-resolution time of when the event was received or is to be sent.</ p >
796
796
< pre class ="idl ">
797
- [SecureContext, Constructor(DOMString type, optional MIDIMessageEventInit eventInitDict = {})]
797
+ [SecureContext, Exposed=Window, Constructor(DOMString type, optional MIDIMessageEventInit eventInitDict = {})]
798
798
interface MIDIMessageEvent : Event {
799
799
readonly attribute Uint8Array data;
800
800
};
@@ -849,7 +849,7 @@ <h2 id="MIDIConnectionEvent"><dfn>MIDIConnectionEvent</dfn> Interface</h2>
849
849
for new devices infrequently. As such, it is suggested that heavy
850
850
reliance on connection events not be used.</ p >
851
851
< pre class ="idl ">
852
- [SecureContext, Constructor(DOMString type, optional MIDIConnectionEventInit eventInitDict = {})]
852
+ [SecureContext, Exposed=Window, Constructor(DOMString type, optional MIDIConnectionEventInit eventInitDict = {})]
853
853
interface MIDIConnectionEvent : Event {
854
854
readonly attribute MIDIPort port;
855
855
};
0 commit comments