| Index: dart/sdk/lib/html/dartium/html_dartium.dart
|
| ===================================================================
|
| --- dart/sdk/lib/html/dartium/html_dartium.dart (revision 30037)
|
| +++ dart/sdk/lib/html/dartium/html_dartium.dart (working copy)
|
| @@ -14877,11 +14877,43 @@
|
| @DocsEditable()
|
| String get statusText native "XMLHttpRequest_statusText_Getter";
|
|
|
| + /**
|
| + * Length of time before a request is automatically terminated.
|
| + *
|
| + * When the time has passed, a [TimeoutEvent] is dispatched.
|
| + *
|
| + * If [timeout] is set to 0, then the request will not time out.
|
| + *
|
| + * ## Other resources
|
| + *
|
| + * * [XMLHttpRequest.timeout]
|
| + * (https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest#timeout)
|
| + * from MDN.
|
| + * * [The timeout attribute]
|
| + * (http://www.w3.org/TR/XMLHttpRequest/#the-timeout-attribute)
|
| + * from W3C.
|
| + */
|
| @DomName('XMLHttpRequest.timeout')
|
| @DocsEditable()
|
| @Experimental() // untriaged
|
| int get timeout native "XMLHttpRequest_timeout_Getter";
|
|
|
| + /**
|
| + * Length of time before a request is automatically terminated.
|
| + *
|
| + * When the time has passed, a [TimeoutEvent] is dispatched.
|
| + *
|
| + * If [timeout] is set to 0, then the request will not time out.
|
| + *
|
| + * ## Other resources
|
| + *
|
| + * * [XMLHttpRequest.timeout]
|
| + * (https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest#timeout)
|
| + * from MDN.
|
| + * * [The timeout attribute]
|
| + * (http://www.w3.org/TR/XMLHttpRequest/#the-timeout-attribute)
|
| + * from W3C.
|
| + */
|
| @DomName('XMLHttpRequest.timeout')
|
| @DocsEditable()
|
| @Experimental() // untriaged
|
| @@ -14994,15 +15026,34 @@
|
| * `send` method is intended only for more complext HTTP requests where
|
| * finer-grained control is needed.
|
| *
|
| - * See also:
|
| + * ## Other resources
|
| *
|
| - * * [send](https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest#send%28%29)
|
| + * * [XMLHttpRequest.send]
|
| + * (https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest#send%28%29)
|
| * from MDN.
|
| */
|
| @DomName('XMLHttpRequest.send')
|
| @DocsEditable()
|
| void send([data]) native "XMLHttpRequest_send_Callback";
|
|
|
| + /**
|
| + * Sets the value of an HTTP requst header.
|
| + *
|
| + * This method should be called after the request is opened, but before
|
| + * the request is sent.
|
| + *
|
| + * Multiple calls with the same header will combine all their values into a
|
| + * single header.
|
| + *
|
| + * ## Other resources
|
| + *
|
| + * * [XMLHttpRequest.setRequestHeader]
|
| + * (https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest#send%28%29)
|
| + * from MDN.
|
| + * * [The setRequestHeader() method]
|
| + * (http://www.w3.org/TR/XMLHttpRequest/#the-setrequestheader()-method) from
|
| + * W3C.
|
| + */
|
| @DomName('XMLHttpRequest.setRequestHeader')
|
| @DocsEditable()
|
| void setRequestHeader(String header, String value) native "XMLHttpRequest_setRequestHeader_Callback";
|
| @@ -20421,6 +20472,9 @@
|
| // Custom element created callback.
|
| Node._created() : super._created();
|
|
|
| + /**
|
| + * A modifiable list of this node's children.
|
| + */
|
| List<Node> get nodes {
|
| return new _ChildNodeListLazy(this);
|
| }
|
| @@ -20546,14 +20600,41 @@
|
| @DocsEditable()
|
| String get _baseUri native "Node_baseURI_Getter";
|
|
|
| + /**
|
| + * A list of this node's children.
|
| + *
|
| + * ## Other resources
|
| + *
|
| + * * [Node.childNodes]
|
| + * (https://developer.mozilla.org/en-US/docs/Web/API/Node.childNodes)
|
| + * from MDN.
|
| + */
|
| @DomName('Node.childNodes')
|
| @DocsEditable()
|
| List<Node> get childNodes native "Node_childNodes_Getter";
|
|
|
| + /**
|
| + * The first child of this node.
|
| + *
|
| + * ## Other resources
|
| + *
|
| + * * [Node.firstChild]
|
| + * (https://developer.mozilla.org/en-US/docs/Web/API/Node.firstChild)
|
| + * from MDN.
|
| + */
|
| @DomName('Node.firstChild')
|
| @DocsEditable()
|
| Node get firstChild native "Node_firstChild_Getter";
|
|
|
| + /**
|
| + * The last child of this node.
|
| + *
|
| + * ## Other resources
|
| + *
|
| + * * [Node.lastChild]
|
| + * (https://developer.mozilla.org/en-US/docs/Web/API/Node.lastChild)
|
| + * from MDN.
|
| + */
|
| @DomName('Node.lastChild')
|
| @DocsEditable()
|
| Node get lastChild native "Node_lastChild_Getter";
|
| @@ -20566,42 +20647,157 @@
|
| @DocsEditable()
|
| String get _namespaceUri native "Node_namespaceURI_Getter";
|
|
|
| + /**
|
| + * The next sibling node.
|
| + *
|
| + * ## Other resources
|
| + *
|
| + * * [Node.nextSibling]
|
| + * (https://developer.mozilla.org/en-US/docs/Web/API/Node.nextSibling)
|
| + * from MDN.
|
| + */
|
| @DomName('Node.nextSibling')
|
| @DocsEditable()
|
| Node get nextNode native "Node_nextSibling_Getter";
|
|
|
| + /**
|
| + * The name of this node.
|
| + *
|
| + * This varies by this node's [nodeType].
|
| + *
|
| + * ## Other resources
|
| + *
|
| + * * [Node.nodeName]
|
| + * (https://developer.mozilla.org/en-US/docs/Web/API/Node.nodeName)
|
| + * from MDN. This page contains a table of [nodeName] values for each
|
| + * [nodeType].
|
| + */
|
| @DomName('Node.nodeName')
|
| @DocsEditable()
|
| String get nodeName native "Node_nodeName_Getter";
|
|
|
| + /**
|
| + * The type of node.
|
| + *
|
| + * This value is one of:
|
| + *
|
| + * * [ATTRIBUTE_NODE] if this node is an attribute.
|
| + * * [CDATA_SECTION_NODE] if this node is a [CDataSection].
|
| + * * [COMMENT_NODE] if this node is a [Comment].
|
| + * * [DOCUMENT_FRAGMENT_NODE] if this node is a [DocumentFragment].
|
| + * * [DOCUMENT_NODE] if this node is a [Document].
|
| + * * [DOCUMENT_TYPE_NODE] if this node is a [DocumentType] node.
|
| + * * [ELEMENT_NODE] if this node is an [Element].
|
| + * * [ENTITY_NODE] if this node is an entity.
|
| + * * [ENTITY_REFERENCE_NODE] if this node is an entity reference.
|
| + * * [NOTATION_NODE] if this node is a notation.
|
| + * * [PROCESSING_INSTRUCTION_NODE] if this node is a [ProcessingInstruction].
|
| + * * [TEXT_NODE] if this node is a [Text] node.
|
| + *
|
| + * ## Other resources
|
| + *
|
| + * * [Node.nodeType]
|
| + * (https://developer.mozilla.org/en-US/docs/Web/API/Node.nodeType) from MDN.
|
| + */
|
| @DomName('Node.nodeType')
|
| @DocsEditable()
|
| int get nodeType native "Node_nodeType_Getter";
|
|
|
| + /**
|
| + * The value of this node.
|
| + *
|
| + * This varies by this type's [nodeType].
|
| + *
|
| + * ## Other resources
|
| + *
|
| + * * [Node.nodeValue]
|
| + * (https://developer.mozilla.org/en-US/docs/Web/API/Node.nodeValue)
|
| + * from MDN. This page contains a table of [nodeValue] values for each
|
| + * [nodeType].
|
| + */
|
| @DomName('Node.nodeValue')
|
| @DocsEditable()
|
| String get nodeValue native "Node_nodeValue_Getter";
|
|
|
| + /**
|
| + * The document this node belongs to.
|
| + *
|
| + * Returns `null` if this node does not belong to any document.
|
| + *
|
| + * ## Other resources
|
| + *
|
| + * * [Node.ownerDocument]
|
| + * (https://developer.mozilla.org/en-US/docs/Web/API/Node.ownerDocument) from
|
| + * MDN.
|
| + */
|
| @DomName('Node.ownerDocument')
|
| @DocsEditable()
|
| Document get ownerDocument native "Node_ownerDocument_Getter";
|
|
|
| + /**
|
| + * The parent element of this node.
|
| + *
|
| + * Returns `null` if this node either does not have a parent or its parent is
|
| + * not an element.
|
| + *
|
| + * ## Other resources
|
| + *
|
| + * * [Node.parentElement]
|
| + * (https://developer.mozilla.org/en-US/docs/Web/API/Node.parentElement) from
|
| + * W3C.
|
| + */
|
| @DomName('Node.parentElement')
|
| @DocsEditable()
|
| Element get parent native "Node_parentElement_Getter";
|
|
|
| + /**
|
| + * The parent node of this node.
|
| + *
|
| + * ## Other resources
|
| + *
|
| + * * [Node.parentNode]
|
| + * (https://developer.mozilla.org/en-US/docs/Web/API/Node.parentNode) from
|
| + * MDN.
|
| + */
|
| @DomName('Node.parentNode')
|
| @DocsEditable()
|
| Node get parentNode native "Node_parentNode_Getter";
|
|
|
| + /**
|
| + * The previous sibling node.
|
| + *
|
| + * ## Other resources
|
| + *
|
| + * * [Node.previousSibling]
|
| + * (https://developer.mozilla.org/en-US/docs/Web/API/Node.previousSibling)
|
| + * from MDN.
|
| + */
|
| @DomName('Node.previousSibling')
|
| @DocsEditable()
|
| Node get previousNode native "Node_previousSibling_Getter";
|
|
|
| + /**
|
| + * All text within this node and its decendents.
|
| + *
|
| + * ## Other resources
|
| + *
|
| + * * [Node.textContent]
|
| + * (https://developer.mozilla.org/en-US/docs/Web/API/Node.textContent) from
|
| + * MDN.
|
| + */
|
| @DomName('Node.textContent')
|
| @DocsEditable()
|
| String get text native "Node_textContent_Getter";
|
|
|
| + /**
|
| + * All text within this node and its decendents.
|
| + *
|
| + * ## Other resources
|
| + *
|
| + * * [Node.textContent]
|
| + * (https://developer.mozilla.org/en-US/docs/Web/API/Node.textContent) from
|
| + * MDN.
|
| + */
|
| @DomName('Node.textContent')
|
| @DocsEditable()
|
| void set text(String value) native "Node_textContent_Setter";
|
| @@ -20619,18 +20815,56 @@
|
| @DocsEditable()
|
| Node append(Node newChild) native "Node_appendChild_Callback";
|
|
|
| + /**
|
| + * Returns a copy of this node.
|
| + *
|
| + * If [deep] is `true`, then all of this node's children and decendents are
|
| + * copied as well. If [deep] is `false`, then only this node is copied.
|
| + *
|
| + * ## Other resources
|
| + *
|
| + * * [Node.cloneNode]
|
| + * (https://developer.mozilla.org/en-US/docs/Web/API/Node.cloneNode) from
|
| + * MDN.
|
| + */
|
| @DomName('Node.cloneNode')
|
| @DocsEditable()
|
| Node clone(bool deep) native "Node_cloneNode_Callback";
|
|
|
| + /**
|
| + * Returns true if this node contains the specified node.
|
| + *
|
| + * ## Other resources
|
| + *
|
| + * * [Node.contains]
|
| + * (https://developer.mozilla.org/en-US/docs/Web/API/Node.contains) from MDN.
|
| + */
|
| @DomName('Node.contains')
|
| @DocsEditable()
|
| bool contains(Node other) native "Node_contains_Callback";
|
|
|
| + /**
|
| + * Returns true if this node has any children.
|
| + *
|
| + * ## Other resources
|
| + *
|
| + * * [Node.hasChildNodes]
|
| + * (https://developer.mozilla.org/en-US/docs/Web/API/Node.hasChildNodes) from
|
| + * MDN.
|
| + */
|
| @DomName('Node.hasChildNodes')
|
| @DocsEditable()
|
| bool hasChildNodes() native "Node_hasChildNodes_Callback";
|
|
|
| + /**
|
| + * Inserts all of the nodes into this node directly before refChild.
|
| + *
|
| + * ## Other resources
|
| + *
|
| + * * [Node.insertBefore]
|
| + * (https://developer.mozilla.org/en-US/docs/Web/API/Node.insertBefore) from
|
| + * MDN.
|
| + */
|
| @DomName('Node.insertBefore')
|
| @DocsEditable()
|
| Node insertBefore(Node newChild, Node refChild) native "Node_insertBefore_Callback";
|
| @@ -28096,13 +28330,15 @@
|
| * Top-level container for the current browser tab or window.
|
| *
|
| * In a web browser, each window has a [Window] object, but within the context
|
| - * of a script, a [Window] object represents only the current window. In
|
| - * addition to the open window, each window, tab, and iframe has its own
|
| - * [Window] object. A [Window] contains a [Document] object, which contains this
|
| - * web page's content.
|
| + * of a script, this object represents only the current window.
|
| + * Each other window, tab, and iframe has its own [Window] object.
|
| *
|
| - * Use `window` to access properties of the current window. For example:
|
| + * Each window contains a [Document] object, which contains all of the window's
|
| + * content.
|
| *
|
| + * Use the top-level `window` object to access the current window.
|
| + * For example:
|
| + *
|
| * // Draw a scene when the window repaints.
|
| * drawScene(num delta) {...}
|
| * window.animationFrame.then(drawScene);.
|
| @@ -28111,9 +28347,13 @@
|
| * window.console.log('Jinkies!');
|
| * window.console.error('Jeepers!');
|
| *
|
| - * **Note:** This class represents the current window, whereas [WindowBase] is
|
| - * a representation of any window, including other tabs, windows, and frames.
|
| + * **Note:** This class represents only the current window, while [WindowBase]
|
| + * is a representation of any window, including other tabs, windows, and frames.
|
| *
|
| + * ## See also
|
| + *
|
| + * * [WindowBase]
|
| + *
|
| * ## Other resources
|
| *
|
| * * [DOM Window](https://developer.mozilla.org/en-US/docs/DOM/window) from MDN.
|
| @@ -31656,11 +31896,8 @@
|
| /**
|
| * An object that can be drawn to a 2D canvas rendering context.
|
| *
|
| - * This object is either an [ImageElement], [VideoElement], or
|
| - * [CanvasElement].
|
| + * The image drawn to the canvas depends on the type of this object:
|
| *
|
| - * The image drawn to the canvas differs by implementation:
|
| - *
|
| * * If this object is an [ImageElement], then this element's image is
|
| * drawn to the canvas. If this element is an animated image, then this
|
| * element's poster frame is drawn. If this element has no poster frame, then
|
| @@ -31701,13 +31938,17 @@
|
| /**
|
| * Top-level container for a browser tab or window.
|
| *
|
| - * In a web browser, a [WindowBase] object represents any browser window. This
|
| - * abstract class contains the state of the window and its relation to other
|
| - * windows, such as which window opened it.
|
| + * In a web browser, a [WindowBase] object represents any browser window. This
|
| + * object contains the window's state and its relation to other
|
| + * windows, such as which window opened this window.
|
| *
|
| - * **Note:** This class represents any window, whereas [Window] is
|
| + * **Note:** This class represents any window, while [Window] is
|
| * used to access the properties and content of the current window or tab.
|
| *
|
| + * ## See also
|
| + *
|
| + * * [Window]
|
| + *
|
| * ## Other resources
|
| *
|
| * * [DOM Window](https://developer.mozilla.org/en-US/docs/DOM/window) from MDN.
|
|
|