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

Side by Side Diff: sdk/lib/html/src/CssClassSet.dart

Issue 11361272: Adding missing 'part of html' statements. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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 | « sdk/lib/html/dartium/html_dartium.dart ('k') | sdk/lib/html/src/FilteredElementList.dart » ('j') | 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) 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 html;
6
5 abstract class CssClassSet implements Set<String> { 7 abstract class CssClassSet implements Set<String> {
6 8
7 String toString() { 9 String toString() {
8 return Strings.join(new List.from(readClasses()), ' '); 10 return Strings.join(new List.from(readClasses()), ' ');
9 } 11 }
10 12
11 /** 13 /**
12 * Adds the class [token] to the element if it is not on it, removes it if it 14 * Adds the class [token] to the element if it is not on it, removes it if it
13 * is. 15 * is.
14 */ 16 */
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 */ 116 */
115 Set<String> readClasses(); 117 Set<String> readClasses();
116 118
117 /** 119 /**
118 * Join all the elements of a set into one string and write 120 * Join all the elements of a set into one string and write
119 * back to the element. 121 * back to the element.
120 * This is intended to be overridden by specific implementations. 122 * This is intended to be overridden by specific implementations.
121 */ 123 */
122 void writeClasses(Set<String> s); 124 void writeClasses(Set<String> s);
123 } 125 }
OLDNEW
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | sdk/lib/html/src/FilteredElementList.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698