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

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

Issue 12024002: Fixing cleanup of dart:html annotation generation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 svg; 5 part of svg;
6 6
7 class _AttributeClassSet extends CssClassSet { 7 class _AttributeClassSet extends CssClassSet {
8 final Element _element; 8 final Element _element;
9 9
10 _AttributeClassSet(this._element); 10 _AttributeClassSet(this._element);
(...skipping 12 matching lines...) Expand all
23 } 23 }
24 } 24 }
25 return s; 25 return s;
26 } 26 }
27 27
28 void writeClasses(Set s) { 28 void writeClasses(Set s) {
29 List list = new List.from(s); 29 List list = new List.from(s);
30 _element.attributes['class'] = Strings.join(list, ' '); 30 _element.attributes['class'] = Strings.join(list, ' ');
31 } 31 }
32 } 32 }
33 $ANNOTATIONS 33
34 class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { 34 $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
35 factory $CLASSNAME.tag(String tag) => 35 factory $CLASSNAME.tag(String tag) =>
36 _$(CLASSNAME)FactoryProvider.create$(CLASSNAME)_tag(tag); 36 _$(CLASSNAME)FactoryProvider.create$(CLASSNAME)_tag(tag);
37 factory $CLASSNAME.svg(String svg) => 37 factory $CLASSNAME.svg(String svg) =>
38 _$(CLASSNAME)FactoryProvider.create$(CLASSNAME)_svg(svg); 38 _$(CLASSNAME)FactoryProvider.create$(CLASSNAME)_svg(svg);
39 39
40 _AttributeClassSet _cssClassSet; 40 _AttributeClassSet _cssClassSet;
41 CssClassSet get classes { 41 CssClassSet get classes {
42 if (_cssClassSet == null) { 42 if (_cssClassSet == null) {
43 _cssClassSet = new _AttributeClassSet(this); 43 _cssClassSet = new _AttributeClassSet(this);
44 } 44 }
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 throw new UnsupportedError("Cannot get dom_children on SVG."); 106 throw new UnsupportedError("Cannot get dom_children on SVG.");
107 } 107 }
108 108
109 bool get isContentEditable => false; 109 bool get isContentEditable => false;
110 void click() { 110 void click() {
111 throw new UnsupportedError("Cannot invoke click SVG."); 111 throw new UnsupportedError("Cannot invoke click SVG.");
112 } 112 }
113 113
114 $!MEMBERS 114 $!MEMBERS
115 } 115 }
OLDNEW
« no previous file with comments | « tools/dom/templates/html/impl/impl_Range.darttemplate ('k') | tools/dom/templates/html/impl/impl_SVGSVGElement.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698