| 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 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 587 * group of selectors. | 587 * group of selectors. |
| 588 * | 588 * |
| 589 * [selectors] should be a string using CSS selector syntax. | 589 * [selectors] should be a string using CSS selector syntax. |
| 590 * | 590 * |
| 591 * var items = element.querySelectorAll('.itemClassName'); | 591 * var items = element.querySelectorAll('.itemClassName'); |
| 592 * | 592 * |
| 593 * For details about CSS selector syntax, see the | 593 * For details about CSS selector syntax, see the |
| 594 * [CSS selector specification](http://www.w3.org/TR/css3-selectors/). | 594 * [CSS selector specification](http://www.w3.org/TR/css3-selectors/). |
| 595 */ | 595 */ |
| 596 @DomName('Element.querySelectorAll') | 596 @DomName('Element.querySelectorAll') |
| 597 ElementList querySelectorAll(String selectors) => | 597 ElementList<Element> querySelectorAll(String selectors) => |
| 598 new _FrozenElementList._wrap(_querySelectorAll(selectors)); | 598 new _FrozenElementList._wrap(_querySelectorAll(selectors)); |
| 599 | 599 |
| 600 /** | 600 /** |
| 601 * Alias for [querySelector]. Note this function is deprecated because its | 601 * Alias for [querySelector]. Note this function is deprecated because its |
| 602 * semantics will be changing in the future. | 602 * semantics will be changing in the future. |
| 603 */ | 603 */ |
| 604 @deprecated | 604 @deprecated |
| 605 @DomName('Element.querySelector') | 605 @DomName('Element.querySelector') |
| 606 @Experimental() | 606 @Experimental() |
| 607 Element query(String relativeSelectors) => querySelector(relativeSelectors); | 607 Element query(String relativeSelectors) => querySelector(relativeSelectors); |
| 608 | 608 |
| 609 /** | 609 /** |
| 610 * Alias for [querySelectorAll]. Note this function is deprecated because its | 610 * Alias for [querySelectorAll]. Note this function is deprecated because its |
| 611 * semantics will be changing in the future. | 611 * semantics will be changing in the future. |
| 612 */ | 612 */ |
| 613 @deprecated | 613 @deprecated |
| 614 @DomName('Element.querySelectorAll') | 614 @DomName('Element.querySelectorAll') |
| 615 @Experimental() | 615 @Experimental() |
| 616 ElementList queryAll(String relativeSelectors) => | 616 ElementList<Element> queryAll(String relativeSelectors) => |
| 617 querySelectorAll(relativeSelectors); | 617 querySelectorAll(relativeSelectors); |
| 618 | 618 |
| 619 /** | 619 /** |
| 620 * The set of CSS classes applied to this element. | 620 * The set of CSS classes applied to this element. |
| 621 * | 621 * |
| 622 * This set makes it easy to add, remove or toggle the classes applied to | 622 * This set makes it easy to add, remove or toggle the classes applied to |
| 623 * this element. | 623 * this element. |
| 624 * | 624 * |
| 625 * element.classes.add('selected'); | 625 * element.classes.add('selected'); |
| 626 * element.classes.toggle('isOnline'); | 626 * element.classes.toggle('isOnline'); |
| (...skipping 861 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1488 const ScrollAlignment._internal(this._value); | 1488 const ScrollAlignment._internal(this._value); |
| 1489 toString() => 'ScrollAlignment.$_value'; | 1489 toString() => 'ScrollAlignment.$_value'; |
| 1490 | 1490 |
| 1491 /// Attempt to align the element to the top of the scrollable area. | 1491 /// Attempt to align the element to the top of the scrollable area. |
| 1492 static const TOP = const ScrollAlignment._internal('TOP'); | 1492 static const TOP = const ScrollAlignment._internal('TOP'); |
| 1493 /// Attempt to center the element in the scrollable area. | 1493 /// Attempt to center the element in the scrollable area. |
| 1494 static const CENTER = const ScrollAlignment._internal('CENTER'); | 1494 static const CENTER = const ScrollAlignment._internal('CENTER'); |
| 1495 /// Attempt to align the element to the bottom of the scrollable area. | 1495 /// Attempt to align the element to the bottom of the scrollable area. |
| 1496 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); | 1496 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); |
| 1497 } | 1497 } |
| OLD | NEW |