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

Unified Diff: sdk/lib/html/dartium/html_dartium.dart

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:
Download patch
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | sdk/lib/html/html_common/filtered_element_list.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dartium/html_dartium.dart
diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
index b2564d7a79f3cbd443fba3f3b5ad8749cf9e816d..8b6605262518daea664aee432cfdafa00f092c6c 100644
--- a/sdk/lib/html/dartium/html_dartium.dart
+++ b/sdk/lib/html/dartium/html_dartium.dart
@@ -7615,14 +7615,10 @@ class DomMimeTypeArray extends NativeFieldWrapperClass1 implements List<DomMimeT
throw new UnsupportedError("Cannot setRange on immutable List.");
}
- void removeRange(int start, int rangeLength) {
+ void removeRange(int start, int end) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
- void insertRange(int start, int rangeLength, [DomMimeType initialValue]) {
- throw new UnsupportedError("Cannot insertRange on immutable List.");
- }
-
Iterable<DomMimeType> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -7916,14 +7912,10 @@ class DomPluginArray extends NativeFieldWrapperClass1 implements List<DomPlugin>
throw new UnsupportedError("Cannot setRange on immutable List.");
}
- void removeRange(int start, int rangeLength) {
+ void removeRange(int start, int end) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
- void insertRange(int start, int rangeLength, [DomPlugin initialValue]) {
- throw new UnsupportedError("Cannot insertRange on immutable List.");
- }
-
Iterable<DomPlugin> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -8344,14 +8336,10 @@ class DomStringList extends NativeFieldWrapperClass1 implements List<String> {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
- void removeRange(int start, int rangeLength) {
+ void removeRange(int start, int end) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
- void insertRange(int start, int rangeLength, [String initialValue]) {
- throw new UnsupportedError("Cannot insertRange on immutable List.");
- }
-
Iterable<String> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -8627,11 +8615,7 @@ class _ChildrenElementList extends ListBase<Element> {
_childElements.retainWhere(test);
}
- void removeRange(int start, int rangeLength) {
- throw new UnimplementedError();
- }
-
- void insertRange(int start, int rangeLength, [initialValue = null]) {
+ void removeRange(int start, int end) {
throw new UnimplementedError();
}
@@ -8753,11 +8737,7 @@ class _FrozenElementList extends ListBase {
throw new UnsupportedError('');
}
- void removeRange(int start, int rangeLength) {
- throw new UnsupportedError('');
- }
-
- void insertRange(int start, int rangeLength, [initialValue = null]) {
+ void removeRange(int start, int end) {
throw new UnsupportedError('');
}
@@ -11029,14 +11009,10 @@ class FileList extends NativeFieldWrapperClass1 implements List<File> {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
- void removeRange(int start, int rangeLength) {
+ void removeRange(int start, int end) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
- void insertRange(int start, int rangeLength, [File initialValue]) {
- throw new UnsupportedError("Cannot insertRange on immutable List.");
- }
-
Iterable<File> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -11543,14 +11519,10 @@ class Float32Array extends ArrayBufferView implements List<double> {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
- void removeRange(int start, int rangeLength) {
+ void removeRange(int start, int end) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
- void insertRange(int start, int rangeLength, [num initialValue]) {
- throw new UnsupportedError("Cannot insertRange on immutable List.");
- }
-
Iterable<num> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -11786,14 +11758,10 @@ class Float64Array extends ArrayBufferView implements List<double> {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
- void removeRange(int start, int rangeLength) {
+ void removeRange(int start, int end) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
- void insertRange(int start, int rangeLength, [num initialValue]) {
- throw new UnsupportedError("Cannot insertRange on immutable List.");
- }
-
Iterable<num> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -12539,14 +12507,10 @@ class HtmlAllCollection extends NativeFieldWrapperClass1 implements List<Node> {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
- void removeRange(int start, int rangeLength) {
+ void removeRange(int start, int end) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
- void insertRange(int start, int rangeLength, [Node initialValue]) {
- throw new UnsupportedError("Cannot insertRange on immutable List.");
- }
-
Iterable<Node> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -12756,14 +12720,10 @@ class HtmlCollection extends NativeFieldWrapperClass1 implements List<Node> {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
- void removeRange(int start, int rangeLength) {
+ void removeRange(int start, int end) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
- void insertRange(int start, int rangeLength, [Node initialValue]) {
- throw new UnsupportedError("Cannot insertRange on immutable List.");
- }
-
Iterable<Node> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -15129,14 +15089,10 @@ class Int16Array extends ArrayBufferView implements List<int> {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
- void removeRange(int start, int rangeLength) {
+ void removeRange(int start, int end) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
- void insertRange(int start, int rangeLength, [int initialValue]) {
- throw new UnsupportedError("Cannot insertRange on immutable List.");
- }
-
Iterable<int> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -15372,14 +15328,10 @@ class Int32Array extends ArrayBufferView implements List<int> {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
- void removeRange(int start, int rangeLength) {
+ void removeRange(int start, int end) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
- void insertRange(int start, int rangeLength, [int initialValue]) {
- throw new UnsupportedError("Cannot insertRange on immutable List.");
- }
-
Iterable<int> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -15615,14 +15567,10 @@ class Int8Array extends ArrayBufferView implements List<int> {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
- void removeRange(int start, int rangeLength) {
+ void removeRange(int start, int end) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
- void insertRange(int start, int rangeLength, [int initialValue]) {
- throw new UnsupportedError("Cannot insertRange on immutable List.");
- }
-
Iterable<int> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -18346,14 +18294,10 @@ class _ChildNodeListLazy extends ListBase<Node> {
throw new UnsupportedError(
"Cannot setRange on immutable List.");
}
- void removeRange(int start, int rangeLength) {
+ void removeRange(int start, int end) {
throw new UnsupportedError(
"Cannot removeRange on immutable List.");
}
- void insertRange(int start, int rangeLength, [Node initialValue]) {
- throw new UnsupportedError(
- "Cannot insertRange on immutable List.");
- }
Iterable<Node> getRange(int start, int end) {
throw new UnimplementedError("NodeList.getRange");
@@ -18911,14 +18855,10 @@ class NodeList extends NativeFieldWrapperClass1 implements List<Node> {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
- void removeRange(int start, int rangeLength) {
+ void removeRange(int start, int end) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
- void insertRange(int start, int rangeLength, [Node initialValue]) {
- throw new UnsupportedError("Cannot insertRange on immutable List.");
- }
-
Iterable<Node> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -21609,14 +21549,10 @@ class SourceBufferList extends EventTarget implements List<SourceBuffer> {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
- void removeRange(int start, int rangeLength) {
+ void removeRange(int start, int end) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
- void insertRange(int start, int rangeLength, [SourceBuffer initialValue]) {
- throw new UnsupportedError("Cannot insertRange on immutable List.");
- }
-
Iterable<SourceBuffer> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -21935,14 +21871,10 @@ class SpeechGrammarList extends NativeFieldWrapperClass1 implements List<SpeechG
throw new UnsupportedError("Cannot setRange on immutable List.");
}
- void removeRange(int start, int rangeLength) {
+ void removeRange(int start, int end) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
- void insertRange(int start, int rangeLength, [SpeechGrammar initialValue]) {
- throw new UnsupportedError("Cannot insertRange on immutable List.");
- }
-
Iterable<SpeechGrammar> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -23676,14 +23608,10 @@ class TextTrackCueList extends NativeFieldWrapperClass1 implements List<TextTrac
throw new UnsupportedError("Cannot setRange on immutable List.");
}
- void removeRange(int start, int rangeLength) {
+ void removeRange(int start, int end) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
- void insertRange(int start, int rangeLength, [TextTrackCue initialValue]) {
- throw new UnsupportedError("Cannot insertRange on immutable List.");
- }
-
Iterable<TextTrackCue> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -23893,14 +23821,10 @@ class TextTrackList extends EventTarget implements List<TextTrack> {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
- void removeRange(int start, int rangeLength) {
+ void removeRange(int start, int end) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
- void insertRange(int start, int rangeLength, [TextTrack initialValue]) {
- throw new UnsupportedError("Cannot insertRange on immutable List.");
- }
-
Iterable<TextTrack> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -24327,14 +24251,10 @@ class TouchList extends NativeFieldWrapperClass1 implements List<Touch> {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
- void removeRange(int start, int rangeLength) {
+ void removeRange(int start, int end) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
- void insertRange(int start, int rangeLength, [Touch initialValue]) {
- throw new UnsupportedError("Cannot insertRange on immutable List.");
- }
-
Iterable<Touch> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -24844,14 +24764,10 @@ class Uint16Array extends ArrayBufferView implements List<int> {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
- void removeRange(int start, int rangeLength) {
+ void removeRange(int start, int end) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
- void insertRange(int start, int rangeLength, [int initialValue]) {
- throw new UnsupportedError("Cannot insertRange on immutable List.");
- }
-
Iterable<int> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -25087,14 +25003,10 @@ class Uint32Array extends ArrayBufferView implements List<int> {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
- void removeRange(int start, int rangeLength) {
+ void removeRange(int start, int end) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
- void insertRange(int start, int rangeLength, [int initialValue]) {
- throw new UnsupportedError("Cannot insertRange on immutable List.");
- }
-
Iterable<int> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -25330,14 +25242,10 @@ class Uint8Array extends ArrayBufferView implements List<int> {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
- void removeRange(int start, int rangeLength) {
+ void removeRange(int start, int end) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
- void insertRange(int start, int rangeLength, [int initialValue]) {
- throw new UnsupportedError("Cannot insertRange on immutable List.");
- }
-
Iterable<int> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -25571,14 +25479,10 @@ class Uint8ClampedArray extends Uint8Array implements List<int> {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
- void removeRange(int start, int rangeLength) {
+ void removeRange(int start, int end) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
- void insertRange(int start, int rangeLength, [int initialValue]) {
- throw new UnsupportedError("Cannot insertRange on immutable List.");
- }
-
Iterable<int> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -27694,14 +27598,10 @@ class _ClientRectList extends NativeFieldWrapperClass1 implements List<Rect> {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
- void removeRange(int start, int rangeLength) {
+ void removeRange(int start, int end) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
- void insertRange(int start, int rangeLength, [Rect initialValue]) {
- throw new UnsupportedError("Cannot insertRange on immutable List.");
- }
-
Iterable<Rect> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -27916,14 +27816,10 @@ class _CssRuleList extends NativeFieldWrapperClass1 implements List<CssRule> {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
- void removeRange(int start, int rangeLength) {
+ void removeRange(int start, int end) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
- void insertRange(int start, int rangeLength, [CssRule initialValue]) {
- throw new UnsupportedError("Cannot insertRange on immutable List.");
- }
-
Iterable<CssRule> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -28125,14 +28021,10 @@ class _CssValueList extends _CSSValue implements List<_CSSValue> {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
- void removeRange(int start, int rangeLength) {
+ void removeRange(int start, int end) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
- void insertRange(int start, int rangeLength, [_CSSValue initialValue]) {
- throw new UnsupportedError("Cannot insertRange on immutable List.");
- }
-
Iterable<_CSSValue> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -28570,14 +28462,10 @@ class _EntryArray extends NativeFieldWrapperClass1 implements List<Entry> {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
- void removeRange(int start, int rangeLength) {
+ void removeRange(int start, int end) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
- void insertRange(int start, int rangeLength, [Entry initialValue]) {
- throw new UnsupportedError("Cannot insertRange on immutable List.");
- }
-
Iterable<Entry> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -28779,14 +28667,10 @@ class _EntryArraySync extends NativeFieldWrapperClass1 implements List<_EntrySyn
throw new UnsupportedError("Cannot setRange on immutable List.");
}
- void removeRange(int start, int rangeLength) {
+ void removeRange(int start, int end) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
- void insertRange(int start, int rangeLength, [_EntrySync initialValue]) {
- throw new UnsupportedError("Cannot insertRange on immutable List.");
- }
-
Iterable<_EntrySync> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -29049,14 +28933,10 @@ class _GamepadList extends NativeFieldWrapperClass1 implements List<Gamepad> {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
- void removeRange(int start, int rangeLength) {
+ void removeRange(int start, int end) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
- void insertRange(int start, int rangeLength, [Gamepad initialValue]) {
- throw new UnsupportedError("Cannot insertRange on immutable List.");
- }
-
Iterable<Gamepad> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -29349,14 +29229,10 @@ class _NamedNodeMap extends NativeFieldWrapperClass1 implements List<Node> {
throw new UnsupportedError("Cannot setRange on immutable List.");
}
- void removeRange(int start, int rangeLength) {
+ void removeRange(int start, int end) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
- void insertRange(int start, int rangeLength, [Node initialValue]) {
- throw new UnsupportedError("Cannot insertRange on immutable List.");
- }
-
Iterable<Node> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -29643,14 +29519,10 @@ class _SpeechInputResultList extends NativeFieldWrapperClass1 implements List<Sp
throw new UnsupportedError("Cannot setRange on immutable List.");
}
- void removeRange(int start, int rangeLength) {
+ void removeRange(int start, int end) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
- void insertRange(int start, int rangeLength, [SpeechInputResult initialValue]) {
- throw new UnsupportedError("Cannot insertRange on immutable List.");
- }
-
Iterable<SpeechInputResult> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -29852,14 +29724,10 @@ class _SpeechRecognitionResultList extends NativeFieldWrapperClass1 implements L
throw new UnsupportedError("Cannot setRange on immutable List.");
}
- void removeRange(int start, int rangeLength) {
+ void removeRange(int start, int end) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
- void insertRange(int start, int rangeLength, [SpeechRecognitionResult initialValue]) {
- throw new UnsupportedError("Cannot insertRange on immutable List.");
- }
-
Iterable<SpeechRecognitionResult> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -30061,14 +29929,10 @@ class _StyleSheetList extends NativeFieldWrapperClass1 implements List<StyleShee
throw new UnsupportedError("Cannot setRange on immutable List.");
}
- void removeRange(int start, int rangeLength) {
+ void removeRange(int start, int end) {
throw new UnsupportedError("Cannot removeRange on immutable List.");
}
- void insertRange(int start, int rangeLength, [StyleSheet initialValue]) {
- throw new UnsupportedError("Cannot insertRange on immutable List.");
- }
-
Iterable<StyleSheet> getRange(int start, int end) =>
IterableMixinWorkaround.getRangeList(this, start, end);
@@ -30923,6 +30787,12 @@ class _EventStreamSubscription<T extends Event> extends StreamSubscription<T> {
_target.$dom_removeEventListener(_eventType, _onData, _useCapture);
}
}
+
+ Future asFuture([var futureValue]) {
+ // We just need a future that will never succeed or fail.
+ Completer completer = new Completer();
+ return completer.future;
+ }
}
@@ -32644,11 +32514,7 @@ class _WrappedList<E> implements List<E> {
_list.setRange(start, end, iterable, skipCount);
}
- void removeRange(int start, int length) { _list.removeRange(start, length); }
-
- void insertRange(int start, int length, [E fill]) {
- _list.insertRange(start, length, fill);
- }
+ void removeRange(int start, int end) { _list.removeRange(start, end); }
Map<int, E> asMap() => _list.asMap();
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | sdk/lib/html/html_common/filtered_element_list.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698