| OLD | NEW |
| 1 /// The Dart HTML library. | 1 /// The Dart HTML library. |
| 2 library dart.dom.html; | 2 library dart.dom.html; |
| 3 | 3 |
| 4 import 'dart:async'; | 4 import 'dart:async'; |
| 5 import 'dart:collection'; | 5 import 'dart:collection'; |
| 6 import 'dart:_collection-dev'; | 6 import 'dart:_collection-dev'; |
| 7 import 'dart:html_common'; | 7 import 'dart:html_common'; |
| 8 import 'dart:indexed_db'; | 8 import 'dart:indexed_db'; |
| 9 import 'dart:isolate'; | 9 import 'dart:isolate'; |
| 10 import 'dart:json' as json; | 10 import 'dart:json' as json; |
| (...skipping 6128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6139 @JSName('createElementNS') | 6139 @JSName('createElementNS') |
| 6140 @DomName('Document.createElementNS') | 6140 @DomName('Document.createElementNS') |
| 6141 @DocsEditable | 6141 @DocsEditable |
| 6142 Element $dom_createElementNS(String namespaceURI, String qualifiedName, [Strin
g typeExtension]) native; | 6142 Element $dom_createElementNS(String namespaceURI, String qualifiedName, [Strin
g typeExtension]) native; |
| 6143 | 6143 |
| 6144 @JSName('createEvent') | 6144 @JSName('createEvent') |
| 6145 @DomName('Document.createEvent') | 6145 @DomName('Document.createEvent') |
| 6146 @DocsEditable | 6146 @DocsEditable |
| 6147 Event $dom_createEvent(String eventType) native; | 6147 Event $dom_createEvent(String eventType) native; |
| 6148 | 6148 |
| 6149 @JSName('createNodeIterator') |
| 6150 @DomName('Document.createNodeIterator') |
| 6151 @DocsEditable |
| 6152 NodeIterator $dom_createNodeIterator(Node root, int whatToShow, NodeFilter fil
ter, bool expandEntityReferences) native; |
| 6153 |
| 6149 @JSName('createRange') | 6154 @JSName('createRange') |
| 6150 @DomName('Document.createRange') | 6155 @DomName('Document.createRange') |
| 6151 @DocsEditable | 6156 @DocsEditable |
| 6152 Range $dom_createRange() native; | 6157 Range $dom_createRange() native; |
| 6153 | 6158 |
| 6154 @JSName('createTextNode') | 6159 @JSName('createTextNode') |
| 6155 @DomName('Document.createTextNode') | 6160 @DomName('Document.createTextNode') |
| 6156 @DocsEditable | 6161 @DocsEditable |
| 6157 Text $dom_createTextNode(String data) native; | 6162 Text $dom_createTextNode(String data) native; |
| 6158 | 6163 |
| 6159 @DomName('Document.createTouch') | 6164 @DomName('Document.createTouch') |
| 6160 @DocsEditable | 6165 @DocsEditable |
| 6161 Touch $dom_createTouch(Window window, EventTarget target, int identifier, int
pageX, int pageY, int screenX, int screenY, int webkitRadiusX, int webkitRadiusY
, num webkitRotationAngle, num webkitForce) { | 6166 Touch $dom_createTouch(Window window, EventTarget target, int identifier, int
pageX, int pageY, int screenX, int screenY, int webkitRadiusX, int webkitRadiusY
, num webkitRotationAngle, num webkitForce) { |
| 6162 var target_1 = _convertDartToNative_EventTarget(target); | 6167 var target_1 = _convertDartToNative_EventTarget(target); |
| 6163 return _$dom_createTouch_1(window, target_1, identifier, pageX, pageY, scree
nX, screenY, webkitRadiusX, webkitRadiusY, webkitRotationAngle, webkitForce); | 6168 return _$dom_createTouch_1(window, target_1, identifier, pageX, pageY, scree
nX, screenY, webkitRadiusX, webkitRadiusY, webkitRotationAngle, webkitForce); |
| 6164 } | 6169 } |
| 6165 @JSName('createTouch') | 6170 @JSName('createTouch') |
| 6166 @DomName('Document.createTouch') | 6171 @DomName('Document.createTouch') |
| 6167 @DocsEditable | 6172 @DocsEditable |
| 6168 Touch _$dom_createTouch_1(Window window, target, identifier, pageX, pageY, scr
eenX, screenY, webkitRadiusX, webkitRadiusY, webkitRotationAngle, webkitForce) n
ative; | 6173 Touch _$dom_createTouch_1(Window window, target, identifier, pageX, pageY, scr
eenX, screenY, webkitRadiusX, webkitRadiusY, webkitRotationAngle, webkitForce) n
ative; |
| 6169 | 6174 |
| 6170 @JSName('createTouchList') | 6175 @JSName('createTouchList') |
| 6171 /// Use the [TouchList] constructor instead. | 6176 /// Use the [TouchList] constructor instead. |
| 6172 @DomName('Document.createTouchList') | 6177 @DomName('Document.createTouchList') |
| 6173 @DocsEditable | 6178 @DocsEditable |
| 6174 TouchList $dom_createTouchList() native; | 6179 TouchList $dom_createTouchList() native; |
| 6175 | 6180 |
| 6181 @JSName('createTreeWalker') |
| 6182 @DomName('Document.createTreeWalker') |
| 6183 @DocsEditable |
| 6184 TreeWalker $dom_createTreeWalker(Node root, int whatToShow, NodeFilter filter,
bool expandEntityReferences) native; |
| 6185 |
| 6176 @JSName('elementFromPoint') | 6186 @JSName('elementFromPoint') |
| 6177 @DomName('Document.elementFromPoint') | 6187 @DomName('Document.elementFromPoint') |
| 6178 @DocsEditable | 6188 @DocsEditable |
| 6179 Element $dom_elementFromPoint(int x, int y) native; | 6189 Element $dom_elementFromPoint(int x, int y) native; |
| 6180 | 6190 |
| 6181 @DomName('Document.execCommand') | 6191 @DomName('Document.execCommand') |
| 6182 @DocsEditable | 6192 @DocsEditable |
| 6183 bool execCommand(String command, bool userInterface, String value) native; | 6193 bool execCommand(String command, bool userInterface, String value) native; |
| 6184 | 6194 |
| 6185 @JSName('getCSSCanvasContext') | 6195 @JSName('getCSSCanvasContext') |
| (...skipping 3171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9357 String type; | 9367 String type; |
| 9358 | 9368 |
| 9359 @DomName('HTMLEmbedElement.width') | 9369 @DomName('HTMLEmbedElement.width') |
| 9360 @DocsEditable | 9370 @DocsEditable |
| 9361 String width; | 9371 String width; |
| 9362 } | 9372 } |
| 9363 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9373 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 9364 // for details. All rights reserved. Use of this source code is governed by a | 9374 // for details. All rights reserved. Use of this source code is governed by a |
| 9365 // BSD-style license that can be found in the LICENSE file. | 9375 // BSD-style license that can be found in the LICENSE file. |
| 9366 | 9376 |
| 9367 | |
| 9368 @DocsEditable | |
| 9369 @DomName('EntityReference') | |
| 9370 class EntityReference extends Node native "EntityReference" { | |
| 9371 } | |
| 9372 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 9373 // for details. All rights reserved. Use of this source code is governed by a | |
| 9374 // BSD-style license that can be found in the LICENSE file. | |
| 9375 | |
| 9376 // WARNING: Do not edit - generated code. | 9377 // WARNING: Do not edit - generated code. |
| 9377 | 9378 |
| 9378 | 9379 |
| 9379 typedef void _EntriesCallback(List<Entry> entries); | 9380 typedef void _EntriesCallback(List<Entry> entries); |
| 9380 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9381 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 9381 // for details. All rights reserved. Use of this source code is governed by a | 9382 // for details. All rights reserved. Use of this source code is governed by a |
| 9382 // BSD-style license that can be found in the LICENSE file. | 9383 // BSD-style license that can be found in the LICENSE file. |
| 9383 | 9384 |
| 9384 | 9385 |
| 9385 @DocsEditable | 9386 @DocsEditable |
| (...skipping 6687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16073 | 16074 |
| 16074 static const int SHOW_ENTITY = 0x00000020; | 16075 static const int SHOW_ENTITY = 0x00000020; |
| 16075 | 16076 |
| 16076 static const int SHOW_ENTITY_REFERENCE = 0x00000010; | 16077 static const int SHOW_ENTITY_REFERENCE = 0x00000010; |
| 16077 | 16078 |
| 16078 static const int SHOW_NOTATION = 0x00000800; | 16079 static const int SHOW_NOTATION = 0x00000800; |
| 16079 | 16080 |
| 16080 static const int SHOW_PROCESSING_INSTRUCTION = 0x00000040; | 16081 static const int SHOW_PROCESSING_INSTRUCTION = 0x00000040; |
| 16081 | 16082 |
| 16082 static const int SHOW_TEXT = 0x00000004; | 16083 static const int SHOW_TEXT = 0x00000004; |
| 16083 | |
| 16084 @DomName('NodeFilter.acceptNode') | |
| 16085 @DocsEditable | |
| 16086 int acceptNode(Node n) native; | |
| 16087 } | 16084 } |
| 16088 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16085 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 16089 // for details. All rights reserved. Use of this source code is governed by a | 16086 // for details. All rights reserved. Use of this source code is governed by a |
| 16090 // BSD-style license that can be found in the LICENSE file. | 16087 // BSD-style license that can be found in the LICENSE file. |
| 16091 | 16088 |
| 16092 | 16089 |
| 16093 @DocsEditable | |
| 16094 @DomName('NodeIterator') | 16090 @DomName('NodeIterator') |
| 16095 class NodeIterator native "NodeIterator" { | 16091 class NodeIterator native "NodeIterator" { |
| 16096 | 16092 factory NodeIterator(Node root, int whatToShow) { |
| 16097 @DomName('NodeIterator.expandEntityReferences') | 16093 return document.$dom_createNodeIterator(root, whatToShow, null, false); |
| 16098 @DocsEditable | 16094 } |
| 16099 final bool expandEntityReferences; | |
| 16100 | |
| 16101 @DomName('NodeIterator.filter') | |
| 16102 @DocsEditable | |
| 16103 final NodeFilter filter; | |
| 16104 | 16095 |
| 16105 @DomName('NodeIterator.pointerBeforeReferenceNode') | 16096 @DomName('NodeIterator.pointerBeforeReferenceNode') |
| 16106 @DocsEditable | 16097 @DocsEditable |
| 16107 final bool pointerBeforeReferenceNode; | 16098 final bool pointerBeforeReferenceNode; |
| 16108 | 16099 |
| 16109 @DomName('NodeIterator.referenceNode') | 16100 @DomName('NodeIterator.referenceNode') |
| 16110 @DocsEditable | 16101 @DocsEditable |
| 16111 final Node referenceNode; | 16102 final Node referenceNode; |
| 16112 | 16103 |
| 16113 @DomName('NodeIterator.root') | 16104 @DomName('NodeIterator.root') |
| 16114 @DocsEditable | 16105 @DocsEditable |
| 16115 final Node root; | 16106 final Node root; |
| 16116 | 16107 |
| 16117 @DomName('NodeIterator.whatToShow') | 16108 @DomName('NodeIterator.whatToShow') |
| 16118 @DocsEditable | 16109 @DocsEditable |
| 16119 final int whatToShow; | 16110 final int whatToShow; |
| 16120 | 16111 |
| 16121 @DomName('NodeIterator.detach') | 16112 @DomName('NodeIterator.detach') |
| 16122 @DocsEditable | 16113 @DocsEditable |
| 16123 void detach() native; | 16114 void detach() native; |
| 16124 | 16115 |
| 16125 @DomName('NodeIterator.nextNode') | 16116 @DomName('NodeIterator.nextNode') |
| 16126 @DocsEditable | 16117 @DocsEditable |
| 16127 Node nextNode() native; | 16118 Node nextNode() native; |
| 16128 | 16119 |
| 16129 @DomName('NodeIterator.previousNode') | 16120 @DomName('NodeIterator.previousNode') |
| 16130 @DocsEditable | 16121 @DocsEditable |
| 16131 Node previousNode() native; | 16122 Node previousNode() native; |
| 16123 |
| 16132 } | 16124 } |
| 16133 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16125 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 16134 // for details. All rights reserved. Use of this source code is governed by a | 16126 // for details. All rights reserved. Use of this source code is governed by a |
| 16135 // BSD-style license that can be found in the LICENSE file. | 16127 // BSD-style license that can be found in the LICENSE file. |
| 16136 | 16128 |
| 16137 | 16129 |
| 16138 @DocsEditable | 16130 @DocsEditable |
| 16139 @DomName('NodeList') | 16131 @DomName('NodeList') |
| 16140 class NodeList implements JavaScriptIndexingBehavior, List<Node> native "NodeLis
t,RadioNodeList" { | 16132 class NodeList implements JavaScriptIndexingBehavior, List<Node> native "NodeLis
t,RadioNodeList" { |
| 16141 | 16133 |
| (...skipping 5264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21406 final num elapsedTime; | 21398 final num elapsedTime; |
| 21407 | 21399 |
| 21408 @DomName('TransitionEvent.propertyName') | 21400 @DomName('TransitionEvent.propertyName') |
| 21409 @DocsEditable | 21401 @DocsEditable |
| 21410 final String propertyName; | 21402 final String propertyName; |
| 21411 | 21403 |
| 21412 @DomName('TransitionEvent.pseudoElement') | 21404 @DomName('TransitionEvent.pseudoElement') |
| 21413 @DocsEditable | 21405 @DocsEditable |
| 21414 final String pseudoElement; | 21406 final String pseudoElement; |
| 21415 } | 21407 } |
| 21416 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21408 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 21417 // for details. All rights reserved. Use of this source code is governed by a | 21409 // for details. All rights reserved. Use of this source code is governed by a |
| 21418 // BSD-style license that can be found in the LICENSE file. | 21410 // BSD-style license that can be found in the LICENSE file. |
| 21419 | 21411 |
| 21420 | 21412 |
| 21421 @DocsEditable | |
| 21422 @DomName('TreeWalker') | 21413 @DomName('TreeWalker') |
| 21423 class TreeWalker native "TreeWalker" { | 21414 class TreeWalker native "TreeWalker" { |
| 21415 factory TreeWalker(Node root, int whatToShow) { |
| 21416 return document.$dom_createTreeWalker(root, whatToShow, null, false); |
| 21417 } |
| 21424 | 21418 |
| 21425 @DomName('TreeWalker.currentNode') | 21419 @DomName('TreeWalker.currentNode') |
| 21426 @DocsEditable | 21420 @DocsEditable |
| 21427 Node currentNode; | 21421 Node currentNode; |
| 21428 | 21422 |
| 21429 @DomName('TreeWalker.expandEntityReferences') | 21423 @DomName('TreeWalker.expandEntityReferences') |
| 21430 @DocsEditable | 21424 @DocsEditable |
| 21431 final bool expandEntityReferences; | 21425 final bool expandEntityReferences; |
| 21432 | 21426 |
| 21433 @DomName('TreeWalker.filter') | 21427 @DomName('TreeWalker.filter') |
| (...skipping 28 matching lines...) Expand all Loading... |
| 21462 @DocsEditable | 21456 @DocsEditable |
| 21463 Node parentNode() native; | 21457 Node parentNode() native; |
| 21464 | 21458 |
| 21465 @DomName('TreeWalker.previousNode') | 21459 @DomName('TreeWalker.previousNode') |
| 21466 @DocsEditable | 21460 @DocsEditable |
| 21467 Node previousNode() native; | 21461 Node previousNode() native; |
| 21468 | 21462 |
| 21469 @DomName('TreeWalker.previousSibling') | 21463 @DomName('TreeWalker.previousSibling') |
| 21470 @DocsEditable | 21464 @DocsEditable |
| 21471 Node previousSibling() native; | 21465 Node previousSibling() native; |
| 21466 |
| 21472 } | 21467 } |
| 21473 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21468 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 21474 // for details. All rights reserved. Use of this source code is governed by a | 21469 // for details. All rights reserved. Use of this source code is governed by a |
| 21475 // BSD-style license that can be found in the LICENSE file. | 21470 // BSD-style license that can be found in the LICENSE file. |
| 21476 | 21471 |
| 21477 // WARNING: Do not edit - generated code. | 21472 // WARNING: Do not edit - generated code. |
| 21478 | 21473 |
| 21479 | 21474 |
| 21480 @DomName('UIEvent') | 21475 @DomName('UIEvent') |
| 21481 class UIEvent extends Event native "UIEvent" { | 21476 class UIEvent extends Event native "UIEvent" { |
| (...skipping 2864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 24346 @DomName('DOMPoint.y') | 24341 @DomName('DOMPoint.y') |
| 24347 @DocsEditable | 24342 @DocsEditable |
| 24348 num y; | 24343 num y; |
| 24349 } | 24344 } |
| 24350 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 24345 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 24351 // for details. All rights reserved. Use of this source code is governed by a | 24346 // for details. All rights reserved. Use of this source code is governed by a |
| 24352 // BSD-style license that can be found in the LICENSE file. | 24347 // BSD-style license that can be found in the LICENSE file. |
| 24353 | 24348 |
| 24354 | 24349 |
| 24355 @DocsEditable | 24350 @DocsEditable |
| 24351 @DomName('EntityReference') |
| 24352 abstract class _EntityReference extends Node native "EntityReference" { |
| 24353 } |
| 24354 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 24355 // for details. All rights reserved. Use of this source code is governed by a |
| 24356 // BSD-style license that can be found in the LICENSE file. |
| 24357 |
| 24358 |
| 24359 @DocsEditable |
| 24356 @DomName('EntryArray') | 24360 @DomName('EntryArray') |
| 24357 class _EntryArray implements JavaScriptIndexingBehavior, List<Entry> native "Ent
ryArray" { | 24361 class _EntryArray implements JavaScriptIndexingBehavior, List<Entry> native "Ent
ryArray" { |
| 24358 | 24362 |
| 24359 @DomName('EntryArray.length') | 24363 @DomName('EntryArray.length') |
| 24360 @DocsEditable | 24364 @DocsEditable |
| 24361 int get length => JS("int", "#.length", this); | 24365 int get length => JS("int", "#.length", this); |
| 24362 | 24366 |
| 24363 Entry operator[](int index) => JS("Entry", "#[#]", this, index); | 24367 Entry operator[](int index) => JS("Entry", "#[#]", this, index); |
| 24364 | 24368 |
| 24365 void operator[]=(int index, Entry value) { | 24369 void operator[]=(int index, Entry value) { |
| (...skipping 5226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 29592 _position = nextPosition; | 29596 _position = nextPosition; |
| 29593 return true; | 29597 return true; |
| 29594 } | 29598 } |
| 29595 _current = null; | 29599 _current = null; |
| 29596 _position = _array.length; | 29600 _position = _array.length; |
| 29597 return false; | 29601 return false; |
| 29598 } | 29602 } |
| 29599 | 29603 |
| 29600 T get current => _current; | 29604 T get current => _current; |
| 29601 } | 29605 } |
| OLD | NEW |