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

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

Issue 14651030: Version 0.5.7.1 . (Closed) Base URL: http://dart.googlecode.com/svn/trunk/dart/
Patch Set: Created 7 years, 7 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 821 matching lines...) Expand 10 before | Expand all | Expand 10 after
832 * 832 *
833 * Currently this does not support propagation through Shadow DOMs. 833 * Currently this does not support propagation through Shadow DOMs.
834 */ 834 */
835 @Experimental 835 @Experimental
836 get model => _model; 836 get model => _model;
837 837
838 @Experimental 838 @Experimental
839 void set model(value) { 839 void set model(value) {
840 _ensureTemplate(); 840 _ensureTemplate();
841 841
842 var syntax = TemplateElement.syntax[attributes['syntax']];
842 _model = value; 843 _model = value;
843 _addBindings(this, model); 844 _addBindings(this, model, syntax);
844 } 845 }
845 846
846 // TODO(jmesserly): const set would be better 847 // TODO(jmesserly): const set would be better
847 static const _TABLE_TAGS = const { 848 static const _TABLE_TAGS = const {
848 'caption': null, 849 'caption': null,
849 'col': null, 850 'col': null,
850 'colgroup': null, 851 'colgroup': null,
851 'tbody': null, 852 'tbody': null,
852 'td': null, 853 'td': null,
853 'tfoot': null, 854 'tfoot': null,
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
1022 const ScrollAlignment._internal(this._value); 1023 const ScrollAlignment._internal(this._value);
1023 toString() => 'ScrollAlignment.$_value'; 1024 toString() => 'ScrollAlignment.$_value';
1024 1025
1025 /// Attempt to align the element to the top of the scrollable area. 1026 /// Attempt to align the element to the top of the scrollable area.
1026 static const TOP = const ScrollAlignment._internal('TOP'); 1027 static const TOP = const ScrollAlignment._internal('TOP');
1027 /// Attempt to center the element in the scrollable area. 1028 /// Attempt to center the element in the scrollable area.
1028 static const CENTER = const ScrollAlignment._internal('CENTER'); 1029 static const CENTER = const ScrollAlignment._internal('CENTER');
1029 /// Attempt to align the element to the bottom of the scrollable area. 1030 /// Attempt to align the element to the bottom of the scrollable area.
1030 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); 1031 static const BOTTOM = const ScrollAlignment._internal('BOTTOM');
1031 } 1032 }
OLDNEW
« no previous file with comments | « tools/dom/src/TemplateBindings.dart ('k') | tools/dom/templates/html/impl/impl_Node.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698