Skip to content

Commit

Permalink
Align with IDL dictionary changes
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed Jul 1, 2019
1 parent acd483a commit a5cd638
Showing 1 changed file with 30 additions and 26 deletions.
56 changes: 30 additions & 26 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -10247,7 +10247,7 @@ interface <dfn>HTMLUnknownElement</dfn> : <span>HTMLElement</span> { };</code></
attribute DOMString <span data-x="dom-HTMLOrSVGElement-nonce">nonce</span>; // <a href="#nonce-does-not-update-dom">intentionally no [CEReactions]</a>

[<span>CEReactions</span>] attribute long <span data-x="dom-tabindex">tabIndex</span>;
void <span data-x="dom-focus">focus</span>(optional <span>FocusOptions</span> options);
void <span data-x="dom-focus">focus</span>(optional <span>FocusOptions</span> options = {});
void <span data-x="dom-blur">blur</span>();
};</code></pre>

Expand Down Expand Up @@ -38148,7 +38148,7 @@ interface <dfn>TimeRanges</dfn> {
<h5>The <code>TrackEvent</code> interface</h5>

<pre><code class="idl" data-x="">[Exposed=Window,
Constructor(DOMString type, optional <span>TrackEventInit</span> eventInitDict)]
Constructor(DOMString type, optional <span>TrackEventInit</span> eventInitDict = {})]
interface <dfn>TrackEvent</dfn> : <span>Event</span> {
readonly attribute (<span>VideoTrack</span> or <span>AudioTrack</span> or <span>TextTrack</span>)? <span data-x="dom-TrackEvent-track">track</span>;
};
Expand Down Expand Up @@ -57045,7 +57045,7 @@ fur
<h5>The <code>FormDataEvent</code> interface</h5>

<pre><code class="idl" data-x="">[Exposed=Window,
Constructor(DOMString type, optional <span>FormDataEventInit</span> eventInitDict)]
Constructor(DOMString type, optional <span>FormDataEventInit</span> eventInitDict = {})]
interface <dfn>FormDataEvent</dfn> : <span>Event</span> {
readonly attribute <span>FormData</span> <span data-x="dom-FormDataEvent-formData">formData</span>;
};
Expand Down Expand Up @@ -59790,8 +59790,8 @@ interface <dfn>HTMLTemplateElement</dfn> : <span>HTMLElement</span> {
<span>HTMLConstructor</span>]
interface <dfn>HTMLSlotElement</dfn> : <span>HTMLElement</span> {
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-slot-name">name</span>;
sequence&lt;Node> <span data-x="dom-slot-assignedNodes">assignedNodes</span>(optional <span>AssignedNodesOptions</span> options);
sequence&lt;Element> <span data-x="dom-slot-assignedElements">assignedElements</span>(optional <span>AssignedNodesOptions</span> options);
sequence&lt;Node> <span data-x="dom-slot-assignedNodes">assignedNodes</span>(optional <span>AssignedNodesOptions</span> options = {});
sequence&lt;Element> <span data-x="dom-slot-assignedElements">assignedElements</span>(optional <span>AssignedNodesOptions</span> options = {});
};

