| 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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 } | 185 } |
| 186 | 186 |
| 187 void retainWhere(bool test(Element element)) { | 187 void retainWhere(bool test(Element element)) { |
| 188 _childElements.retainWhere(test); | 188 _childElements.retainWhere(test); |
| 189 } | 189 } |
| 190 | 190 |
| 191 void removeRange(int start, int end) { | 191 void removeRange(int start, int end) { |
| 192 throw new UnimplementedError(); | 192 throw new UnimplementedError(); |
| 193 } | 193 } |
| 194 | 194 |
| 195 void insertRange(int start, int rangeLength, [initialValue = null]) { | |
| 196 throw new UnimplementedError(); | |
| 197 } | |
| 198 | |
| 199 Iterable getRange(int start, int end) { | 195 Iterable getRange(int start, int end) { |
| 200 throw new UnimplementedError(); | 196 throw new UnimplementedError(); |
| 201 } | 197 } |
| 202 | 198 |
| 203 List sublist(int start, [int end]) { | 199 List sublist(int start, [int end]) { |
| 204 if (end == null) end = length; | 200 if (end == null) end = length; |
| 205 return new _FrozenElementList._wrap(Lists.getRange(this, start, end, [])); | 201 return new _FrozenElementList._wrap(Lists.getRange(this, start, end, [])); |
| 206 } | 202 } |
| 207 | 203 |
| 208 int indexOf(Element element, [int start = 0]) { | 204 int indexOf(Element element, [int start = 0]) { |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 | 307 |
| 312 void setRange(int start, int end, Iterable<Element> iterable, | 308 void setRange(int start, int end, Iterable<Element> iterable, |
| 313 [int skipCount = 0]) { | 309 [int skipCount = 0]) { |
| 314 throw new UnsupportedError(''); | 310 throw new UnsupportedError(''); |
| 315 } | 311 } |
| 316 | 312 |
| 317 void removeRange(int start, int end) { | 313 void removeRange(int start, int end) { |
| 318 throw new UnsupportedError(''); | 314 throw new UnsupportedError(''); |
| 319 } | 315 } |
| 320 | 316 |
| 321 void insertRange(int start, int rangeLength, [initialValue = null]) { | |
| 322 throw new UnsupportedError(''); | |
| 323 } | |
| 324 | |
| 325 List<Element> sublist(int start, [int end]) { | 317 List<Element> sublist(int start, [int end]) { |
| 326 return new _FrozenElementList._wrap(_nodeList.sublist(start, end)); | 318 return new _FrozenElementList._wrap(_nodeList.sublist(start, end)); |
| 327 } | 319 } |
| 328 | 320 |
| 329 void clear() { | 321 void clear() { |
| 330 throw new UnsupportedError(''); | 322 throw new UnsupportedError(''); |
| 331 } | 323 } |
| 332 | 324 |
| 333 Element removeAt(int index) { | 325 Element removeAt(int index) { |
| 334 throw new UnsupportedError(''); | 326 throw new UnsupportedError(''); |
| (...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 969 const ScrollAlignment._internal(this._value); | 961 const ScrollAlignment._internal(this._value); |
| 970 toString() => 'ScrollAlignment.$_value'; | 962 toString() => 'ScrollAlignment.$_value'; |
| 971 | 963 |
| 972 /// Attempt to align the element to the top of the scrollable area. | 964 /// Attempt to align the element to the top of the scrollable area. |
| 973 static const TOP = const ScrollAlignment._internal('TOP'); | 965 static const TOP = const ScrollAlignment._internal('TOP'); |
| 974 /// Attempt to center the element in the scrollable area. | 966 /// Attempt to center the element in the scrollable area. |
| 975 static const CENTER = const ScrollAlignment._internal('CENTER'); | 967 static const CENTER = const ScrollAlignment._internal('CENTER'); |
| 976 /// Attempt to align the element to the bottom of the scrollable area. | 968 /// Attempt to align the element to the bottom of the scrollable area. |
| 977 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); | 969 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); |
| 978 } | 970 } |
| OLD | NEW |