| 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 class _ChildrenElementList extends ListBase<Element> { | 7 class _ChildrenElementList extends ListBase<Element> { |
| 8 // Raw Element. | 8 // Raw Element. |
| 9 final Element _element; | 9 final Element _element; |
| 10 final HtmlCollection _childElements; | 10 final HtmlCollection _childElements; |
| (...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 435 * reference to the component implementation. It was inspired by Mozilla's | 435 * reference to the component implementation. It was inspired by Mozilla's |
| 436 * [x-tags][] project. Please note: in the future it may be possible to | 436 * [x-tags][] project. Please note: in the future it may be possible to |
| 437 * `extend Element` from your class, in which case this field will be | 437 * `extend Element` from your class, in which case this field will be |
| 438 * deprecated. | 438 * deprecated. |
| 439 * | 439 * |
| 440 * If xtag has not been set, it will simply return `this` [Element]. | 440 * If xtag has not been set, it will simply return `this` [Element]. |
| 441 * | 441 * |
| 442 * [wc]: http://dvcs.w3.org/hg/webcomponents/raw-file/tip/explainer/index.html | 442 * [wc]: http://dvcs.w3.org/hg/webcomponents/raw-file/tip/explainer/index.html |
| 443 * [x-tags]: http://x-tags.org/ | 443 * [x-tags]: http://x-tags.org/ |
| 444 */ | 444 */ |
| 445 Element get xtag => _xtag != null ? _xtag : this; | 445 // Note: return type is `dynamic` for convenience to suppress warnings when |
| 446 // members of the component are used. The actual type is a subtype of Element. |
| 447 get xtag => _xtag != null ? _xtag : this; |
| 446 | 448 |
| 447 void set xtag(Element value) { | 449 void set xtag(Element value) { |
| 448 _xtag = value; | 450 _xtag = value; |
| 449 } | 451 } |
| 450 | 452 |
| 451 /** | 453 /** |
| 452 * Scrolls this element into view. | 454 * Scrolls this element into view. |
| 453 * | 455 * |
| 454 * Only one of of the alignment options may be specified at a time. | 456 * Only one of of the alignment options may be specified at a time. |
| 455 * | 457 * |
| (...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1032 const ScrollAlignment._internal(this._value); | 1034 const ScrollAlignment._internal(this._value); |
| 1033 toString() => 'ScrollAlignment.$_value'; | 1035 toString() => 'ScrollAlignment.$_value'; |
| 1034 | 1036 |
| 1035 /// Attempt to align the element to the top of the scrollable area. | 1037 /// Attempt to align the element to the top of the scrollable area. |
| 1036 static const TOP = const ScrollAlignment._internal('TOP'); | 1038 static const TOP = const ScrollAlignment._internal('TOP'); |
| 1037 /// Attempt to center the element in the scrollable area. | 1039 /// Attempt to center the element in the scrollable area. |
| 1038 static const CENTER = const ScrollAlignment._internal('CENTER'); | 1040 static const CENTER = const ScrollAlignment._internal('CENTER'); |
| 1039 /// Attempt to align the element to the bottom of the scrollable area. | 1041 /// Attempt to align the element to the bottom of the scrollable area. |
| 1040 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); | 1042 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); |
| 1041 } | 1043 } |
| OLD | NEW |