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

Side by Side Diff: lib/html/src/XMLDocumentWrappingImplementation.dart

Issue 10868026: Adding .toggle method to Element.classes to match the JS element.classList.toggle method. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Incorporating review feedback. Created 8 years, 3 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 class XMLDocumentWrappingImplementation extends DocumentWrappingImplementation 5 class XMLDocumentWrappingImplementation extends DocumentWrappingImplementation
6 implements XMLDocument { 6 implements XMLDocument {
7 // This really just wants to extend both DocumentWrappingImplementation and 7 // This really just wants to extend both DocumentWrappingImplementation and
8 // XMLElementWrappingImplementation, but since that's not possible we delegate 8 // XMLElementWrappingImplementation, but since that's not possible we delegate
9 // to the latter. 9 // to the latter.
10 XMLElement documentEl; 10 XMLElement documentEl;
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 "XML documents don't support cookies."); 106 "XML documents don't support cookies.");
107 } 107 }
108 108
109 String get manifest() => ""; 109 String get manifest() => "";
110 110
111 void set manifest(String value) { 111 void set manifest(String value) {
112 throw new UnsupportedOperationException( 112 throw new UnsupportedOperationException(
113 "Manifest can't be set for XML documents."); 113 "Manifest can't be set for XML documents.");
114 } 114 }
115 115
116 Set<String> get classes() => documentEl.classes; 116 CSSClassSet get classes() => documentEl.classes;
117 117
118 ElementList get elements() => documentEl.elements; 118 ElementList get elements() => documentEl.elements;
119 119
120 void set elements(Collection<Element> value) { documentEl.elements = value; } 120 void set elements(Collection<Element> value) { documentEl.elements = value; }
121 121
122 String get outerHTML() => documentEl.outerHTML; 122 String get outerHTML() => documentEl.outerHTML;
123 123
124 String get innerHTML() => documentEl.innerHTML; 124 String get innerHTML() => documentEl.innerHTML;
125 125
126 void set innerHTML(String xml) { documentEl.innerHTML = xml; } 126 void set innerHTML(String xml) { documentEl.innerHTML = xml; }
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 void set webkitdropzone(String value) { documentEl.webkitdropzone = value; } 160 void set webkitdropzone(String value) { documentEl.webkitdropzone = value; }
161 161
162 String get lang() => documentEl.lang; 162 String get lang() => documentEl.lang;
163 163
164 void set lang(String value) { documentEl.lang = value; } 164 void set lang(String value) { documentEl.lang = value; }
165 165
166 String get dir() => documentEl.dir; 166 String get dir() => documentEl.dir;
167 167
168 void set dir(String value) { documentEl.dir = value; } 168 void set dir(String value) { documentEl.dir = value; }
169 } 169 }
OLDNEW
« no previous file with comments | « lib/html/src/SVGElementWrappingImplementation.dart ('k') | lib/html/src/XMLElementWrappingImplementation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698