| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 // TODO(jacobr): use _Lists.dart to remove some of the duplicated | 5 // TODO(jacobr): use _Lists.dart to remove some of the duplicated |
| 6 // functionality. | 6 // functionality. |
| 7 class _ChildrenElementList implements ElementList { | 7 class _ChildrenElementList implements ElementList { |
| 8 // Raw Element. | 8 // Raw Element. |
| 9 final _ElementImpl _element; | 9 final _ElementImpl _element; |
| 10 final _HTMLCollectionImpl _childElements; | 10 final _HTMLCollectionImpl _childElements; |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 void addAll(Collection<Element> collection) { | 100 void addAll(Collection<Element> collection) { |
| 101 for (_ElementImpl element in collection) { | 101 for (_ElementImpl element in collection) { |
| 102 _element.$dom_appendChild(element); | 102 _element.$dom_appendChild(element); |
| 103 } | 103 } |
| 104 } | 104 } |
| 105 | 105 |
| 106 void sort(int compare(Element a, Element b)) { | 106 void sort(int compare(Element a, Element b)) { |
| 107 throw const UnsupportedOperationException('TODO(jacobr): should we impl?'); | 107 throw const UnsupportedOperationException('TODO(jacobr): should we impl?'); |
| 108 } | 108 } |
| 109 | 109 |
| 110 void copyFrom(List<Object> src, int srcStart, int dstStart, int count) { | |
| 111 throw 'Not impl yet. todo(jacobr)'; | |
| 112 } | |
| 113 | |
| 114 void setRange(int start, int rangeLength, List from, [int startFrom = 0]) { | 110 void setRange(int start, int rangeLength, List from, [int startFrom = 0]) { |
| 115 throw const NotImplementedException(); | 111 throw const NotImplementedException(); |
| 116 } | 112 } |
| 117 | 113 |
| 118 void removeRange(int start, int rangeLength) { | 114 void removeRange(int start, int rangeLength) { |
| 119 throw const NotImplementedException(); | 115 throw const NotImplementedException(); |
| 120 } | 116 } |
| 121 | 117 |
| 122 void insertRange(int start, int rangeLength, [initialValue = null]) { | 118 void insertRange(int start, int rangeLength, [initialValue = null]) { |
| 123 throw const NotImplementedException(); | 119 throw const NotImplementedException(); |
| (...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 810 | 806 |
| 811 /** @domName Document.createElement */ | 807 /** @domName Document.createElement */ |
| 812 $if DART2JS | 808 $if DART2JS |
| 813 // Optimization to improve performance until the dart2js compiler inlines this | 809 // Optimization to improve performance until the dart2js compiler inlines this |
| 814 // method. | 810 // method. |
| 815 factory Element.tag(String tag) native "return document.createElement(tag)"; | 811 factory Element.tag(String tag) native "return document.createElement(tag)"; |
| 816 $else | 812 $else |
| 817 factory Element.tag(String tag) => _document.$dom_createElement(tag); | 813 factory Element.tag(String tag) => _document.$dom_createElement(tag); |
| 818 $endif | 814 $endif |
| 819 } | 815 } |
| OLD | NEW |