Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(254)

Side by Side Diff: tools/dom/templates/html/impl/impl_Element.darttemplate

Issue 24251016: Revert "Dart2js support for custom element lifecycle events" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/dom/src/dart2js_CustomElementSupport.dart ('k') | tools/testing/dart/test_suite.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 662 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 var e = _ElementFactoryProvider.createElement_tag(tag, null); 673 var e = _ElementFactoryProvider.createElement_tag(tag, null);
674 return e is Element && !(e is UnknownElement); 674 return e is Element && !(e is UnknownElement);
675 } 675 }
676 676
677 /** 677 /**
678 * Called by the DOM when this element has been instantiated. 678 * Called by the DOM when this element has been instantiated.
679 */ 679 */
680 @Experimental() 680 @Experimental()
681 void created() {} 681 void created() {}
682 682
683 /**
684 * Called by the DOM when this element has been inserted into the live
685 * document.
686 */
687 @Experimental()
688 void enteredView() {}
689
690 /**
691 * Called by the DOM when this element has been removed from the live
692 * document.
693 */
694 @Experimental()
695 void leftView() {}
696
697 // Hooks to support custom WebComponents. 683 // Hooks to support custom WebComponents.
698 684
699 $if DART2JS 685 $if DART2JS
700 @Creates('Null') // Set from Dart code; does not instantiate a native type. 686 @Creates('Null') // Set from Dart code; does not instantiate a native type.
701 $endif 687 $endif
702 Element _xtag; 688 Element _xtag;
703 689
704 /** 690 /**
705 * Experimental support for [web components][wc]. This field stores a 691 * Experimental support for [web components][wc]. This field stores a
706 * reference to the component implementation. It was inspired by Mozilla's 692 * reference to the component implementation. It was inspired by Mozilla's
(...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after
1367 const ScrollAlignment._internal(this._value); 1353 const ScrollAlignment._internal(this._value);
1368 toString() => 'ScrollAlignment.$_value'; 1354 toString() => 'ScrollAlignment.$_value';
1369 1355
1370 /// Attempt to align the element to the top of the scrollable area. 1356 /// Attempt to align the element to the top of the scrollable area.
1371 static const TOP = const ScrollAlignment._internal('TOP'); 1357 static const TOP = const ScrollAlignment._internal('TOP');
1372 /// Attempt to center the element in the scrollable area. 1358 /// Attempt to center the element in the scrollable area.
1373 static const CENTER = const ScrollAlignment._internal('CENTER'); 1359 static const CENTER = const ScrollAlignment._internal('CENTER');
1374 /// Attempt to align the element to the bottom of the scrollable area. 1360 /// Attempt to align the element to the bottom of the scrollable area.
1375 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); 1361 static const BOTTOM = const ScrollAlignment._internal('BOTTOM');
1376 } 1362 }
OLDNEW
« no previous file with comments | « tools/dom/src/dart2js_CustomElementSupport.dart ('k') | tools/testing/dart/test_suite.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698