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 2a6db0a34484992ba05f9ded21a67d0c08ef2232..a20b646c3b5ebb2c05a0b73311ac7d9c7353044c 100644 |
--- a/sdk/lib/html/dartium/html_dartium.dart |
+++ b/sdk/lib/html/dartium/html_dartium.dart |
@@ -17160,6 +17160,111 @@ class NodeIterator extends NativeFieldWrapperClass1 { |
// WARNING: Do not edit - generated code. |
+/// @domName NodeList |
+class NodeList extends NativeFieldWrapperClass1 implements List<Node> { |
+ NodeList.internal(); |
+ |
+ |
+ /** @domName NodeList.length */ |
+ int get length native "NodeList_length_Getter"; |
+ |
+ Node operator[](int index) native "NodeList_item_Callback"; |
+ |
+ void operator[]=(int index, Node value) { |
+ throw new UnsupportedError("Cannot assign element of immutable List."); |
+ } |
+ // -- start List<Node> mixins. |
+ // Node is the element type. |
+ |
+ // From Iterable<Node>: |
+ |
+ Iterator<Node> iterator() { |
+ // Note: NodeLists are not fixed size. And most probably length shouldn't |
+ // be cached in both iterator _and_ forEach method. For now caching it |
+ // for consistency. |
+ return new FixedSizeListIterator<Node>(this); |
+ } |
+ |
+ // From Collection<Node>: |
+ |
+ void add(Node value) { |
+ throw new UnsupportedError("Cannot add to immutable List."); |
+ } |
+ |
+ void addLast(Node value) { |
+ throw new UnsupportedError("Cannot add to immutable List."); |
+ } |
+ |
+ void addAll(Collection<Node> collection) { |
+ throw new UnsupportedError("Cannot add to immutable List."); |
+ } |
+ |
+ bool contains(Node element) => _Collections.contains(this, element); |
+ |
+ void forEach(void f(Node element)) => _Collections.forEach(this, f); |
+ |
+ Collection map(f(Node element)) => _Collections.map(this, [], f); |
+ |
+ Collection<Node> filter(bool f(Node element)) => |
+ _Collections.filter(this, <Node>[], f); |
+ |
+ bool every(bool f(Node element)) => _Collections.every(this, f); |
+ |
+ bool some(bool f(Node element)) => _Collections.some(this, f); |
+ |
+ bool get isEmpty => this.length == 0; |
+ |
+ // From List<Node>: |
+ |
+ void sort([Comparator<Node> compare = Comparable.compare]) { |
+ throw new UnsupportedError("Cannot sort immutable List."); |
+ } |
+ |
+ int indexOf(Node element, [int start = 0]) => |
+ _Lists.indexOf(this, element, start, this.length); |
+ |
+ int lastIndexOf(Node element, [int start]) { |
+ if (start == null) start = length - 1; |
+ return _Lists.lastIndexOf(this, element, start); |
+ } |
+ |
+ Node get first => this[0]; |
+ |
+ Node get last => this[length - 1]; |
+ |
+ Node removeLast() { |
+ throw new UnsupportedError("Cannot removeLast on immutable List."); |
+ } |
+ |
+ void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) { |
+ throw new UnsupportedError("Cannot setRange on immutable List."); |
+ } |
+ |
+ void removeRange(int start, int rangeLength) { |
+ throw new UnsupportedError("Cannot removeRange on immutable List."); |
+ } |
+ |
+ void insertRange(int start, int rangeLength, [Node initialValue]) { |
+ throw new UnsupportedError("Cannot insertRange on immutable List."); |
+ } |
+ |
+ List<Node> getRange(int start, int rangeLength) => |
+ _Lists.getRange(this, start, rangeLength, <Node>[]); |
+ |
+ // -- end List<Node> mixins. |
+ |
+ |
+ /** @domName NodeList.item */ |
+ Node _item(int index) native "NodeList_item_Callback"; |
+ |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+// WARNING: Do not edit - generated code. |
+ |
+ |
/// @domName Notation |
class Notation extends Node { |
Notation.internal(): super.internal(); |
@@ -18836,7 +18941,7 @@ class RTCStatsResponse extends NativeFieldWrapperClass1 { |
/// @domName RadioNodeList |
-class RadioNodeList extends _NodeList { |
+class RadioNodeList extends NodeList { |
RadioNodeList.internal(): super.internal(); |
@@ -26605,111 +26710,6 @@ class _MutationObserverFactoryProvider { |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
-// WARNING: Do not edit - generated code. |
- |
- |
-/// @domName NodeList |
-class _NodeList extends NativeFieldWrapperClass1 implements List<Node> { |
- _NodeList.internal(); |
- |
- |
- /** @domName NodeList.length */ |
- int get length native "NodeList_length_Getter"; |
- |
- Node operator[](int index) native "NodeList_item_Callback"; |
- |
- void operator[]=(int index, Node value) { |
- throw new UnsupportedError("Cannot assign element of immutable List."); |
- } |
- // -- start List<Node> mixins. |
- // Node is the element type. |
- |
- // From Iterable<Node>: |
- |
- Iterator<Node> iterator() { |
- // Note: NodeLists are not fixed size. And most probably length shouldn't |
- // be cached in both iterator _and_ forEach method. For now caching it |
- // for consistency. |
- return new FixedSizeListIterator<Node>(this); |
- } |
- |
- // From Collection<Node>: |
- |
- void add(Node value) { |
- throw new UnsupportedError("Cannot add to immutable List."); |
- } |
- |
- void addLast(Node value) { |
- throw new UnsupportedError("Cannot add to immutable List."); |
- } |
- |
- void addAll(Collection<Node> collection) { |
- throw new UnsupportedError("Cannot add to immutable List."); |
- } |
- |
- bool contains(Node element) => _Collections.contains(this, element); |
- |
- void forEach(void f(Node element)) => _Collections.forEach(this, f); |
- |
- Collection map(f(Node element)) => _Collections.map(this, [], f); |
- |
- Collection<Node> filter(bool f(Node element)) => |
- _Collections.filter(this, <Node>[], f); |
- |
- bool every(bool f(Node element)) => _Collections.every(this, f); |
- |
- bool some(bool f(Node element)) => _Collections.some(this, f); |
- |
- bool get isEmpty => this.length == 0; |
- |
- // From List<Node>: |
- |
- void sort([Comparator<Node> compare = Comparable.compare]) { |
- throw new UnsupportedError("Cannot sort immutable List."); |
- } |
- |
- int indexOf(Node element, [int start = 0]) => |
- _Lists.indexOf(this, element, start, this.length); |
- |
- int lastIndexOf(Node element, [int start]) { |
- if (start == null) start = length - 1; |
- return _Lists.lastIndexOf(this, element, start); |
- } |
- |
- Node get first => this[0]; |
- |
- Node get last => this[length - 1]; |
- |
- Node removeLast() { |
- throw new UnsupportedError("Cannot removeLast on immutable List."); |
- } |
- |
- void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) { |
- throw new UnsupportedError("Cannot setRange on immutable List."); |
- } |
- |
- void removeRange(int start, int rangeLength) { |
- throw new UnsupportedError("Cannot removeRange on immutable List."); |
- } |
- |
- void insertRange(int start, int rangeLength, [Node initialValue]) { |
- throw new UnsupportedError("Cannot insertRange on immutable List."); |
- } |
- |
- List<Node> getRange(int start, int rangeLength) => |
- _Lists.getRange(this, start, rangeLength, <Node>[]); |
- |
- // -- end List<Node> mixins. |
- |
- |
- /** @domName NodeList.item */ |
- Node _item(int index) native "NodeList_item_Callback"; |
- |
-} |
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
-// for details. All rights reserved. Use of this source code is governed by a |
-// BSD-style license that can be found in the LICENSE file. |
- |
class _NotificationFactoryProvider { |
static Notification createNotification(String title, [Map options]) native "Notification_constructor_Callback"; |