| OLD | NEW |
| 1 library html; | 1 library html; |
| 2 | 2 |
| 3 import 'dart:async'; | 3 import 'dart:async'; |
| 4 import 'dart:collection'; | 4 import 'dart:collection'; |
| 5 import 'dart:html_common'; | 5 import 'dart:html_common'; |
| 6 import 'dart:indexed_db'; | 6 import 'dart:indexed_db'; |
| 7 import 'dart:isolate'; | 7 import 'dart:isolate'; |
| 8 import 'dart:json' as json; | 8 import 'dart:json' as json; |
| 9 import 'dart:math'; | 9 import 'dart:math'; |
| 10 import 'dart:svg' as svg; | 10 import 'dart:svg' as svg; |
| (...skipping 14509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14520 final String type; | 14520 final String type; |
| 14521 } | 14521 } |
| 14522 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14522 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 14523 // for details. All rights reserved. Use of this source code is governed by a | 14523 // for details. All rights reserved. Use of this source code is governed by a |
| 14524 // BSD-style license that can be found in the LICENSE file. | 14524 // BSD-style license that can be found in the LICENSE file. |
| 14525 | 14525 |
| 14526 | 14526 |
| 14527 /// @domName NamedNodeMap; @docsEditable true | 14527 /// @domName NamedNodeMap; @docsEditable true |
| 14528 class NamedNodeMap implements JavaScriptIndexingBehavior, List<Node> native "*Na
medNodeMap" { | 14528 class NamedNodeMap implements JavaScriptIndexingBehavior, List<Node> native "*Na
medNodeMap" { |
| 14529 | 14529 |
| 14530 /// @domName NamedNodeMap.length; @docsEditable true |
| 14531 int get length => JS("int", "#.length", this); |
| 14532 |
| 14530 Node operator[](int index) => JS("Node", "#[#]", this, index); | 14533 Node operator[](int index) => JS("Node", "#[#]", this, index); |
| 14531 | 14534 |
| 14532 void operator[]=(int index, Node value) { | 14535 void operator[]=(int index, Node value) { |
| 14533 throw new UnsupportedError("Cannot assign element of immutable List."); | 14536 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 14534 } | 14537 } |
| 14535 // -- start List<Node> mixins. | 14538 // -- start List<Node> mixins. |
| 14536 // Node is the element type. | 14539 // Node is the element type. |
| 14537 | 14540 |
| 14538 // From Iterable<Node>: | 14541 // From Iterable<Node>: |
| 14539 | 14542 |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14668 | 14671 |
| 14669 void insertRange(int start, int rangeLength, [Node initialValue]) { | 14672 void insertRange(int start, int rangeLength, [Node initialValue]) { |
| 14670 throw new UnsupportedError("Cannot insertRange on immutable List."); | 14673 throw new UnsupportedError("Cannot insertRange on immutable List."); |
| 14671 } | 14674 } |
| 14672 | 14675 |
| 14673 List<Node> getRange(int start, int rangeLength) => | 14676 List<Node> getRange(int start, int rangeLength) => |
| 14674 Lists.getRange(this, start, rangeLength, <Node>[]); | 14677 Lists.getRange(this, start, rangeLength, <Node>[]); |
| 14675 | 14678 |
| 14676 // -- end List<Node> mixins. | 14679 // -- end List<Node> mixins. |
| 14677 | 14680 |
| 14681 /// @domName NamedNodeMap.getNamedItem; @docsEditable true |
| 14682 Node getNamedItem(String name) native; |
| 14683 |
| 14684 /// @domName NamedNodeMap.getNamedItemNS; @docsEditable true |
| 14685 Node getNamedItemNS(String namespaceURI, String localName) native; |
| 14686 |
| 14678 /// @domName NamedNodeMap.item; @docsEditable true | 14687 /// @domName NamedNodeMap.item; @docsEditable true |
| 14679 @JSName('item') | 14688 Node item(int index) native; |
| 14680 Node _item(int index) native; | 14689 |
| 14690 /// @domName NamedNodeMap.removeNamedItem; @docsEditable true |
| 14691 Node removeNamedItem(String name) native; |
| 14692 |
| 14693 /// @domName NamedNodeMap.removeNamedItemNS; @docsEditable true |
| 14694 Node removeNamedItemNS(String namespaceURI, String localName) native; |
| 14695 |
| 14696 /// @domName NamedNodeMap.setNamedItem; @docsEditable true |
| 14697 Node setNamedItem(Node node) native; |
| 14698 |
| 14699 /// @domName NamedNodeMap.setNamedItemNS; @docsEditable true |
| 14700 Node setNamedItemNS(Node node) native; |
| 14681 } | 14701 } |
| 14682 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14702 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 14683 // for details. All rights reserved. Use of this source code is governed by a | 14703 // for details. All rights reserved. Use of this source code is governed by a |
| 14684 // BSD-style license that can be found in the LICENSE file. | 14704 // BSD-style license that can be found in the LICENSE file. |
| 14685 | 14705 |
| 14686 | 14706 |
| 14687 /// @domName Navigator; @docsEditable true | 14707 /// @domName Navigator; @docsEditable true |
| 14688 class Navigator native "*Navigator" { | 14708 class Navigator native "*Navigator" { |
| 14689 | 14709 |
| 14690 /// @domName Navigator.language; @docsEditable true | 14710 /// @domName Navigator.language; @docsEditable true |
| (...skipping 13288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 27979 _position = nextPosition; | 27999 _position = nextPosition; |
| 27980 return true; | 28000 return true; |
| 27981 } | 28001 } |
| 27982 _current = null; | 28002 _current = null; |
| 27983 _position = _array.length; | 28003 _position = _array.length; |
| 27984 return false; | 28004 return false; |
| 27985 } | 28005 } |
| 27986 | 28006 |
| 27987 T get current => _current; | 28007 T get current => _current; |
| 27988 } | 28008 } |
| OLD | NEW |