dictionary <dfn>AssignedNodesOptions</dfn> {
Expand Down Expand Up @@ -60447,7 +60447,7 @@ interface mixin <dfn>CanvasTransform</dfn> {

[NewObject] <span>DOMMatrix</span> <span data-x="dom-context-2d-getTransform">getTransform</span>();
void <span data-x="dom-context-2d-setTransform">setTransform</span>(unrestricted double a, unrestricted double b, unrestricted double c, unrestricted double d, unrestricted double e, unrestricted double f);
void <span data-x="dom-context-2d-setTransform-matrix">setTransform</span>(optional <span>DOMMatrix2DInit</span> transform);
void <span data-x="dom-context-2d-setTransform-matrix">setTransform</span>(optional <span>DOMMatrix2DInit</span> transform = {});
void <span data-x="dom-context-2d-resetTransform">resetTransform</span>();
<!--
// v7 we've also received requests (though not many so far) for:
Expand Down Expand Up @@ -60604,7 +60604,7 @@ interface <dfn>CanvasGradient</dfn> {
[Exposed=(Window,Worker)]
interface <dfn>CanvasPattern</dfn> {
// opaque object
void <span data-x="dom-canvaspattern-setTransform">setTransform</span>(optional <span>DOMMatrix2DInit</span> transform);
void <span data-x="dom-canvaspattern-setTransform">setTransform</span>(optional <span>DOMMatrix2DInit</span> transform = {});
};

[Exposed=(Window,Worker)]
Expand Down Expand Up @@ -60639,7 +60639,7 @@ interface <dfn>ImageData</dfn> {
[<span data-x="dom-Path2D">Constructor</span>(optional (<span>Path2D</span> or DOMString) path),
Exposed=(Window,Worker)]
interface <dfn>Path2D</dfn> {
void <span data-x="dom-Path2D-addPath">addPath</span>(<span>Path2D</span> path, optional <span>DOMMatrix2DInit</span> transform);
void <span data-x="dom-Path2D-addPath">addPath</span>(<span>Path2D</span> path, optional <span>DOMMatrix2DInit</span> transform = {});
};
<span>Path2D</span> includes <span>CanvasPath</span>;</code></pre>

Expand Down Expand Up @@ -67066,7 +67066,7 @@ document.body.append(parent);

<pre><code class="idl" data-x="">[Exposed=Window]
interface <dfn>CustomElementRegistry</dfn> {
[<span>CEReactions</span>] void <span data-x="dom-CustomElementRegistry-define">define</span>(DOMString name, <span>CustomElementConstructor</span> constructor, optional <span>ElementDefinitionOptions</span> options);
[<span>CEReactions</span>] void <span data-x="dom-CustomElementRegistry-define">define</span>(DOMString name, <span>CustomElementConstructor</span> constructor, optional <span>ElementDefinitionOptions</span> options = {});
any <span data-x="dom-CustomElementRegistry-get">get</span>(DOMString name);
Promise&lt;void&gt; <span data-x="dom-CustomElementRegistry-whenDefined">whenDefined</span>(DOMString name);
[<span>CEReactions</span>] void <span data-x="dom-CustomElementRegistry-upgrade">upgrade</span>(<span>Node</span> root);
Expand Down Expand Up @@ -76636,7 +76636,7 @@ callback <dfn>FunctionObjectCallback</dfn> = void (any data);--></code></pre>
<code>DragEvent</code> interface.</p>

<pre><code class="idl" data-x="">[Exposed=Window,
Constructor(DOMString type, optional <span>DragEventInit</span> eventInitDict)]
Constructor(DOMString type, optional <span>DragEventInit</span> eventInitDict = {})]
interface <dfn>DragEvent</dfn> : <span>MouseEvent</span> {
readonly attribute <span>DataTransfer</span>? <span data-x="dom-DragEvent-dataTransfer">dataTransfer</span>;
};
Expand Down Expand Up @@ -79169,7 +79169,7 @@ interface <dfn data-export="" data-dfn-type="interface">Window</dfn> : <span>Eve
void <span data-x="dom-print">print</span>();

void <span data-x="dom-window-postMessage">postMessage</span>(any message, USVString targetOrigin, optional sequence&lt;<span data-x="idl-object">object</span>&gt; transfer = []);
void <span data-x="dom-window-postMessage-options">postMessage</span>(any message, optional <span>WindowPostMessageOptions</span> options);
void <span data-x="dom-window-postMessage-options">postMessage</span>(any message, optional <span>WindowPostMessageOptions</span> options = {});
};
<span>Window</span> includes <span>GlobalEventHandlers</span>;
<span>Window</span> includes <span>WindowEventHandlers</span>;
Expand Down Expand Up @@ -84525,7 +84525,7 @@ new PaymentRequest(&hellip;); // Allowed to use
<h5>The <code>PopStateEvent</code> interface</h5>

<pre><code class="idl" data-x="">[Exposed=Window,
Constructor(DOMString type, optional <span>PopStateEventInit</span> eventInitDict)]
Constructor(DOMString type, optional <span>PopStateEventInit</span> eventInitDict = {})]
interface <dfn>PopStateEvent</dfn> : <span>Event</span> {
readonly attribute any <span data-x="dom-PopStateEvent-state">state</span>;
};
Expand Down Expand Up @@ -84560,7 +84560,7 @@ dictionary <dfn>PopStateEventInit</dfn> : <span>EventInit</span> {
<h5>The <code>HashChangeEvent</code> interface</h5>

<pre><code class="idl" data-x="">[Exposed=Window,
Constructor(DOMString type, optional <span>HashChangeEventInit</span> eventInitDict)]
Constructor(DOMString type, optional <span>HashChangeEventInit</span> eventInitDict = {})]
interface <dfn>HashChangeEvent</dfn> : <span>Event</span> {
readonly attribute USVString <span data-x="dom-HashChangeEvent-oldURL">oldURL</span>;
readonly attribute USVString <span data-x="dom-HashChangeEvent-newURL">newURL</span>;
Expand Down Expand Up @@ -84610,7 +84610,7 @@ dictionary <dfn>HashChangeEventInit</dfn> : <span>EventInit</span> {
<h5>The <code>PageTransitionEvent</code> interface</h5>

<pre><code class="idl" data-x="">[Exposed=Window,
Constructor(DOMString type, optional <span>PageTransitionEventInit</span> eventInitDict)]
Constructor(DOMString type, optional <span>PageTransitionEventInit</span> eventInitDict = {})]
interface <dfn>PageTransitionEvent</dfn> : <span>Event</span> {
readonly attribute boolean <span data-x="dom-PageTransitionEvent-persisted">persisted</span>;
};
Expand Down Expand Up @@ -90413,7 +90413,8 @@ import "https://example.com/foo/../module2.mjs";</code></pre>

<h6>The <code>ErrorEvent</code> interface</h6>

<pre><code class="idl" data-x="">[Constructor(DOMString type, optional <span>ErrorEventInit</span> eventInitDict), Exposed=(Window,Worker)]
<pre><code class="idl" data-x="">[Constructor(DOMString type, optional <span>ErrorEventInit</span> eventInitDict = {}),
Exposed=(Window,Worker)]
interface <dfn>ErrorEvent</dfn> : <span>Event</span> {
readonly attribute DOMString <span data-x="dom-ErrorEvent-message">message</span>;
readonly attribute USVString <span data-x="dom-ErrorEvent-filename">filename</span>;
Expand Down Expand Up @@ -92791,8 +92792,8 @@ interface mixin <dfn>WindowOrWorkerGlobalScope</dfn> {
void <span data-x="dom-queueMicrotask">queueMicrotask</span>(<span data-x="idl-VoidFunction">VoidFunction</span> <var>callback</var>);

// ImageBitmap
Promise&lt;<span>ImageBitmap</span>&gt; <span data-x="dom-createImageBitmap">createImageBitmap</span>(<span>ImageBitmapSource</span> image, optional <span>ImageBitmapOptions</span> options);
Promise&lt;<span>ImageBitmap</span>&gt; <span data-x="dom-createImageBitmap">createImageBitmap</span>(<span>ImageBitmapSource</span> image, long sx, long sy, long sw, long sh, optional <span>ImageBitmapOptions</span> options);
Promise&lt;<span>ImageBitmap</span>&gt; <span data-x="dom-createImageBitmap">createImageBitmap</span>(<span>ImageBitmapSource</span> image, optional <span>ImageBitmapOptions</span> options = {});
Promise&lt;<span>ImageBitmap</span>&gt; <span data-x="dom-createImageBitmap">createImageBitmap</span>(<span>ImageBitmapSource</span> image, long sx, long sy, long sw, long sh, optional <span>ImageBitmapOptions</span> options = {});
};
<span>Window</span> includes <span>WindowOrWorkerGlobalScope</span>;
<span>WorkerGlobalScope</span> includes <span>WindowOrWorkerGlobalScope</span>;</code></pre>
Expand Down Expand Up @@ -95905,7 +95906,8 @@ self.onmessage = function(ev) {
<code>MessageEvent</code> interface for their <code data-x="event-message">message</code>
events:</p>

<pre><code class="idl" data-x="">[Constructor(DOMString type, optional <span>MessageEventInit</span> eventInitDict), Exposed=(Window,Worker,AudioWorklet)]
<pre><code class="idl" data-x="">[Constructor(DOMString type, optional <span>MessageEventInit</span> eventInitDict = {}),
Exposed=(Window,Worker,AudioWorklet)]
interface <dfn>MessageEvent</dfn> : <span>Event</span> {
readonly attribute any <span data-x="dom-MessageEvent-data">data</span>;
readonly attribute USVString <span data-x="dom-MessageEvent-origin">origin</span>;
Expand Down Expand Up @@ -96087,7 +96089,7 @@ source.addEventListener('remove', removeHandler, false);</code></pre>

<h4>The <code>EventSource</code> interface</h4>

<pre><code class="idl" data-x="">[<span data-x="dom-EventSource">Constructor</span>(USVString url, optional <span>EventSourceInit</span> eventSourceInitDict), Exposed=(Window,Worker)]
<pre><code class="idl" data-x="">[<span data-x="dom-EventSource">Constructor</span>(USVString url, optional <span>EventSourceInit</span> eventSourceInitDict = {}), Exposed=(Window,Worker)]
interface <dfn>EventSource</dfn> : <span>EventTarget</span> {
readonly attribute USVString <span data-x="dom-EventSource-url">url</span>;
readonly attribute boolean <span data-x="dom-EventSource-withCredentials">withCredentials</span>;
Expand Down Expand Up @@ -97649,7 +97651,8 @@ socket.onopen = function () {
<p><code>WebSocket</code> objects use the <code>CloseEvent</code> interface for their <code
data-x="event-close">close</code> events:</p>

<pre><code class="idl" data-x="">[Constructor(DOMString type, optional <span>CloseEventInit</span> eventInitDict), Exposed=(Window,Worker)]
<pre><code class="idl" data-x="">[Constructor(DOMString type, optional <span>CloseEventInit</span> eventInitDict = {}),
Exposed=(Window,Worker)]
interface <dfn>CloseEvent</dfn> : <span>Event</span> {
readonly attribute boolean <span data-x="dom-CloseEvent-wasClean">wasClean</span>;
readonly attribute unsigned short <span data-x="dom-CloseEvent-code">code</span>;
Expand Down Expand Up @@ -98325,7 +98328,7 @@ interface <dfn>MessageChannel</dfn> {
<pre><code class="idl" data-x="">[Exposed=(Window,Worker,AudioWorklet), <span>Transferable</span>]
interface <dfn>MessagePort</dfn> : <span>EventTarget</span> {
void <span data-x="dom-MessagePort-postMessage">postMessage</span>(any message, sequence&lt;<span data-x="idl-object">object</span>&gt; transfer);
void <span data-x="dom-MessagePort-postMessage-options">postMessage</span>(any message, optional <span>PostMessageOptions</span> options);
void <span data-x="dom-MessagePort-postMessage-options">postMessage</span>(any message, optional <span>PostMessageOptions</span> options = {});
void <span data-x="dom-MessagePort-start">start</span>();
void <span data-x="dom-MessagePort-close">close</span>();

Expand Down Expand Up @@ -99481,7 +99484,7 @@ interface <dfn>DedicatedWorkerGlobalScope</dfn> : <span>WorkerGlobalScope</span>
[Replaceable] readonly attribute DOMString <span data-x="dom-DedicatedWorkerGlobalScope-name">name</span>;

void <span data-x="dom-DedicatedWorkerGlobalScope-postMessage">postMessage</span>(any message, sequence&lt;<span data-x="idl-object">object</span>&gt; transfer);
void <span data-x="dom-DedicatedWorkerGlobalScope-postMessage-options">postMessage</span>(any message, optional <span>PostMessageOptions</span> options);
void <span data-x="dom-DedicatedWorkerGlobalScope-postMessage-options">postMessage</span>(any message, optional <span>PostMessageOptions</span> options = {});

void <span data-x="dom-DedicatedWorkerGlobalScope-close">close</span>();

Expand Down Expand Up @@ -100214,12 +100217,13 @@ interface <dfn>SharedWorkerGlobalScope</dfn> : <span>WorkerGlobalScope</span> {

<h5>Dedicated workers and the <code subdfn>Worker</code> interface</h5>

<pre><code class="idl" data-x="">[<span data-x="dom-Worker">Constructor</span>(USVString scriptURL, optional <span>WorkerOptions</span> options), Exposed=(Window,Worker)]
<pre><code class="idl" data-x="">[<span data-x="dom-Worker">Constructor</span>(USVString scriptURL, optional <span>WorkerOptions</span> options = {}),
Exposed=(Window,Worker)]
interface <dfn>Worker</dfn> : <span>EventTarget</span> {
void <span data-x="dom-Worker-terminate">terminate</span>();

void <span data-x="dom-Worker-postMessage">postMessage</span>(any message, sequence&lt;<span data-x="idl-object">object</span>&gt; transfer);
void <span data-x="dom-Worker-postMessage-options">postMessage</span>(any message, optional <span>PostMessageOptions</span> options);
void <span data-x="dom-Worker-postMessage-options">postMessage</span>(any message, optional <span>PostMessageOptions</span> options = {});
attribute <span>EventHandler</span> <span data-x="handler-Worker-onmessage">onmessage</span>;
attribute <span>EventHandler</span> <span data-x="handler-Worker-onmessageerror">onmessageerror</span>;
};
Expand Down Expand Up @@ -100360,7 +100364,7 @@ enum <dfn>WorkerType</dfn> { "classic", "module" };

<h5>Shared workers and the <code subdfn>SharedWorker</code> interface</h5>

<pre><code class="idl" data-x="">[<span data-x="dom-SharedWorker">Constructor</span>(USVString scriptURL, optional (DOMString or <span>WorkerOptions</span>) options),
<pre><code class="idl" data-x="">[<span data-x="dom-SharedWorker">Constructor</span>(USVString scriptURL, optional (DOMString or <span>WorkerOptions</span>) options = {}),
Exposed=(Window,Worker)]
interface <dfn>SharedWorker</dfn> : <span>EventTarget</span> {
readonly attribute <span>MessagePort</span> <span data-x="dom-SharedWorker-port">port</span>;
Expand Down Expand Up @@ -101241,7 +101245,7 @@ interface <dfn>Storage</dfn> {
<h5>The <code>StorageEvent</code> interface</h5>

<pre><code class="idl" data-x="">[Exposed=Window,
Constructor(DOMString type, optional <span>StorageEventInit</span> eventInitDict)]
Constructor(DOMString type, optional <span>StorageEventInit</span> eventInitDict = {})]
interface <dfn>StorageEvent</dfn> : <span>Event</span> {
readonly attribute DOMString? <span data-x="dom-StorageEvent-key">key</span>;
readonly attribute DOMString? <span data-x="dom-StorageEvent-oldValue">oldValue</span>;
Expand Down

0 comments on commit a5cd638

Please sign in to comment.