| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // WARNING: Do not edit - generated code. | 5 // WARNING: Do not edit - generated code. |
| 6 | 6 |
| 7 class _NodeWrappingImplementation extends DOMWrapperBase implements Node { | 7 class _NodeWrappingImplementation extends DOMWrapperBase implements Node { |
| 8 _NodeWrappingImplementation() : super() {} | 8 _NodeWrappingImplementation() : super() {} |
| 9 | 9 |
| 10 static create__NodeWrappingImplementation() native { | 10 static create__NodeWrappingImplementation() native { |
| 11 return new _NodeWrappingImplementation(); | 11 return new _NodeWrappingImplementation(); |
| 12 } | 12 } |
| 13 | 13 |
| 14 NamedNodeMap get attributes() { return _get__Node_attributes(this); } | 14 NamedNodeMap get attributes() { return _get_attributes(this); } |
| 15 static NamedNodeMap _get__Node_attributes(var _this) native; | 15 static NamedNodeMap _get_attributes(var _this) native; |
| 16 | 16 |
| 17 String get baseURI() { return _get__Node_baseURI(this); } | 17 String get baseURI() { return _get_baseURI(this); } |
| 18 static String _get__Node_baseURI(var _this) native; | 18 static String _get_baseURI(var _this) native; |
| 19 | 19 |
| 20 NodeList get childNodes() { return _get__Node_childNodes(this); } | 20 NodeList get childNodes() { return _get_childNodes(this); } |
| 21 static NodeList _get__Node_childNodes(var _this) native; | 21 static NodeList _get_childNodes(var _this) native; |
| 22 | 22 |
| 23 Node get firstChild() { return _get__Node_firstChild(this); } | 23 Node get firstChild() { return _get_firstChild(this); } |
| 24 static Node _get__Node_firstChild(var _this) native; | 24 static Node _get_firstChild(var _this) native; |
| 25 | 25 |
| 26 Node get lastChild() { return _get__Node_lastChild(this); } | 26 Node get lastChild() { return _get_lastChild(this); } |
| 27 static Node _get__Node_lastChild(var _this) native; | 27 static Node _get_lastChild(var _this) native; |
| 28 | 28 |
| 29 String get localName() { return _get__Node_localName(this); } | 29 String get localName() { return _get_localName(this); } |
| 30 static String _get__Node_localName(var _this) native; | 30 static String _get_localName(var _this) native; |
| 31 | 31 |
| 32 String get namespaceURI() { return _get__Node_namespaceURI(this); } | 32 String get namespaceURI() { return _get_namespaceURI(this); } |
| 33 static String _get__Node_namespaceURI(var _this) native; | 33 static String _get_namespaceURI(var _this) native; |
| 34 | 34 |
| 35 Node get nextSibling() { return _get__Node_nextSibling(this); } | 35 Node get nextSibling() { return _get_nextSibling(this); } |
| 36 static Node _get__Node_nextSibling(var _this) native; | 36 static Node _get_nextSibling(var _this) native; |
| 37 | 37 |
| 38 String get nodeName() { return _get__Node_nodeName(this); } | 38 String get nodeName() { return _get_nodeName(this); } |
| 39 static String _get__Node_nodeName(var _this) native; | 39 static String _get_nodeName(var _this) native; |
| 40 | 40 |
| 41 int get nodeType() { return _get__Node_nodeType(this); } | 41 int get nodeType() { return _get_nodeType(this); } |
| 42 static int _get__Node_nodeType(var _this) native; | 42 static int _get_nodeType(var _this) native; |
| 43 | 43 |
| 44 String get nodeValue() { return _get__Node_nodeValue(this); } | 44 String get nodeValue() { return _get_nodeValue(this); } |
| 45 static String _get__Node_nodeValue(var _this) native; | 45 static String _get_nodeValue(var _this) native; |
| 46 | 46 |
| 47 void set nodeValue(String value) { _set__Node_nodeValue(this, value); } | 47 void set nodeValue(String value) { _set_nodeValue(this, value); } |
| 48 static void _set__Node_nodeValue(var _this, String value) native; | 48 static void _set_nodeValue(var _this, String value) native; |
| 49 | 49 |
| 50 Document get ownerDocument() { return _get__Node_ownerDocument(this); } | 50 Document get ownerDocument() { return _get_ownerDocument(this); } |
| 51 static Document _get__Node_ownerDocument(var _this) native; | 51 static Document _get_ownerDocument(var _this) native; |
| 52 | 52 |
| 53 Element get parentElement() { return _get__Node_parentElement(this); } | 53 Element get parentElement() { return _get_parentElement(this); } |
| 54 static Element _get__Node_parentElement(var _this) native; | 54 static Element _get_parentElement(var _this) native; |
| 55 | 55 |
| 56 Node get parentNode() { return _get__Node_parentNode(this); } | 56 Node get parentNode() { return _get_parentNode(this); } |
| 57 static Node _get__Node_parentNode(var _this) native; | 57 static Node _get_parentNode(var _this) native; |
| 58 | 58 |
| 59 String get prefix() { return _get__Node_prefix(this); } | 59 String get prefix() { return _get_prefix(this); } |
| 60 static String _get__Node_prefix(var _this) native; | 60 static String _get_prefix(var _this) native; |
| 61 | 61 |
| 62 void set prefix(String value) { _set__Node_prefix(this, value); } | 62 void set prefix(String value) { _set_prefix(this, value); } |
| 63 static void _set__Node_prefix(var _this, String value) native; | 63 static void _set_prefix(var _this, String value) native; |
| 64 | 64 |
| 65 Node get previousSibling() { return _get__Node_previousSibling(this); } | 65 Node get previousSibling() { return _get_previousSibling(this); } |
| 66 static Node _get__Node_previousSibling(var _this) native; | 66 static Node _get_previousSibling(var _this) native; |
| 67 | 67 |
| 68 String get textContent() { return _get__Node_textContent(this); } | 68 String get textContent() { return _get_textContent(this); } |
| 69 static String _get__Node_textContent(var _this) native; | 69 static String _get_textContent(var _this) native; |
| 70 | 70 |
| 71 void set textContent(String value) { _set__Node_textContent(this, value); } | 71 void set textContent(String value) { _set_textContent(this, value); } |
| 72 static void _set__Node_textContent(var _this, String value) native; | 72 static void _set_textContent(var _this, String value) native; |
| 73 | 73 |
| 74 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) { | 74 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) { |
| 75 if (useCapture === null) { | 75 if (useCapture === null) { |
| 76 _addEventListener(this, type, listener); | 76 _addEventListener_Node(this, type, listener); |
| 77 return; | 77 return; |
| 78 } else { | 78 } else { |
| 79 _addEventListener_2(this, type, listener, useCapture); | 79 _addEventListener_Node_2(this, type, listener, useCapture); |
| 80 return; | 80 return; |
| 81 } | 81 } |
| 82 } | 82 } |
| 83 static void _addEventListener(receiver, type, listener) native; | 83 static void _addEventListener_Node(receiver, type, listener) native; |
| 84 static void _addEventListener_2(receiver, type, listener, useCapture) native; | 84 static void _addEventListener_Node_2(receiver, type, listener, useCapture) nat
ive; |
| 85 | 85 |
| 86 Node appendChild(Node newChild) { | 86 Node appendChild(Node newChild) { |
| 87 return _appendChild(this, newChild); | 87 return _appendChild(this, newChild); |
| 88 } | 88 } |
| 89 static Node _appendChild(receiver, newChild) native; | 89 static Node _appendChild(receiver, newChild) native; |
| 90 | 90 |
| 91 Node cloneNode(bool deep) { | 91 Node cloneNode(bool deep) { |
| 92 return _cloneNode(this, deep); | 92 return _cloneNode(this, deep); |
| 93 } | 93 } |
| 94 static Node _cloneNode(receiver, deep) native; | 94 static Node _cloneNode(receiver, deep) native; |
| 95 | 95 |
| 96 int compareDocumentPosition(Node other) { | 96 int compareDocumentPosition(Node other) { |
| 97 return _compareDocumentPosition(this, other); | 97 return _compareDocumentPosition(this, other); |
| 98 } | 98 } |
| 99 static int _compareDocumentPosition(receiver, other) native; | 99 static int _compareDocumentPosition(receiver, other) native; |
| 100 | 100 |
| 101 bool contains(Node other) { | 101 bool contains(Node other) { |
| 102 return _contains(this, other); | 102 return _contains(this, other); |
| 103 } | 103 } |
| 104 static bool _contains(receiver, other) native; | 104 static bool _contains(receiver, other) native; |
| 105 | 105 |
| 106 bool dispatchEvent(Event event) { | 106 bool dispatchEvent(Event event) { |
| 107 return _dispatchEvent(this, event); | 107 return _dispatchEvent_Node(this, event); |
| 108 } | 108 } |
| 109 static bool _dispatchEvent(receiver, event) native; | 109 static bool _dispatchEvent_Node(receiver, event) native; |
| 110 | 110 |
| 111 bool hasAttributes() { | 111 bool hasAttributes() { |
| 112 return _hasAttributes(this); | 112 return _hasAttributes(this); |
| 113 } | 113 } |
| 114 static bool _hasAttributes(receiver) native; | 114 static bool _hasAttributes(receiver) native; |
| 115 | 115 |
| 116 bool hasChildNodes() { | 116 bool hasChildNodes() { |
| 117 return _hasChildNodes(this); | 117 return _hasChildNodes(this); |
| 118 } | 118 } |
| 119 static bool _hasChildNodes(receiver) native; | 119 static bool _hasChildNodes(receiver) native; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 } | 159 } |
| 160 static void _normalize(receiver) native; | 160 static void _normalize(receiver) native; |
| 161 | 161 |
| 162 Node removeChild(Node oldChild) { | 162 Node removeChild(Node oldChild) { |
| 163 return _removeChild(this, oldChild); | 163 return _removeChild(this, oldChild); |
| 164 } | 164 } |
| 165 static Node _removeChild(receiver, oldChild) native; | 165 static Node _removeChild(receiver, oldChild) native; |
| 166 | 166 |
| 167 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) { | 167 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) { |
| 168 if (useCapture === null) { | 168 if (useCapture === null) { |
| 169 _removeEventListener(this, type, listener); | 169 _removeEventListener_Node(this, type, listener); |
| 170 return; | 170 return; |
| 171 } else { | 171 } else { |
| 172 _removeEventListener_2(this, type, listener, useCapture); | 172 _removeEventListener_Node_2(this, type, listener, useCapture); |
| 173 return; | 173 return; |
| 174 } | 174 } |
| 175 } | 175 } |
| 176 static void _removeEventListener(receiver, type, listener) native; | 176 static void _removeEventListener_Node(receiver, type, listener) native; |
| 177 static void _removeEventListener_2(receiver, type, listener, useCapture) nativ
e; | 177 static void _removeEventListener_Node_2(receiver, type, listener, useCapture)
native; |
| 178 | 178 |
| 179 Node replaceChild(Node newChild, Node oldChild) { | 179 Node replaceChild(Node newChild, Node oldChild) { |
| 180 return _replaceChild(this, newChild, oldChild); | 180 return _replaceChild(this, newChild, oldChild); |
| 181 } | 181 } |
| 182 static Node _replaceChild(receiver, newChild, oldChild) native; | 182 static Node _replaceChild(receiver, newChild, oldChild) native; |
| 183 | 183 |
| 184 String get typeName() { return "Node"; } | 184 String get typeName() { return "Node"; } |
| 185 } | 185 } |
| OLD | NEW |