| 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 part of $LIBRARYNAME; | 5 part of $LIBRARYNAME; |
| 6 | 6 |
| 7 // TODO(jacobr): use _Lists.dart to remove some of the duplicated | 7 // TODO(jacobr): use _Lists.dart to remove some of the duplicated |
| 8 // functionality. | 8 // functionality. |
| 9 class _ChildrenElementList extends ListBase<Element> { | 9 class _ChildrenElementList extends ListBase<Element> { |
| 10 // Raw Element. | 10 // Raw Element. |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 | 159 |
| 160 Element reduce(Element combine(Element value, Element element)) { | 160 Element reduce(Element combine(Element value, Element element)) { |
| 161 return _childElements.reduce(combine); | 161 return _childElements.reduce(combine); |
| 162 } | 162 } |
| 163 | 163 |
| 164 dynamic fold(dynamic initialValue, | 164 dynamic fold(dynamic initialValue, |
| 165 dynamic combine(dynamic previousValue, Element element)) { | 165 dynamic combine(dynamic previousValue, Element element)) { |
| 166 return _childElements.fold(initialValue, combine); | 166 return _childElements.fold(initialValue, combine); |
| 167 } | 167 } |
| 168 | 168 |
| 169 void setRange(int start, int rangeLength, List from, | 169 void setRange(int start, int end, Iterable<Element> iterable, |
| 170 [int startFrom = 0]) { | 170 [int skipCount = 0]) { |
| 171 throw new UnimplementedError(); | 171 throw new UnimplementedError(); |
| 172 } | 172 } |
| 173 | 173 |
| 174 void remove(Object object) { | 174 void remove(Object object) { |
| 175 if (object is Element) { | 175 if (object is Element) { |
| 176 Element element = object; | 176 Element element = object; |
| 177 if (identical(element.parentNode, _element)) { | 177 if (identical(element.parentNode, _element)) { |
| 178 _element.$dom_removeChild(element); | 178 _element.$dom_removeChild(element); |
| 179 } | 179 } |
| 180 } | 180 } |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 } | 302 } |
| 303 | 303 |
| 304 void addAll(Iterable<Element> iterable) { | 304 void addAll(Iterable<Element> iterable) { |
| 305 throw new UnsupportedError(''); | 305 throw new UnsupportedError(''); |
| 306 } | 306 } |
| 307 | 307 |
| 308 void sort([int compare(Element a, Element b)]) { | 308 void sort([int compare(Element a, Element b)]) { |
| 309 throw new UnsupportedError(''); | 309 throw new UnsupportedError(''); |
| 310 } | 310 } |
| 311 | 311 |
| 312 void setRange(int start, int rangeLength, List from, | 312 void setRange(int start, int end, Iterable<Element> iterable, |
| 313 [int startFrom = 0]) { | 313 [int skipCount = 0]) { |
| 314 throw new UnsupportedError(''); | 314 throw new UnsupportedError(''); |
| 315 } | 315 } |
| 316 | 316 |
| 317 void removeRange(int start, int rangeLength) { | 317 void removeRange(int start, int rangeLength) { |
| 318 throw new UnsupportedError(''); | 318 throw new UnsupportedError(''); |
| 319 } | 319 } |
| 320 | 320 |
| 321 void insertRange(int start, int rangeLength, [initialValue = null]) { | 321 void insertRange(int start, int rangeLength, [initialValue = null]) { |
| 322 throw new UnsupportedError(''); | 322 throw new UnsupportedError(''); |
| 323 } | 323 } |
| (...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 969 const ScrollAlignment._internal(this._value); | 969 const ScrollAlignment._internal(this._value); |
| 970 toString() => 'ScrollAlignment.$_value'; | 970 toString() => 'ScrollAlignment.$_value'; |
| 971 | 971 |
| 972 /// Attempt to align the element to the top of the scrollable area. | 972 /// Attempt to align the element to the top of the scrollable area. |
| 973 static const TOP = const ScrollAlignment._internal('TOP'); | 973 static const TOP = const ScrollAlignment._internal('TOP'); |
| 974 /// Attempt to center the element in the scrollable area. | 974 /// Attempt to center the element in the scrollable area. |
| 975 static const CENTER = const ScrollAlignment._internal('CENTER'); | 975 static const CENTER = const ScrollAlignment._internal('CENTER'); |
| 976 /// Attempt to align the element to the bottom of the scrollable area. | 976 /// Attempt to align the element to the bottom of the scrollable area. |
| 977 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); | 977 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); |
| 978 } | 978 } |
| OLD | NEW |