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 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
579 children.addAll(copy); | 579 children.addAll(copy); |
580 } | 580 } |
581 | 581 |
582 /** | 582 /** |
583 * Finds all descendent elements of this element that match the specified | 583 * Finds all descendent elements of this element that match the specified |
584 * group of selectors. | 584 * group of selectors. |
585 * | 585 * |
586 * [selectors] should be a string using CSS selector syntax. | 586 * [selectors] should be a string using CSS selector syntax. |
587 * | 587 * |
588 * var items = element.querySelectorAll('.itemClassName'); | 588 * var items = element.querySelectorAll('.itemClassName'); |
| 589 * |
| 590 * For details about CSS selector syntax, see the |
| 591 * [CSS selector specification](http://www.w3.org/TR/css3-selectors/). |
589 */ | 592 */ |
590 @DomName('Element.querySelectorAll') | 593 @DomName('Element.querySelectorAll') |
591 ElementList querySelectorAll(String selectors) => | 594 ElementList querySelectorAll(String selectors) => |
592 new _FrozenElementList._wrap(_querySelectorAll(selectors)); | 595 new _FrozenElementList._wrap(_querySelectorAll(selectors)); |
593 | 596 |
594 /** | 597 /** |
595 * Alias for [querySelector]. Note this function is deprecated because its | 598 * Alias for [querySelector]. Note this function is deprecated because its |
596 * semantics will be changing in the future. | 599 * semantics will be changing in the future. |
597 */ | 600 */ |
598 @deprecated | 601 @deprecated |
(...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1337 const ScrollAlignment._internal(this._value); | 1340 const ScrollAlignment._internal(this._value); |
1338 toString() => 'ScrollAlignment.$_value'; | 1341 toString() => 'ScrollAlignment.$_value'; |
1339 | 1342 |
1340 /// Attempt to align the element to the top of the scrollable area. | 1343 /// Attempt to align the element to the top of the scrollable area. |
1341 static const TOP = const ScrollAlignment._internal('TOP'); | 1344 static const TOP = const ScrollAlignment._internal('TOP'); |
1342 /// Attempt to center the element in the scrollable area. | 1345 /// Attempt to center the element in the scrollable area. |
1343 static const CENTER = const ScrollAlignment._internal('CENTER'); | 1346 static const CENTER = const ScrollAlignment._internal('CENTER'); |
1344 /// Attempt to align the element to the bottom of the scrollable area. | 1347 /// Attempt to align the element to the bottom of the scrollable area. |
1345 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); | 1348 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); |
1346 } | 1349 } |
OLD | NEW |