| 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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 buffer.writeAll(this, ', '); | 289 buffer.writeAll(this, ', '); |
| 290 buffer.write(']'); | 290 buffer.write(']'); |
| 291 return buffer.toString(); | 291 return buffer.toString(); |
| 292 } | 292 } |
| 293 } | 293 } |
| 294 | 294 |
| 295 // TODO(jacobr): this is an inefficient implementation but it is hard to see | 295 // TODO(jacobr): this is an inefficient implementation but it is hard to see |
| 296 // a better option given that we cannot quite force NodeList to be an | 296 // a better option given that we cannot quite force NodeList to be an |
| 297 // ElementList as there are valid cases where a NodeList JavaScript object | 297 // ElementList as there are valid cases where a NodeList JavaScript object |
| 298 // contains Node objects that are not Elements. | 298 // contains Node objects that are not Elements. |
| 299 class _FrozenElementList extends ListBase<Element> { | 299 class _FrozenElementList extends ListBase { |
| 300 final List<Node> _nodeList; | 300 final List<Node> _nodeList; |
| 301 | 301 |
| 302 _FrozenElementList._wrap(this._nodeList); | 302 _FrozenElementList._wrap(this._nodeList); |
| 303 | 303 |
| 304 int get length => _nodeList.length; | 304 int get length => _nodeList.length; |
| 305 | 305 |
| 306 Element operator [](int index) => _nodeList[index]; | 306 Element operator [](int index) => _nodeList[index]; |
| 307 | 307 |
| 308 void operator []=(int index, Element value) { | 308 void operator []=(int index, Element value) { |
| 309 throw new UnsupportedError(''); | 309 throw new UnsupportedError(''); |
| (...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 993 const ScrollAlignment._internal(this._value); | 993 const ScrollAlignment._internal(this._value); |
| 994 toString() => 'ScrollAlignment.$_value'; | 994 toString() => 'ScrollAlignment.$_value'; |
| 995 | 995 |
| 996 /// Attempt to align the element to the top of the scrollable area. | 996 /// Attempt to align the element to the top of the scrollable area. |
| 997 static const TOP = const ScrollAlignment._internal('TOP'); | 997 static const TOP = const ScrollAlignment._internal('TOP'); |
| 998 /// Attempt to center the element in the scrollable area. | 998 /// Attempt to center the element in the scrollable area. |
| 999 static const CENTER = const ScrollAlignment._internal('CENTER'); | 999 static const CENTER = const ScrollAlignment._internal('CENTER'); |
| 1000 /// Attempt to align the element to the bottom of the scrollable area. | 1000 /// Attempt to align the element to the bottom of the scrollable area. |
| 1001 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); | 1001 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); |
| 1002 } | 1002 } |
| OLD | NEW |