| 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 720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 731 * The tag should be a valid HTML tag name. | 731 * The tag should be a valid HTML tag name. |
| 732 */ | 732 */ |
| 733 static bool isTagSupported(String tag) { | 733 static bool isTagSupported(String tag) { |
| 734 var e = _ElementFactoryProvider.createElement_tag(tag, null); | 734 var e = _ElementFactoryProvider.createElement_tag(tag, null); |
| 735 return e is Element && !(e is UnknownElement); | 735 return e is Element && !(e is UnknownElement); |
| 736 } | 736 } |
| 737 | 737 |
| 738 /** | 738 /** |
| 739 * Called by the DOM when this element has been inserted into the live | 739 * Called by the DOM when this element has been inserted into the live |
| 740 * document. | 740 * document. |
| 741 * |
| 742 * More information can be found in the |
| 743 * [Custom Elements](http://w3c.github.io/webcomponents/spec/custom/#dfn-attac
hed-callback) |
| 744 * draft specification. |
| 741 */ | 745 */ |
| 742 @Experimental() | 746 @Experimental() |
| 743 void enteredView() {} | 747 void attached() { |
| 748 // For the deprecation period, call the old callback. |
| 749 enteredView(); |
| 750 } |
| 744 | 751 |
| 745 /** | 752 /** |
| 746 * Called by the DOM when this element has been removed from the live | 753 * Called by the DOM when this element has been removed from the live |
| 747 * document. | 754 * document. |
| 755 * |
| 756 * More information can be found in the |
| 757 * [Custom Elements](http://w3c.github.io/webcomponents/spec/custom/#dfn-detac
hed-callback) |
| 758 * draft specification. |
| 748 */ | 759 */ |
| 749 @Experimental() | 760 @Experimental() |
| 761 void detached() { |
| 762 // For the deprecation period, call the old callback. |
| 763 leftView(); |
| 764 } |
| 765 |
| 766 /** *Deprecated*: override [attached] instead. */ |
| 767 @Experimental() |
| 768 @deprecated |
| 769 void enteredView() {} |
| 770 |
| 771 /** *Deprecated*: override [detached] instead. */ |
| 772 @Experimental() |
| 773 @deprecated |
| 750 void leftView() {} | 774 void leftView() {} |
| 751 | 775 |
| 752 /** | 776 /** |
| 753 * Called by the DOM whenever an attribute on this has been changed. | 777 * Called by the DOM whenever an attribute on this has been changed. |
| 754 */ | 778 */ |
| 755 void attributeChanged(String name, String oldValue, String newValue) {} | 779 void attributeChanged(String name, String oldValue, String newValue) {} |
| 756 | 780 |
| 757 // Hooks to support custom WebComponents. | 781 // Hooks to support custom WebComponents. |
| 758 | 782 |
| 759 $if DART2JS | 783 $if DART2JS |
| (...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1339 const ScrollAlignment._internal(this._value); | 1363 const ScrollAlignment._internal(this._value); |
| 1340 toString() => 'ScrollAlignment.$_value'; | 1364 toString() => 'ScrollAlignment.$_value'; |
| 1341 | 1365 |
| 1342 /// Attempt to align the element to the top of the scrollable area. | 1366 /// Attempt to align the element to the top of the scrollable area. |
| 1343 static const TOP = const ScrollAlignment._internal('TOP'); | 1367 static const TOP = const ScrollAlignment._internal('TOP'); |
| 1344 /// Attempt to center the element in the scrollable area. | 1368 /// Attempt to center the element in the scrollable area. |
| 1345 static const CENTER = const ScrollAlignment._internal('CENTER'); | 1369 static const CENTER = const ScrollAlignment._internal('CENTER'); |
| 1346 /// Attempt to align the element to the bottom of the scrollable area. | 1370 /// Attempt to align the element to the bottom of the scrollable area. |
| 1347 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); | 1371 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); |
| 1348 } | 1372 } |
| OLD | NEW |