| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |