Skip to content

Commit

Permalink
Merge pull request #192 from cwilso/gh-pages
Browse files Browse the repository at this point in the history
Marking interfaces as [SecureContext]
  • Loading branch information
cwilso committed Oct 17, 2018
2 parents 53e5bec + c1868dd commit 05de4f0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions index.html
Expand Up @@ -160,7 +160,7 @@ <h2>Extensions to the <dfn>Navigator</dfn> interface</h2>

<pre class="idl">
partial interface Navigator {
Promise &lt;MIDIAccess> requestMIDIAccess(optional MIDIOptions options);
[SecureContext] Promise &lt;MIDIAccess> requestMIDIAccess(optional MIDIOptions options);
};
</pre>
<dl>
Expand Down Expand Up @@ -335,7 +335,7 @@ <h2 id="MIDIAccess"><dfn>MIDIAccess</dfn> Interface</h2>
<p>This interface provides the methods to list MIDI input and output
devices, and obtain access to an individual device.</p>
<pre class="idl">
interface MIDIAccess: EventTarget {
[SecureContext] interface MIDIAccess: EventTarget {
readonly attribute MIDIInputMap inputs;
readonly attribute MIDIOutputMap outputs;
attribute EventHandler onstatechange;
Expand Down Expand Up @@ -377,7 +377,7 @@ <h2 id="MIDIPort"><dfn>MIDIPort</dfn> Interface</h2>

<p>This interface represents a MIDI input or output port.</p>
<pre class="idl">
interface MIDIPort: EventTarget {
[SecureContext] interface MIDIPort: EventTarget {
readonly attribute DOMString id;
readonly attribute DOMString? manufacturer;
readonly attribute DOMString? name;
Expand Down Expand Up @@ -653,7 +653,7 @@ <h2 id="MIDIPort"><dfn>MIDIPort</dfn> Interface</h2>
<section data-dfn-for="MIDIInput">
<h3 id="MIDIInput"><dfn>MIDIInput</dfn> Interface</h3>
<pre class="idl">
interface MIDIInput: MIDIPort {
[SecureContext] interface MIDIInput: MIDIPort {
attribute EventHandler onmidimessage;
};
</pre>
Expand Down Expand Up @@ -713,7 +713,7 @@ <h3 id="MIDIInput"><dfn>MIDIInput</dfn> Interface</h3>
<section data-dfn-for="MIDIOutput">
<h3 id="MIDIOutput"><dfn>MIDIOutput</dfn> Interface</h3>
<pre class="idl">
interface MIDIOutput : MIDIPort {
[SecureContext] interface MIDIOutput : MIDIPort {
void send(sequence&lt;octet> data, optional DOMHighResTimeStamp timestamp = 0);
void clear();
};
Expand Down Expand Up @@ -832,7 +832,7 @@ <h2><dfn>MIDIPortConnectionState</dfn> Enum</h2>
<h2 id="MIDIMessageEvent"><dfn>MIDIMessageEvent</dfn> Interface</h2>
<p>An event object implementing this interface is passed to a MIDIInput's onmidimessage handler when MIDI messages are received. Note that the DOM <a>Event</a> <code>timeStamp</code> attribute is defined as a <a>DOMHighResTimeStamp</a>, and represents the high-resolution time of when the event was received or is to be sent.</p>
<pre class="idl">
[Constructor(DOMString type, optional MIDIMessageEventInit eventInitDict)]
[SecureContext], [Constructor(DOMString type, optional MIDIMessageEventInit eventInitDict)]
interface MIDIMessageEvent: Event {
readonly attribute Uint8Array data;
};
Expand Down Expand Up @@ -887,7 +887,7 @@ <h2 id="MIDIConnectionEvent"><dfn>MIDIConnectionEvent</dfn> Interface</h2>
for new devices infrequently. As such, it is suggested that heavy
reliance on connection events not be used.</p>
<pre class="idl">
[Constructor(DOMString type, optional MIDIConnectionEventInit eventInitDict)]
[SecureContext], [Constructor(DOMString type, optional MIDIConnectionEventInit eventInitDict)]
interface MIDIConnectionEvent: Event {
readonly attribute MIDIPort port;
};
Expand Down

0 comments on commit 05de4f0

Please sign in to comment.