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

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

Issue 13872007: Refactor removeRange. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status files and rebuild dom (unrelated CL). Created 7 years, 8 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/src/WrappedList.dart ('k') | tools/dom/templates/html/impl/impl_Node.darttemplate » ('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 $LIBRARYNAME; 5 part of $LIBRARYNAME;
6 6
7 // TODO(jacobr): use _Lists.dart to remove some of the duplicated 7 // TODO(jacobr): use _Lists.dart to remove some of the duplicated
8 // functionality. 8 // functionality.
9 class _ChildrenElementList extends ListBase<Element> { 9 class _ChildrenElementList extends ListBase<Element> {
10 // Raw Element. 10 // Raw Element.
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 } 181 }
182 182
183 void removeWhere(bool test(Element element)) { 183 void removeWhere(bool test(Element element)) {
184 _childElements.removeWhere(test); 184 _childElements.removeWhere(test);
185 } 185 }
186 186
187 void retainWhere(bool test(Element element)) { 187 void retainWhere(bool test(Element element)) {
188 _childElements.retainWhere(test); 188 _childElements.retainWhere(test);
189 } 189 }
190 190
191 void removeRange(int start, int rangeLength) { 191 void removeRange(int start, int end) {
192 throw new UnimplementedError(); 192 throw new UnimplementedError();
193 } 193 }
194 194
195 void insertRange(int start, int rangeLength, [initialValue = null]) { 195 void insertRange(int start, int rangeLength, [initialValue = null]) {
196 throw new UnimplementedError(); 196 throw new UnimplementedError();
197 } 197 }
198 198
199 Iterable getRange(int start, int end) { 199 Iterable getRange(int start, int end) {
200 throw new UnimplementedError(); 200 throw new UnimplementedError();
201 } 201 }
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 307
308 void sort([int compare(Element a, Element b)]) { 308 void sort([int compare(Element a, Element b)]) {
309 throw new UnsupportedError(''); 309 throw new UnsupportedError('');
310 } 310 }
311 311
312 void setRange(int start, int end, Iterable<Element> iterable, 312 void setRange(int start, int end, Iterable<Element> iterable,
313 [int skipCount = 0]) { 313 [int skipCount = 0]) {
314 throw new UnsupportedError(''); 314 throw new UnsupportedError('');
315 } 315 }
316 316
317 void removeRange(int start, int rangeLength) { 317 void removeRange(int start, int end) {
318 throw new UnsupportedError(''); 318 throw new UnsupportedError('');
319 } 319 }
320 320
321 void insertRange(int start, int rangeLength, [initialValue = null]) { 321 void insertRange(int start, int rangeLength, [initialValue = null]) {
322 throw new UnsupportedError(''); 322 throw new UnsupportedError('');
323 } 323 }
324 324
325 List<Element> sublist(int start, [int end]) { 325 List<Element> sublist(int start, [int end]) {
326 return new _FrozenElementList._wrap(_nodeList.sublist(start, end)); 326 return new _FrozenElementList._wrap(_nodeList.sublist(start, end));
327 } 327 }
(...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after
969 const ScrollAlignment._internal(this._value); 969 const ScrollAlignment._internal(this._value);
970 toString() => 'ScrollAlignment.$_value'; 970 toString() => 'ScrollAlignment.$_value';
971 971
972 /// Attempt to align the element to the top of the scrollable area. 972 /// Attempt to align the element to the top of the scrollable area.
973 static const TOP = const ScrollAlignment._internal('TOP'); 973 static const TOP = const ScrollAlignment._internal('TOP');
974 /// Attempt to center the element in the scrollable area. 974 /// Attempt to center the element in the scrollable area.
975 static const CENTER = const ScrollAlignment._internal('CENTER'); 975 static const CENTER = const ScrollAlignment._internal('CENTER');
976 /// Attempt to align the element to the bottom of the scrollable area. 976 /// Attempt to align the element to the bottom of the scrollable area.
977 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); 977 static const BOTTOM = const ScrollAlignment._internal('BOTTOM');
978 } 978 }
OLDNEW
« no previous file with comments | « tools/dom/src/WrappedList.dart ('k') | tools/dom/templates/html/impl/impl_Node.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698