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

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

Issue 13956006: Remove insertRange. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebuild DOM (unrelated CL) and update status files. 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]) {
196 throw new UnimplementedError();
197 }
198
199 Iterable getRange(int start, int end) { 195 Iterable getRange(int start, int end) {
200 throw new UnimplementedError(); 196 throw new UnimplementedError();
201 } 197 }
202 198
203 List sublist(int start, [int end]) { 199 List sublist(int start, [int end]) {
204 if (end == null) end = length; 200 if (end == null) end = length;
205 return new _FrozenElementList._wrap(Lists.getRange(this, start, end, [])); 201 return new _FrozenElementList._wrap(Lists.getRange(this, start, end, []));
206 } 202 }
207 203
208 int indexOf(Element element, [int start = 0]) { 204 int indexOf(Element element, [int start = 0]) {
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 303
308 void sort([int compare(Element a, Element b)]) { 304 void sort([int compare(Element a, Element b)]) {
309 throw new UnsupportedError(''); 305 throw new UnsupportedError('');
310 } 306 }
311 307
312 void setRange(int start, int end, Iterable<Element> iterable, 308 void setRange(int start, int end, Iterable<Element> iterable,
313 [int skipCount = 0]) { 309 [int skipCount = 0]) {
314 throw new UnsupportedError(''); 310 throw new UnsupportedError('');
315 } 311 }
316 312
317 void removeRange(int start, int rangeLength) { 313 void removeRange(int start, int end) {
318 throw new UnsupportedError(''); 314 throw new UnsupportedError('');
319 } 315 }
320 316
321 void insertRange(int start, int rangeLength, [initialValue = null]) {
322 throw new UnsupportedError('');
323 }
324
325 List<Element> sublist(int start, [int end]) { 317 List<Element> sublist(int start, [int end]) {
326 return new _FrozenElementList._wrap(_nodeList.sublist(start, end)); 318 return new _FrozenElementList._wrap(_nodeList.sublist(start, end));
327 } 319 }
328 320
329 void clear() { 321 void clear() {
330 throw new UnsupportedError(''); 322 throw new UnsupportedError('');
331 } 323 }
332 324
333 Element removeAt(int index) { 325 Element removeAt(int index) {
334 throw new UnsupportedError(''); 326 throw new UnsupportedError('');
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after
969 const ScrollAlignment._internal(this._value); 961 const ScrollAlignment._internal(this._value);
970 toString() => 'ScrollAlignment.$_value'; 962 toString() => 'ScrollAlignment.$_value';
971 963
972 /// Attempt to align the element to the top of the scrollable area. 964 /// Attempt to align the element to the top of the scrollable area.
973 static const TOP = const ScrollAlignment._internal('TOP'); 965 static const TOP = const ScrollAlignment._internal('TOP');
974 /// Attempt to center the element in the scrollable area. 966 /// Attempt to center the element in the scrollable area.
975 static const CENTER = const ScrollAlignment._internal('CENTER'); 967 static const CENTER = const ScrollAlignment._internal('CENTER');
976 /// Attempt to align the element to the bottom of the scrollable area. 968 /// Attempt to align the element to the bottom of the scrollable area.
977 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); 969 static const BOTTOM = const ScrollAlignment._internal('BOTTOM');
978 } 970 }
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