| 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 dynamic reduce(dynamic initialValue, | 160 dynamic reduce(dynamic initialValue, |
| 161 dynamic combine(dynamic previousValue, Element element)) { | 161 dynamic combine(dynamic previousValue, Element element)) { |
| 162 return _childElements.reduce(initialValue, combine); | 162 return _childElements.reduce(initialValue, combine); |
| 163 } | 163 } |
| 164 | 164 |
| 165 dynamic fold(dynamic initialValue, | 165 dynamic fold(dynamic initialValue, |
| 166 dynamic combine(dynamic previousValue, Element element)) { | 166 dynamic combine(dynamic previousValue, Element element)) { |
| 167 return _childElements.fold(initialValue, combine); | 167 return _childElements.fold(initialValue, combine); |
| 168 } | 168 } |
| 169 | 169 |
| 170 void setRange(int start, int rangeLength, List from, | 170 void setRange(int start, int end, List from, [int startFrom = 0]) { |
| 171 [int startFrom = 0]) { | |
| 172 throw new UnimplementedError(); | 171 throw new UnimplementedError(); |
| 173 } | 172 } |
| 174 | 173 |
| 175 void remove(Object object) { | 174 void remove(Object object) { |
| 176 if (object is Element) { | 175 if (object is Element) { |
| 177 Element element = object; | 176 Element element = object; |
| 178 if (identical(element.parentNode, _element)) { | 177 if (identical(element.parentNode, _element)) { |
| 179 _element.$dom_removeChild(element); | 178 _element.$dom_removeChild(element); |
| 180 } | 179 } |
| 181 } | 180 } |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 } | 318 } |
| 320 | 319 |
| 321 void addAll(Iterable<Element> iterable) { | 320 void addAll(Iterable<Element> iterable) { |
| 322 throw new UnsupportedError(''); | 321 throw new UnsupportedError(''); |
| 323 } | 322 } |
| 324 | 323 |
| 325 void sort([int compare(Element a, Element b)]) { | 324 void sort([int compare(Element a, Element b)]) { |
| 326 throw new UnsupportedError(''); | 325 throw new UnsupportedError(''); |
| 327 } | 326 } |
| 328 | 327 |
| 329 void setRange(int start, int rangeLength, List from, | 328 void setRange(int start, int end, List from, [int startFrom = 0]) { |
| 330 [int startFrom = 0]) { | |
| 331 throw new UnsupportedError(''); | 329 throw new UnsupportedError(''); |
| 332 } | 330 } |
| 333 | 331 |
| 334 void removeRange(int start, int rangeLength) { | 332 void removeRange(int start, int rangeLength) { |
| 335 throw new UnsupportedError(''); | 333 throw new UnsupportedError(''); |
| 336 } | 334 } |
| 337 | 335 |
| 338 void insertRange(int start, int rangeLength, [initialValue = null]) { | 336 void insertRange(int start, int rangeLength, [initialValue = null]) { |
| 339 throw new UnsupportedError(''); | 337 throw new UnsupportedError(''); |
| 340 } | 338 } |
| (...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 994 const ScrollAlignment._internal(this._value); | 992 const ScrollAlignment._internal(this._value); |
| 995 toString() => 'ScrollAlignment.$_value'; | 993 toString() => 'ScrollAlignment.$_value'; |
| 996 | 994 |
| 997 /// Attempt to align the element to the top of the scrollable area. | 995 /// Attempt to align the element to the top of the scrollable area. |
| 998 static const TOP = const ScrollAlignment._internal('TOP'); | 996 static const TOP = const ScrollAlignment._internal('TOP'); |
| 999 /// Attempt to center the element in the scrollable area. | 997 /// Attempt to center the element in the scrollable area. |
| 1000 static const CENTER = const ScrollAlignment._internal('CENTER'); | 998 static const CENTER = const ScrollAlignment._internal('CENTER'); |
| 1001 /// Attempt to align the element to the bottom of the scrollable area. | 999 /// Attempt to align the element to the bottom of the scrollable area. |
| 1002 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); | 1000 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); |
| 1003 } | 1001 } |
| OLD | NEW |