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

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

Issue 25325004: Implementing CustomElement's attributeChanged callback. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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') | no next file » | 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 703 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 @Experimental() 714 @Experimental()
715 void enteredView() {} 715 void enteredView() {}
716 716
717 /** 717 /**
718 * Called by the DOM when this element has been removed from the live 718 * Called by the DOM when this element has been removed from the live
719 * document. 719 * document.
720 */ 720 */
721 @Experimental() 721 @Experimental()
722 void leftView() {} 722 void leftView() {}
723 723
724 /**
725 * Called by the DOM whenever an attribute on this has been changed.
726 */
727 void attributeChanged(String name, String oldValue, String newValue) {}
728
724 // Hooks to support custom WebComponents. 729 // Hooks to support custom WebComponents.
725 730
726 $if DART2JS 731 $if DART2JS
727 @Creates('Null') // Set from Dart code; does not instantiate a native type. 732 @Creates('Null') // Set from Dart code; does not instantiate a native type.
728 $endif 733 $endif
729 Element _xtag; 734 Element _xtag;
730 735
731 /** 736 /**
732 * Experimental support for [web components][wc]. This field stores a 737 * Experimental support for [web components][wc]. This field stores a
733 * reference to the component implementation. It was inspired by Mozilla's 738 * reference to the component implementation. It was inspired by Mozilla's
(...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after
1394 const ScrollAlignment._internal(this._value); 1399 const ScrollAlignment._internal(this._value);
1395 toString() => 'ScrollAlignment.$_value'; 1400 toString() => 'ScrollAlignment.$_value';
1396 1401
1397 /// Attempt to align the element to the top of the scrollable area. 1402 /// Attempt to align the element to the top of the scrollable area.
1398 static const TOP = const ScrollAlignment._internal('TOP'); 1403 static const TOP = const ScrollAlignment._internal('TOP');
1399 /// Attempt to center the element in the scrollable area. 1404 /// Attempt to center the element in the scrollable area.
1400 static const CENTER = const ScrollAlignment._internal('CENTER'); 1405 static const CENTER = const ScrollAlignment._internal('CENTER');
1401 /// Attempt to align the element to the bottom of the scrollable area. 1406 /// Attempt to align the element to the bottom of the scrollable area.
1402 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); 1407 static const BOTTOM = const ScrollAlignment._internal('BOTTOM');
1403 } 1408 }
OLDNEW
« no previous file with comments | « tools/dom/src/dart2js_CustomElementSupport.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698