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

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

Issue 12086066: Removing dart:html APIs which were deprecated in M2. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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/templates/html/impl/impl_Element.darttemplate ('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) 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 27 matching lines...) Expand all
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 }
45 return _cssClassSet; 45 return _cssClassSet;
46 } 46 }
47 47
48 @deprecated
49 List<Element> get elements => new FilteredElementList(this);
50
51 @deprecated
52 void set elements(Collection<Element> value) {
53 final elements = this.elements;
54 elements.clear();
55 elements.addAll(value);
56 }
57
58 List<Element> get children => new FilteredElementList(this); 48 List<Element> get children => new FilteredElementList(this);
59 49
60 void set children(List<Element> value) { 50 void set children(List<Element> value) {
61 final children = this.children; 51 final children = this.children;
62 children.clear(); 52 children.clear();
63 children.addAll(value); 53 children.addAll(value);
64 } 54 }
65 55
66 String get outerHtml { 56 String get outerHtml {
67 final container = new Element.tag("div"); 57 final container = new Element.tag("div");
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 throw new UnsupportedError("Cannot get dom_children on SVG."); 96 throw new UnsupportedError("Cannot get dom_children on SVG.");
107 } 97 }
108 98
109 bool get isContentEditable => false; 99 bool get isContentEditable => false;
110 void click() { 100 void click() {
111 throw new UnsupportedError("Cannot invoke click SVG."); 101 throw new UnsupportedError("Cannot invoke click SVG.");
112 } 102 }
113 103
114 $!MEMBERS 104 $!MEMBERS
115 } 105 }
OLDNEW
« no previous file with comments | « tools/dom/templates/html/impl/impl_Element.darttemplate ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698