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

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

Issue 18162004: [package:mdv] port createInstance change (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix copyright line Created 7 years, 5 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
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 DocumentFragment get content { 714 DocumentFragment get content {
715 _ensureTemplate(); 715 _ensureTemplate();
716 return _templateContent; 716 return _templateContent;
717 } 717 }
718 718
719 /** 719 /**
720 * Creates an instance of the template. 720 * Creates an instance of the template.
721 * This is only supported if [isTemplate] is true. 721 * This is only supported if [isTemplate] is true.
722 */ 722 */
723 @Experimental 723 @Experimental
724 DocumentFragment createInstance() { 724 DocumentFragment createInstance(model, String syntax) {
725 _ensureTemplate(); 725 _ensureTemplate();
726 return TemplateElement.mdvPackage(this).createInstance(); 726 return TemplateElement.mdvPackage(this).createInstance(model, syntax);
727 } 727 }
728 728
729 /** 729 /**
730 * The data model which is inherited through the tree. 730 * The data model which is inherited through the tree.
731 * This is only supported if [isTemplate] is true. 731 * This is only supported if [isTemplate] is true.
732 */ 732 */
733 @Experimental 733 @Experimental
734 get model => TemplateElement.mdvPackage(this).model; 734 get model => TemplateElement.mdvPackage(this).model;
735 735
736 @Experimental 736 @Experimental
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
919 const ScrollAlignment._internal(this._value); 919 const ScrollAlignment._internal(this._value);
920 toString() => 'ScrollAlignment.$_value'; 920 toString() => 'ScrollAlignment.$_value';
921 921
922 /// Attempt to align the element to the top of the scrollable area. 922 /// Attempt to align the element to the top of the scrollable area.
923 static const TOP = const ScrollAlignment._internal('TOP'); 923 static const TOP = const ScrollAlignment._internal('TOP');
924 /// Attempt to center the element in the scrollable area. 924 /// Attempt to center the element in the scrollable area.
925 static const CENTER = const ScrollAlignment._internal('CENTER'); 925 static const CENTER = const ScrollAlignment._internal('CENTER');
926 /// Attempt to align the element to the bottom of the scrollable area. 926 /// Attempt to align the element to the bottom of the scrollable area.
927 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); 927 static const BOTTOM = const ScrollAlignment._internal('BOTTOM');
928 } 928 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698