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 implements NodeListWrapper { | 8 implements NodeListWrapper { |
9 // Raw Element. | 9 // Raw Element. |
10 final Element _element; | 10 final Element _element; |
(...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
806 // Note: return type is `dynamic` for convenience to suppress warnings when | 806 // Note: return type is `dynamic` for convenience to suppress warnings when |
807 // members of the component are used. The actual type is a subtype of Element. | 807 // members of the component are used. The actual type is a subtype of Element. |
808 get xtag => _xtag != null ? _xtag : this; | 808 get xtag => _xtag != null ? _xtag : this; |
809 | 809 |
810 void set xtag(Element value) { | 810 void set xtag(Element value) { |
811 _xtag = value; | 811 _xtag = value; |
812 } | 812 } |
813 | 813 |
814 @DomName('Element.localName') | 814 @DomName('Element.localName') |
815 @DocsEditable() | 815 @DocsEditable() |
| 816 $if DART2JS |
| 817 @Returns('String') |
| 818 // Non-null for Elements. |
| 819 String get localName => JS('String', '#', _localName); |
| 820 $else |
816 String get localName => _localName; | 821 String get localName => _localName; |
| 822 $endif |
817 | 823 |
818 /** | 824 /** |
819 * A URI that identifies the XML namespace of this element. | 825 * A URI that identifies the XML namespace of this element. |
820 * | 826 * |
821 * `null` if no namespace URI is specified. | 827 * `null` if no namespace URI is specified. |
822 * | 828 * |
823 * ## Other resources | 829 * ## Other resources |
824 * | 830 * |
825 * * [Node.namespaceURI] | 831 * * [Node.namespaceURI] |
826 * (http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-NodeNSname) from W3C. | 832 * (http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-NodeNSname) from W3C. |
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1488 const ScrollAlignment._internal(this._value); | 1494 const ScrollAlignment._internal(this._value); |
1489 toString() => 'ScrollAlignment.$_value'; | 1495 toString() => 'ScrollAlignment.$_value'; |
1490 | 1496 |
1491 /// Attempt to align the element to the top of the scrollable area. | 1497 /// Attempt to align the element to the top of the scrollable area. |
1492 static const TOP = const ScrollAlignment._internal('TOP'); | 1498 static const TOP = const ScrollAlignment._internal('TOP'); |
1493 /// Attempt to center the element in the scrollable area. | 1499 /// Attempt to center the element in the scrollable area. |
1494 static const CENTER = const ScrollAlignment._internal('CENTER'); | 1500 static const CENTER = const ScrollAlignment._internal('CENTER'); |
1495 /// Attempt to align the element to the bottom of the scrollable area. | 1501 /// Attempt to align the element to the bottom of the scrollable area. |
1496 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); | 1502 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); |
1497 } | 1503 } |
OLD | NEW |