Index: lib/html/dart2js/html_dart2js.dart |
=================================================================== |
--- lib/html/dart2js/html_dart2js.dart (revision 12802) |
+++ lib/html/dart2js/html_dart2js.dart (working copy) |
@@ -1836,7 +1836,7 @@ |
abstract class CSSKeyframesRule implements CSSRule { |
/** @domName WebKitCSSKeyframesRule.cssRules */ |
- abstract CSSRuleList get cssRules; |
+ abstract List<CSSRule> get cssRules; |
/** @domName WebKitCSSKeyframesRule.name */ |
String name; |
@@ -2052,7 +2052,7 @@ |
abstract class CSSMediaRule implements CSSRule { |
/** @domName CSSMediaRule.cssRules */ |
- abstract CSSRuleList get cssRules; |
+ abstract List<CSSRule> get cssRules; |
/** @domName CSSMediaRule.media */ |
abstract MediaList get media; |
@@ -2332,24 +2332,9 @@ |
final int type; |
} |
-// 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. |
+class _CSSRuleListImpl implements List<CSSRule>, JavaScriptIndexingBehavior native "*CSSRuleList" { |
-/// @domName CSSRuleList |
-abstract class CSSRuleList implements List<CSSRule> { |
- |
- /** @domName CSSRuleList.length */ |
- abstract int get length; |
- |
- /** @domName CSSRuleList.item */ |
- CSSRule item(int index); |
-} |
- |
-class _CSSRuleListImpl implements CSSRuleList, JavaScriptIndexingBehavior native "*CSSRuleList" { |
- |
final int length; |
_CSSRuleImpl operator[](int index) native "return this[index];"; |
@@ -2416,7 +2401,6 @@ |
throw const UnsupportedOperationException("Cannot removeLast on immutable List."); |
} |
- // FIXME: implement these. |
void setRange(int start, int rangeLength, List<CSSRule> from, [int startFrom]) { |
throw const UnsupportedOperationException("Cannot setRange on immutable List."); |
} |
@@ -7173,13 +7157,13 @@ |
abstract class CSSStyleSheet implements StyleSheet { |
/** @domName CSSStyleSheet.cssRules */ |
- abstract CSSRuleList get cssRules; |
+ abstract List<CSSRule> get cssRules; |
/** @domName CSSStyleSheet.ownerRule */ |
abstract CSSRule get ownerRule; |
/** @domName CSSStyleSheet.rules */ |
- abstract CSSRuleList get rules; |
+ abstract List<CSSRule> get rules; |
/** @domName CSSStyleSheet.addRule */ |
int addRule(String selector, String style, [int index]); |
@@ -7217,7 +7201,7 @@ |
// WARNING: Do not edit - generated code. |
/// @domName WebKitCSSTransformValue |
-abstract class CSSTransformValue implements CSSValueList { |
+abstract class CSSTransformValue implements List<CSSValue> { |
static const int CSS_MATRIX = 11; |
@@ -7361,24 +7345,9 @@ |
final int cssValueType; |
} |
-// 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. |
+class _CSSValueListImpl extends _CSSValueImpl implements List<CSSValue>, JavaScriptIndexingBehavior native "*CSSValueList" { |
-/// @domName CSSValueList |
-abstract class CSSValueList implements CSSValue, List<CSSValue> { |
- |
- /** @domName CSSValueList.length */ |
- abstract int get length; |
- |
- /** @domName CSSValueList.item */ |
- CSSValue item(int index); |
-} |
- |
-class _CSSValueListImpl extends _CSSValueImpl implements CSSValueList, JavaScriptIndexingBehavior native "*CSSValueList" { |
- |
final int length; |
_CSSValueImpl operator[](int index) native "return this[index];"; |
@@ -7445,7 +7414,6 @@ |
throw const UnsupportedOperationException("Cannot removeLast on immutable List."); |
} |
- // FIXME: implement these. |
void setRange(int start, int rangeLength, List<CSSValue> from, [int startFrom]) { |
throw const UnsupportedOperationException("Cannot setRange on immutable List."); |
} |
@@ -8046,24 +8014,9 @@ |
final num width; |
} |
-// 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. |
+class _ClientRectListImpl implements List<ClientRect>, JavaScriptIndexingBehavior native "*ClientRectList" { |
-/// @domName ClientRectList |
-abstract class ClientRectList implements List<ClientRect> { |
- |
- /** @domName ClientRectList.length */ |
- abstract int get length; |
- |
- /** @domName ClientRectList.item */ |
- ClientRect item(int index); |
-} |
- |
-class _ClientRectListImpl implements ClientRectList, JavaScriptIndexingBehavior native "*ClientRectList" { |
- |
final int length; |
_ClientRectImpl operator[](int index) native "return this[index];"; |
@@ -8130,7 +8083,6 @@ |
throw const UnsupportedOperationException("Cannot removeLast on immutable List."); |
} |
- // FIXME: implement these. |
void setRange(int start, int rangeLength, List<ClientRect> from, [int startFrom]) { |
throw const UnsupportedOperationException("Cannot setRange on immutable List."); |
} |
@@ -8166,7 +8118,7 @@ |
String effectAllowed; |
/** @domName Clipboard.files */ |
- abstract FileList get files; |
+ abstract List<File> get files; |
/** @domName Clipboard.items */ |
abstract DataTransferItemList get items; |
@@ -9019,7 +8971,6 @@ |
throw const UnsupportedOperationException("Cannot removeLast on immutable List."); |
} |
- // FIXME: implement these. |
void setRange(int start, int rangeLength, List<DOMMimeType> from, [int startFrom]) { |
throw const UnsupportedOperationException("Cannot setRange on immutable List."); |
} |
@@ -9188,7 +9139,6 @@ |
throw const UnsupportedOperationException("Cannot removeLast on immutable List."); |
} |
- // FIXME: implement these. |
void setRange(int start, int rangeLength, List<DOMPlugin> from, [int startFrom]) { |
throw const UnsupportedOperationException("Cannot setRange on immutable List."); |
} |
@@ -9473,7 +9423,6 @@ |
throw const UnsupportedOperationException("Cannot removeLast on immutable List."); |
} |
- // FIXME: implement these. |
void setRange(int start, int rangeLength, List<String> from, [int startFrom]) { |
throw const UnsupportedOperationException("Cannot setRange on immutable List."); |
} |
@@ -10122,7 +10071,7 @@ |
abstract class DirectoryReaderSync { |
/** @domName DirectoryReaderSync.readEntries */ |
- EntryArraySync readEntries(); |
+ List<EntrySync> readEntries(); |
} |
class _DirectoryReaderSyncImpl implements DirectoryReaderSync native "*DirectoryReaderSync" { |
@@ -10204,7 +10153,7 @@ |
String selectedStylesheetSet; |
/** @domName Document.styleSheets */ |
- abstract StyleSheetList get styleSheets; |
+ abstract List<StyleSheet> get styleSheets; |
/** @domName Document.title */ |
String title; |
@@ -11436,7 +11385,7 @@ |
ClientRect $dom_getBoundingClientRect(); |
/** @domName Element.getClientRects */ |
- ClientRectList $dom_getClientRects(); |
+ List<ClientRect> $dom_getClientRects(); |
/** @domName Element.getElementsByClassName */ |
NodeList $dom_getElementsByClassName(String name); |
@@ -12807,7 +12756,7 @@ |
// WARNING: Do not edit - generated code. |
-typedef bool EntriesCallback(EntryArray entries); |
+typedef bool EntriesCallback(List<Entry> entries); |
// 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. |
@@ -12850,24 +12799,9 @@ |
/** @domName Entry.toURL */ |
String toURL(); |
} |
-// 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. |
+class _EntryArrayImpl implements List<Entry>, JavaScriptIndexingBehavior native "*EntryArray" { |
-/// @domName EntryArray |
-abstract class EntryArray implements List<Entry> { |
- |
- /** @domName EntryArray.length */ |
- abstract int get length; |
- |
- /** @domName EntryArray.item */ |
- Entry item(int index); |
-} |
- |
-class _EntryArrayImpl implements EntryArray, JavaScriptIndexingBehavior native "*EntryArray" { |
- |
final int length; |
_EntryImpl operator[](int index) native "return this[index];"; |
@@ -12934,7 +12868,6 @@ |
throw const UnsupportedOperationException("Cannot removeLast on immutable List."); |
} |
- // FIXME: implement these. |
void setRange(int start, int rangeLength, List<Entry> from, [int startFrom]) { |
throw const UnsupportedOperationException("Cannot setRange on immutable List."); |
} |
@@ -12954,24 +12887,9 @@ |
_EntryImpl item(int index) native; |
} |
-// 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. |
+class _EntryArraySyncImpl implements List<EntrySync>, JavaScriptIndexingBehavior native "*EntryArraySync" { |
-/// @domName EntryArraySync |
-abstract class EntryArraySync implements List<EntrySync> { |
- |
- /** @domName EntryArraySync.length */ |
- abstract int get length; |
- |
- /** @domName EntryArraySync.item */ |
- EntrySync item(int index); |
-} |
- |
-class _EntryArraySyncImpl implements EntryArraySync, JavaScriptIndexingBehavior native "*EntryArraySync" { |
- |
final int length; |
_EntrySyncImpl operator[](int index) native "return this[index];"; |
@@ -13038,7 +12956,6 @@ |
throw const UnsupportedOperationException("Cannot removeLast on immutable List."); |
} |
- // FIXME: implement these. |
void setRange(int start, int rangeLength, List<EntrySync> from, [int startFrom]) { |
throw const UnsupportedOperationException("Cannot setRange on immutable List."); |
} |
@@ -13888,24 +13805,9 @@ |
final String webkitRelativePath; |
} |
-// 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. |
+class _FileListImpl implements List<File>, JavaScriptIndexingBehavior native "*FileList" { |
-/// @domName FileList |
-abstract class FileList implements List<File> { |
- |
- /** @domName FileList.length */ |
- abstract int get length; |
- |
- /** @domName FileList.item */ |
- File item(int index); |
-} |
- |
-class _FileListImpl implements FileList, JavaScriptIndexingBehavior native "*FileList" { |
- |
final int length; |
_FileImpl operator[](int index) native "return this[index];"; |
@@ -13972,7 +13874,6 @@ |
throw const UnsupportedOperationException("Cannot removeLast on immutable List."); |
} |
- // FIXME: implement these. |
void setRange(int start, int rangeLength, List<File> from, [int startFrom]) { |
throw const UnsupportedOperationException("Cannot setRange on immutable List."); |
} |
@@ -14413,7 +14314,6 @@ |
throw const UnsupportedOperationException("Cannot removeLast on immutable List."); |
} |
- // FIXME: implement these. |
void setRange(int start, int rangeLength, List<num> from, [int startFrom]) { |
throw const UnsupportedOperationException("Cannot setRange on immutable List."); |
} |
@@ -14533,7 +14433,6 @@ |
throw const UnsupportedOperationException("Cannot removeLast on immutable List."); |
} |
- // FIXME: implement these. |
void setRange(int start, int rangeLength, List<num> from, [int startFrom]) { |
throw const UnsupportedOperationException("Cannot setRange on immutable List."); |
} |
@@ -14893,24 +14792,9 @@ |
final int timestamp; |
} |
-// 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. |
+class _GamepadListImpl implements List<Gamepad>, JavaScriptIndexingBehavior native "*GamepadList" { |
-/// @domName GamepadList |
-abstract class GamepadList implements List<Gamepad> { |
- |
- /** @domName GamepadList.length */ |
- abstract int get length; |
- |
- /** @domName GamepadList.item */ |
- Gamepad item(int index); |
-} |
- |
-class _GamepadListImpl implements GamepadList, JavaScriptIndexingBehavior native "*GamepadList" { |
- |
final int length; |
_GamepadImpl operator[](int index) native "return this[index];"; |
@@ -14977,7 +14861,6 @@ |
throw const UnsupportedOperationException("Cannot removeLast on immutable List."); |
} |
- // FIXME: implement these. |
void setRange(int start, int rangeLength, List<Gamepad> from, [int startFrom]) { |
throw const UnsupportedOperationException("Cannot setRange on immutable List."); |
} |
@@ -15170,7 +15053,6 @@ |
throw const UnsupportedOperationException("Cannot removeLast on immutable List."); |
} |
- // FIXME: implement these. |
void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) { |
throw const UnsupportedOperationException("Cannot setRange on immutable List."); |
} |
@@ -15281,7 +15163,6 @@ |
throw const UnsupportedOperationException("Cannot removeLast on immutable List."); |
} |
- // FIXME: implement these. |
void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) { |
throw const UnsupportedOperationException("Cannot setRange on immutable List."); |
} |
@@ -17267,7 +17148,7 @@ |
bool disabled; |
/** @domName HTMLInputElement.files */ |
- FileList files; |
+ List<File> files; |
/** @domName HTMLInputElement.form */ |
abstract FormElement get form; |
@@ -17369,7 +17250,7 @@ |
num valueAsNumber; |
/** @domName HTMLInputElement.webkitEntries */ |
- abstract EntryArray get webkitEntries; |
+ abstract List<Entry> get webkitEntries; |
/** @domName HTMLInputElement.webkitGrammar */ |
bool webkitGrammar; |
@@ -17629,7 +17510,6 @@ |
throw const UnsupportedOperationException("Cannot removeLast on immutable List."); |
} |
- // FIXME: implement these. |
void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { |
throw const UnsupportedOperationException("Cannot setRange on immutable List."); |
} |
@@ -17749,7 +17629,6 @@ |
throw const UnsupportedOperationException("Cannot removeLast on immutable List."); |
} |
- // FIXME: implement these. |
void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { |
throw const UnsupportedOperationException("Cannot setRange on immutable List."); |
} |
@@ -17869,7 +17748,6 @@ |
throw const UnsupportedOperationException("Cannot removeLast on immutable List."); |
} |
- // FIXME: implement these. |
void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { |
throw const UnsupportedOperationException("Cannot setRange on immutable List."); |
} |
@@ -19108,7 +18986,7 @@ |
// WARNING: Do not edit - generated code. |
/// @domName MediaList |
-abstract class MediaList implements List<String> { |
+abstract class MediaList { |
/** @domName MediaList.length */ |
abstract int get length; |
@@ -19126,94 +19004,12 @@ |
String item(int index); |
} |
-class _MediaListImpl implements MediaList, JavaScriptIndexingBehavior native "*MediaList" { |
+class _MediaListImpl implements MediaList native "*MediaList" { |
final int length; |
String mediaText; |
- String operator[](int index) native "return this[index];"; |
- |
- void operator[]=(int index, String value) { |
- throw new UnsupportedOperationException("Cannot assign element of immutable List."); |
- } |
- // -- start List<String> mixins. |
- // String is the element type. |
- |
- // From Iterable<String>: |
- |
- Iterator<String> 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<String>(this); |
- } |
- |
- // From Collection<String>: |
- |
- void add(String value) { |
- throw const UnsupportedOperationException("Cannot add to immutable List."); |
- } |
- |
- void addLast(String value) { |
- throw const UnsupportedOperationException("Cannot add to immutable List."); |
- } |
- |
- void addAll(Collection<String> collection) { |
- throw const UnsupportedOperationException("Cannot add to immutable List."); |
- } |
- |
- void forEach(void f(String element)) => _Collections.forEach(this, f); |
- |
- Collection map(f(String element)) => _Collections.map(this, [], f); |
- |
- Collection<String> filter(bool f(String element)) => |
- _Collections.filter(this, <String>[], f); |
- |
- bool every(bool f(String element)) => _Collections.every(this, f); |
- |
- bool some(bool f(String element)) => _Collections.some(this, f); |
- |
- bool isEmpty() => this.length == 0; |
- |
- // From List<String>: |
- |
- void sort(int compare(String a, String b)) { |
- throw const UnsupportedOperationException("Cannot sort immutable List."); |
- } |
- |
- int indexOf(String element, [int start = 0]) => |
- _Lists.indexOf(this, element, start, this.length); |
- |
- int lastIndexOf(String element, [int start]) { |
- if (start === null) start = length - 1; |
- return _Lists.lastIndexOf(this, element, start); |
- } |
- |
- String last() => this[length - 1]; |
- |
- String removeLast() { |
- throw const UnsupportedOperationException("Cannot removeLast on immutable List."); |
- } |
- |
- // FIXME: implement these. |
- void setRange(int start, int rangeLength, List<String> from, [int startFrom]) { |
- throw const UnsupportedOperationException("Cannot setRange on immutable List."); |
- } |
- |
- void removeRange(int start, int rangeLength) { |
- throw const UnsupportedOperationException("Cannot removeRange on immutable List."); |
- } |
- |
- void insertRange(int start, int rangeLength, [String initialValue]) { |
- throw const UnsupportedOperationException("Cannot insertRange on immutable List."); |
- } |
- |
- List<String> getRange(int start, int rangeLength) => |
- _Lists.getRange(this, start, rangeLength, <String>[]); |
- |
- // -- end List<String> mixins. |
- |
void appendMedium(String newMedium) native; |
void deleteMedium(String oldMedium) native; |
@@ -19438,24 +19234,9 @@ |
EventListenerList get ended => this['ended']; |
} |
-// 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. |
+class _MediaStreamListImpl implements List<MediaStream>, JavaScriptIndexingBehavior native "*MediaStreamList" { |
-/// @domName MediaStreamList |
-abstract class MediaStreamList implements List<MediaStream> { |
- |
- /** @domName MediaStreamList.length */ |
- abstract int get length; |
- |
- /** @domName MediaStreamList.item */ |
- MediaStream item(int index); |
-} |
- |
-class _MediaStreamListImpl implements MediaStreamList, JavaScriptIndexingBehavior native "*MediaStreamList" { |
- |
final int length; |
_MediaStreamImpl operator[](int index) native "return this[index];"; |
@@ -19522,7 +19303,6 @@ |
throw const UnsupportedOperationException("Cannot removeLast on immutable List."); |
} |
- // FIXME: implement these. |
void setRange(int start, int rangeLength, List<MediaStream> from, [int startFrom]) { |
throw const UnsupportedOperationException("Cannot setRange on immutable List."); |
} |
@@ -20510,7 +20290,6 @@ |
throw const UnsupportedOperationException("Cannot removeLast on immutable List."); |
} |
- // FIXME: implement these. |
void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) { |
throw const UnsupportedOperationException("Cannot setRange on immutable List."); |
} |
@@ -20606,7 +20385,7 @@ |
bool javaEnabled(); |
/** @domName Navigator.webkitGetGamepads */ |
- GamepadList webkitGetGamepads(); |
+ List<Gamepad> webkitGetGamepads(); |
/** @domName Navigator.webkitGetUserMedia */ |
void webkitGetUserMedia(Map options, NavigatorUserMediaSuccessCallback successCallback, [NavigatorUserMediaErrorCallback errorCallback]); |
@@ -22213,7 +21992,7 @@ |
abstract SessionDescription get localDescription; |
/** @domName PeerConnection00.localStreams */ |
- abstract MediaStreamList get localStreams; |
+ abstract List<MediaStream> get localStreams; |
/** @domName PeerConnection00.readyState */ |
abstract int get readyState; |
@@ -22222,7 +22001,7 @@ |
abstract SessionDescription get remoteDescription; |
/** @domName PeerConnection00.remoteStreams */ |
- abstract MediaStreamList get remoteStreams; |
+ abstract List<MediaStream> get remoteStreams; |
/** @domName PeerConnection00.addEventListener */ |
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]); |
@@ -22906,7 +22685,7 @@ |
abstract RTCSessionDescription get localDescription; |
/** @domName RTCPeerConnection.localStreams */ |
- abstract MediaStreamList get localStreams; |
+ abstract List<MediaStream> get localStreams; |
/** @domName RTCPeerConnection.readyState */ |
abstract String get readyState; |
@@ -22915,7 +22694,7 @@ |
abstract RTCSessionDescription get remoteDescription; |
/** @domName RTCPeerConnection.remoteStreams */ |
- abstract MediaStreamList get remoteStreams; |
+ abstract List<MediaStream> get remoteStreams; |
/** @domName RTCPeerConnection.addEventListener */ |
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]); |
@@ -23159,7 +22938,6 @@ |
throw const UnsupportedOperationException("Cannot removeLast on immutable List."); |
} |
- // FIXME: implement these. |
void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) { |
throw const UnsupportedOperationException("Cannot setRange on immutable List."); |
} |
@@ -23254,7 +23032,7 @@ |
ClientRect getBoundingClientRect(); |
/** @domName Range.getClientRects */ |
- ClientRectList getClientRects(); |
+ List<ClientRect> getClientRects(); |
/** @domName Range.insertNode */ |
void insertNode(Node newNode); |
@@ -24160,7 +23938,6 @@ |
throw const UnsupportedOperationException("Cannot removeLast on immutable List."); |
} |
- // FIXME: implement these. |
void setRange(int start, int rangeLength, List<SVGAnimatedLength> from, [int startFrom]) { |
throw const UnsupportedOperationException("Cannot setRange on immutable List."); |
} |
@@ -24286,7 +24063,6 @@ |
throw const UnsupportedOperationException("Cannot removeLast on immutable List."); |
} |
- // FIXME: implement these. |
void setRange(int start, int rangeLength, List<SVGAnimatedNumber> from, [int startFrom]) { |
throw const UnsupportedOperationException("Cannot setRange on immutable List."); |
} |
@@ -24456,7 +24232,6 @@ |
throw const UnsupportedOperationException("Cannot removeLast on immutable List."); |
} |
- // FIXME: implement these. |
void setRange(int start, int rangeLength, List<SVGAnimateTransformElement> from, [int startFrom]) { |
throw const UnsupportedOperationException("Cannot setRange on immutable List."); |
} |
@@ -25048,7 +24823,7 @@ |
SVGElementInstanceEvents get on; |
/** @domName SVGElementInstance.childNodes */ |
- abstract SVGElementInstanceList get childNodes; |
+ abstract List<SVGElementInstance> get childNodes; |
/** @domName SVGElementInstance.correspondingElement */ |
abstract SVGElement get correspondingElement; |
@@ -25260,24 +25035,9 @@ |
EventListenerList get unload => this['unload']; |
} |
-// 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. |
+class _SVGElementInstanceListImpl implements List<SVGElementInstance>, JavaScriptIndexingBehavior native "*SVGElementInstanceList" { |
-/// @domName SVGElementInstanceList |
-abstract class SVGElementInstanceList implements List<SVGElementInstance> { |
- |
- /** @domName SVGElementInstanceList.length */ |
- abstract int get length; |
- |
- /** @domName SVGElementInstanceList.item */ |
- SVGElementInstance item(int index); |
-} |
- |
-class _SVGElementInstanceListImpl implements SVGElementInstanceList, JavaScriptIndexingBehavior native "*SVGElementInstanceList" { |
- |
final int length; |
_SVGElementInstanceImpl operator[](int index) native "return this[index];"; |
@@ -25344,7 +25104,6 @@ |
throw const UnsupportedOperationException("Cannot removeLast on immutable List."); |
} |
- // FIXME: implement these. |
void setRange(int start, int rangeLength, List<SVGElementInstance> from, [int startFrom]) { |
throw const UnsupportedOperationException("Cannot setRange on immutable List."); |
} |
@@ -27473,7 +27232,6 @@ |
throw const UnsupportedOperationException("Cannot removeLast on immutable List."); |
} |
- // FIXME: implement these. |
void setRange(int start, int rangeLength, List<SVGLength> from, [int startFrom]) { |
throw const UnsupportedOperationException("Cannot setRange on immutable List."); |
} |
@@ -28080,7 +27838,6 @@ |
throw const UnsupportedOperationException("Cannot removeLast on immutable List."); |
} |
- // FIXME: implement these. |
void setRange(int start, int rangeLength, List<SVGNumber> from, [int startFrom]) { |
throw const UnsupportedOperationException("Cannot setRange on immutable List."); |
} |
@@ -29056,7 +28813,6 @@ |
throw const UnsupportedOperationException("Cannot removeLast on immutable List."); |
} |
- // FIXME: implement these. |
void setRange(int start, int rangeLength, List<SVGPathSeg> from, [int startFrom]) { |
throw const UnsupportedOperationException("Cannot setRange on immutable List."); |
} |
@@ -30128,7 +29884,6 @@ |
throw const UnsupportedOperationException("Cannot removeLast on immutable List."); |
} |
- // FIXME: implement these. |
void setRange(int start, int rangeLength, List<String> from, [int startFrom]) { |
throw const UnsupportedOperationException("Cannot setRange on immutable List."); |
} |
@@ -30814,7 +30569,6 @@ |
throw const UnsupportedOperationException("Cannot removeLast on immutable List."); |
} |
- // FIXME: implement these. |
void setRange(int start, int rangeLength, List<SVGTransform> from, [int startFrom]) { |
throw const UnsupportedOperationException("Cannot setRange on immutable List."); |
} |
@@ -31740,7 +31494,6 @@ |
throw const UnsupportedOperationException("Cannot removeLast on immutable List."); |
} |
- // FIXME: implement these. |
void setRange(int start, int rangeLength, List<SourceBuffer> from, [int startFrom]) { |
throw const UnsupportedOperationException("Cannot setRange on immutable List."); |
} |
@@ -31925,7 +31678,6 @@ |
throw const UnsupportedOperationException("Cannot removeLast on immutable List."); |
} |
- // FIXME: implement these. |
void setRange(int start, int rangeLength, List<SpeechGrammar> from, [int startFrom]) { |
throw const UnsupportedOperationException("Cannot setRange on immutable List."); |
} |
@@ -31959,7 +31711,7 @@ |
abstract class SpeechInputEvent implements Event { |
/** @domName SpeechInputEvent.results */ |
- abstract SpeechInputResultList get results; |
+ abstract List<SpeechInputResult> get results; |
} |
class _SpeechInputEventImpl extends _EventImpl implements SpeechInputEvent native "*SpeechInputEvent" { |
@@ -31988,24 +31740,9 @@ |
final String utterance; |
} |
-// 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. |
+class _SpeechInputResultListImpl implements List<SpeechInputResult>, JavaScriptIndexingBehavior native "*SpeechInputResultList" { |
-/// @domName SpeechInputResultList |
-abstract class SpeechInputResultList implements List<SpeechInputResult> { |
- |
- /** @domName SpeechInputResultList.length */ |
- abstract int get length; |
- |
- /** @domName SpeechInputResultList.item */ |
- SpeechInputResult item(int index); |
-} |
- |
-class _SpeechInputResultListImpl implements SpeechInputResultList, JavaScriptIndexingBehavior native "*SpeechInputResultList" { |
- |
final int length; |
_SpeechInputResultImpl operator[](int index) native "return this[index];"; |
@@ -32072,7 +31809,6 @@ |
throw const UnsupportedOperationException("Cannot removeLast on immutable List."); |
} |
- // FIXME: implement these. |
void setRange(int start, int rangeLength, List<SpeechInputResult> from, [int startFrom]) { |
throw const UnsupportedOperationException("Cannot setRange on immutable List."); |
} |
@@ -32258,7 +31994,7 @@ |
abstract SpeechRecognitionResult get result; |
/** @domName SpeechRecognitionEvent.resultHistory */ |
- abstract SpeechRecognitionResultList get resultHistory; |
+ abstract List<SpeechRecognitionResult> get resultHistory; |
/** @domName SpeechRecognitionEvent.resultIndex */ |
abstract int get resultIndex; |
@@ -32358,24 +32094,9 @@ |
_SpeechRecognitionAlternativeImpl item(int index) native; |
} |
-// 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. |
+class _SpeechRecognitionResultListImpl implements List<SpeechRecognitionResult>, JavaScriptIndexingBehavior native "*SpeechRecognitionResultList" { |
-/// @domName SpeechRecognitionResultList |
-abstract class SpeechRecognitionResultList implements List<SpeechRecognitionResult> { |
- |
- /** @domName SpeechRecognitionResultList.length */ |
- abstract int get length; |
- |
- /** @domName SpeechRecognitionResultList.item */ |
- SpeechRecognitionResult item(int index); |
-} |
- |
-class _SpeechRecognitionResultListImpl implements SpeechRecognitionResultList, JavaScriptIndexingBehavior native "*SpeechRecognitionResultList" { |
- |
final int length; |
_SpeechRecognitionResultImpl operator[](int index) native "return this[index];"; |
@@ -32442,7 +32163,6 @@ |
throw const UnsupportedOperationException("Cannot removeLast on immutable List."); |
} |
- // FIXME: implement these. |
void setRange(int start, int rangeLength, List<SpeechRecognitionResult> from, [int startFrom]) { |
throw const UnsupportedOperationException("Cannot setRange on immutable List."); |
} |
@@ -32762,24 +32482,9 @@ |
final String type; |
} |
-// 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. |
+class _StyleSheetListImpl implements List<StyleSheet>, JavaScriptIndexingBehavior native "*StyleSheetList" { |
-/// @domName StyleSheetList |
-abstract class StyleSheetList implements List<StyleSheet> { |
- |
- /** @domName StyleSheetList.length */ |
- abstract int get length; |
- |
- /** @domName StyleSheetList.item */ |
- StyleSheet item(int index); |
-} |
- |
-class _StyleSheetListImpl implements StyleSheetList, JavaScriptIndexingBehavior native "*StyleSheetList" { |
- |
final int length; |
_StyleSheetImpl operator[](int index) native "return this[index];"; |
@@ -32846,7 +32551,6 @@ |
throw const UnsupportedOperationException("Cannot removeLast on immutable List."); |
} |
- // FIXME: implement these. |
void setRange(int start, int rangeLength, List<StyleSheet> from, [int startFrom]) { |
throw const UnsupportedOperationException("Cannot setRange on immutable List."); |
} |
@@ -33739,7 +33443,6 @@ |
throw const UnsupportedOperationException("Cannot removeLast on immutable List."); |
} |
- // FIXME: implement these. |
void setRange(int start, int rangeLength, List<TextTrackCue> from, [int startFrom]) { |
throw const UnsupportedOperationException("Cannot setRange on immutable List."); |
} |
@@ -33901,7 +33604,6 @@ |
throw const UnsupportedOperationException("Cannot removeLast on immutable List."); |
} |
- // FIXME: implement these. |
void setRange(int start, int rangeLength, List<TextTrack> from, [int startFrom]) { |
throw const UnsupportedOperationException("Cannot setRange on immutable List."); |
} |
@@ -34189,7 +33891,6 @@ |
throw const UnsupportedOperationException("Cannot removeLast on immutable List."); |
} |
- // FIXME: implement these. |
void setRange(int start, int rangeLength, List<Touch> from, [int startFrom]) { |
throw const UnsupportedOperationException("Cannot setRange on immutable List."); |
} |
@@ -34571,7 +34272,6 @@ |
throw const UnsupportedOperationException("Cannot removeLast on immutable List."); |
} |
- // FIXME: implement these. |
void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { |
throw const UnsupportedOperationException("Cannot setRange on immutable List."); |
} |
@@ -34691,7 +34391,6 @@ |
throw const UnsupportedOperationException("Cannot removeLast on immutable List."); |
} |
- // FIXME: implement these. |
void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { |
throw const UnsupportedOperationException("Cannot setRange on immutable List."); |
} |
@@ -34811,7 +34510,6 @@ |
throw const UnsupportedOperationException("Cannot removeLast on immutable List."); |
} |
- // FIXME: implement these. |
void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { |
throw const UnsupportedOperationException("Cannot setRange on immutable List."); |
} |
@@ -37341,7 +37039,7 @@ |
// WARNING: Do not edit - generated code. |
/// @domName WebKitCSSFilterValue |
-abstract class WebKitCSSFilterValue implements CSSValueList { |
+abstract class WebKitCSSFilterValue implements List<CSSValue> { |
static const int CSS_FILTER_BLUR = 10; |
@@ -37864,7 +37562,7 @@ |
CSSStyleDeclaration $dom_getComputedStyle(Element element, String pseudoElement); |
/** @domName DOMWindow.getMatchedCSSRules */ |
- CSSRuleList getMatchedCSSRules(Element element, String pseudoElement); |
+ List<CSSRule> getMatchedCSSRules(Element element, String pseudoElement); |
/** @domName DOMWindow.getSelection */ |
DOMSelection getSelection(); |
@@ -41367,14 +41065,11 @@ |
} |
if (e is _FileListImpl) return e; |
- if (e is FileList) { |
- throw const NotImplementedException('structured clone of FileList'); |
- } |
// TODO(sra): Firefox: How to convert _TypedImageData on the other end? |
if (e is _ImageDataImpl) return e; |
if (e is ImageData) { |
- throw const NotImplementedException('structured clone of FileList'); |
+ throw const NotImplementedException('structured clone of ImageData'); |
} |
if (e is _ArrayBufferImpl) return e; |