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

Unified Diff: lib/html/dart2js/html_dart2js.dart

Side-by-side diff isn't available for this file because of its large size.
Issue 10982053: Reapply FooList -> List<Foo> with Gamepad fix for dartium. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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 | « no previous file | lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/dart2js/html_dart2js.dart
===================================================================
--- lib/html/dart2js/html_dart2js.dart (revision 12931)
+++ 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;
@@ -9021,7 +8973,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.");
}
@@ -9190,7 +9141,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.");
}
@@ -9475,7 +9425,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.");
}
@@ -10134,7 +10083,7 @@
abstract class DirectoryReaderSync {
/** @domName DirectoryReaderSync.readEntries */
- EntryArraySync readEntries();
+ List<EntrySync> readEntries();
}
class _DirectoryReaderSyncImpl implements DirectoryReaderSync native "*DirectoryReaderSync" {
@@ -10216,7 +10165,7 @@
String selectedStylesheetSet;
/** @domName Document.styleSheets */
- abstract StyleSheetList get styleSheets;
+ abstract List<StyleSheet> get styleSheets;
/** @domName Document.title */
String title;
@@ -11460,7 +11409,7 @@
ClientRect $dom_getBoundingClientRect();
/** @domName Element.getClientRects */
- ClientRectList $dom_getClientRects();
+ List<ClientRect> $dom_getClientRects();
/** @domName Element.getElementsByClassName */
NodeList $dom_getElementsByClassName(String name);
@@ -12845,7 +12794,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.
@@ -12888,24 +12837,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];";
@@ -12972,7 +12906,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.");
}
@@ -12992,24 +12925,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];";
@@ -13076,7 +12994,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.");
}
@@ -13926,24 +13843,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];";
@@ -14010,7 +13912,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.");
}
@@ -14451,7 +14352,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.");
}
@@ -14571,7 +14471,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.");
}
@@ -14931,24 +14830,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];";
@@ -15015,7 +14899,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.");
}
@@ -15208,7 +15091,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.");
}
@@ -15319,7 +15201,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.");
}
@@ -17364,7 +17245,7 @@
bool disabled;
/** @domName HTMLInputElement.files */
- FileList files;
+ List<File> files;
/** @domName HTMLInputElement.form */
abstract FormElement get form;
@@ -17466,7 +17347,7 @@
num valueAsNumber;
/** @domName HTMLInputElement.webkitEntries */
- abstract EntryArray get webkitEntries;
+ abstract List<Entry> get webkitEntries;
/** @domName HTMLInputElement.webkitGrammar */
bool webkitGrammar;
@@ -17726,7 +17607,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.");
}
@@ -17846,7 +17726,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.");
}
@@ -17966,7 +17845,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.");
}
@@ -19205,7 +19083,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;
@@ -19223,94 +19101,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;
@@ -19535,24 +19331,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];";
@@ -19619,7 +19400,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.");
}
@@ -20607,7 +20387,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.");
}
@@ -20703,7 +20482,7 @@
bool javaEnabled();
/** @domName Navigator.webkitGetGamepads */
- GamepadList webkitGetGamepads();
+ List<Gamepad> webkitGetGamepads();
/** @domName Navigator.webkitGetUserMedia */
void webkitGetUserMedia(Map options, NavigatorUserMediaSuccessCallback successCallback, [NavigatorUserMediaErrorCallback errorCallback]);
@@ -22315,7 +22094,7 @@
abstract SessionDescription get localDescription;
/** @domName PeerConnection00.localStreams */
- abstract MediaStreamList get localStreams;
+ abstract List<MediaStream> get localStreams;
/** @domName PeerConnection00.readyState */
abstract int get readyState;
@@ -22324,7 +22103,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]);
@@ -23008,7 +22787,7 @@
abstract RTCSessionDescription get localDescription;
/** @domName RTCPeerConnection.localStreams */
- abstract MediaStreamList get localStreams;
+ abstract List<MediaStream> get localStreams;
/** @domName RTCPeerConnection.readyState */
abstract String get readyState;
@@ -23017,7 +22796,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]);
@@ -23261,7 +23040,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.");
}
@@ -23356,7 +23134,7 @@
ClientRect getBoundingClientRect();
/** @domName Range.getClientRects */
- ClientRectList getClientRects();
+ List<ClientRect> getClientRects();
/** @domName Range.insertNode */
void insertNode(Node newNode);
@@ -24262,7 +24040,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.");
}
@@ -24388,7 +24165,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.");
}
@@ -24558,7 +24334,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.");
}
@@ -25150,7 +24925,7 @@
SVGElementInstanceEvents get on;
/** @domName SVGElementInstance.childNodes */
- abstract SVGElementInstanceList get childNodes;
+ abstract List<SVGElementInstance> get childNodes;
/** @domName SVGElementInstance.correspondingElement */
abstract SVGElement get correspondingElement;
@@ -25362,24 +25137,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];";
@@ -25446,7 +25206,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.");
}
@@ -27575,7 +27334,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.");
}
@@ -28182,7 +27940,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.");
}
@@ -29158,7 +28915,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.");
}
@@ -30230,7 +29986,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.");
}
@@ -30916,7 +30671,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.");
}
@@ -31837,7 +31591,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.");
}
@@ -32022,7 +31775,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.");
}
@@ -32056,7 +31808,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" {
@@ -32085,24 +31837,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];";
@@ -32169,7 +31906,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.");
}
@@ -32355,7 +32091,7 @@
abstract SpeechRecognitionResult get result;
/** @domName SpeechRecognitionEvent.resultHistory */
- abstract SpeechRecognitionResultList get resultHistory;
+ abstract List<SpeechRecognitionResult> get resultHistory;
/** @domName SpeechRecognitionEvent.resultIndex */
abstract int get resultIndex;
@@ -32455,24 +32191,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];";
@@ -32539,7 +32260,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.");
}
@@ -32859,24 +32579,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];";
@@ -32943,7 +32648,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.");
}
@@ -33836,7 +33540,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.");
}
@@ -33998,7 +33701,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.");
}
@@ -34286,7 +33988,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.");
}
@@ -34668,7 +34369,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.");
}
@@ -34788,7 +34488,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.");
}
@@ -34908,7 +34607,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.");
}
@@ -37438,7 +37136,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;
@@ -38021,7 +37719,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();
@@ -41522,14 +41220,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;
« no previous file with comments | « no previous file | lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698