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

Side by Side Diff: sdk/lib/html/dart2js/html_dart2js.dart

Issue 11316264: Snapshotting changes for dart:html_common (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Sync to latest. Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sdk/lib/_internal/libraries.dart ('k') | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 library html; 1 library html;
2 2
3 import 'dart:html_common';
3 import 'dart:isolate'; 4 import 'dart:isolate';
4 import 'dart:json'; 5 import 'dart:json';
5 import 'dart:svg' as svg; 6 import 'dart:svg' as svg;
6 import 'dart:web_audio' as web_audio; 7 import 'dart:web_audio' as web_audio;
7 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 8 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8 // for details. All rights reserved. Use of this source code is governed by a 9 // for details. All rights reserved. Use of this source code is governed by a
9 // BSD-style license that can be found in the LICENSE file. 10 // BSD-style license that can be found in the LICENSE file.
10 11
11 // DO NOT EDIT 12 // DO NOT EDIT
12 // Auto-generated dart:html library. 13 // Auto-generated dart:html library.
(...skipping 4761 matching lines...) Expand 10 before | Expand all | Expand 10 after
4774 /// @domName Clipboard; @docsEditable true 4775 /// @domName Clipboard; @docsEditable true
4775 class Clipboard native "*Clipboard" { 4776 class Clipboard native "*Clipboard" {
4776 4777
4777 /// @domName Clipboard.dropEffect; @docsEditable true 4778 /// @domName Clipboard.dropEffect; @docsEditable true
4778 String dropEffect; 4779 String dropEffect;
4779 4780
4780 /// @domName Clipboard.effectAllowed; @docsEditable true 4781 /// @domName Clipboard.effectAllowed; @docsEditable true
4781 String effectAllowed; 4782 String effectAllowed;
4782 4783
4783 /// @domName Clipboard.files; @docsEditable true 4784 /// @domName Clipboard.files; @docsEditable true
4784 @Returns('_FileList') @Creates('_FileList') 4785 final FileList files;
4785 final List<File> files;
4786 4786
4787 /// @domName Clipboard.items; @docsEditable true 4787 /// @domName Clipboard.items; @docsEditable true
4788 final DataTransferItemList items; 4788 final DataTransferItemList items;
4789 4789
4790 /// @domName Clipboard.types; @docsEditable true 4790 /// @domName Clipboard.types; @docsEditable true
4791 final List types; 4791 final List types;
4792 4792
4793 /// @domName Clipboard.clearData; @docsEditable true 4793 /// @domName Clipboard.clearData; @docsEditable true
4794 void clearData([String type]) native; 4794 void clearData([String type]) native;
4795 4795
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
5283 } 5283 }
5284 5284
5285 void addLast(DOMMimeType value) { 5285 void addLast(DOMMimeType value) {
5286 throw new UnsupportedError("Cannot add to immutable List."); 5286 throw new UnsupportedError("Cannot add to immutable List.");
5287 } 5287 }
5288 5288
5289 void addAll(Collection<DOMMimeType> collection) { 5289 void addAll(Collection<DOMMimeType> collection) {
5290 throw new UnsupportedError("Cannot add to immutable List."); 5290 throw new UnsupportedError("Cannot add to immutable List.");
5291 } 5291 }
5292 5292
5293 bool contains(DOMMimeType element) => _Collections.contains(this, element); 5293 bool contains(DOMMimeType element) => Collections.contains(this, element);
5294 5294
5295 void forEach(void f(DOMMimeType element)) => _Collections.forEach(this, f); 5295 void forEach(void f(DOMMimeType element)) => Collections.forEach(this, f);
5296 5296
5297 Collection map(f(DOMMimeType element)) => _Collections.map(this, [], f); 5297 Collection map(f(DOMMimeType element)) => Collections.map(this, [], f);
5298 5298
5299 Collection<DOMMimeType> filter(bool f(DOMMimeType element)) => 5299 Collection<DOMMimeType> filter(bool f(DOMMimeType element)) =>
5300 _Collections.filter(this, <DOMMimeType>[], f); 5300 Collections.filter(this, <DOMMimeType>[], f);
5301 5301
5302 bool every(bool f(DOMMimeType element)) => _Collections.every(this, f); 5302 bool every(bool f(DOMMimeType element)) => Collections.every(this, f);
5303 5303
5304 bool some(bool f(DOMMimeType element)) => _Collections.some(this, f); 5304 bool some(bool f(DOMMimeType element)) => Collections.some(this, f);
5305 5305
5306 bool get isEmpty => this.length == 0; 5306 bool get isEmpty => this.length == 0;
5307 5307
5308 // From List<DOMMimeType>: 5308 // From List<DOMMimeType>:
5309 5309
5310 void sort([Comparator<DOMMimeType> compare = Comparable.compare]) { 5310 void sort([Comparator<DOMMimeType> compare = Comparable.compare]) {
5311 throw new UnsupportedError("Cannot sort immutable List."); 5311 throw new UnsupportedError("Cannot sort immutable List.");
5312 } 5312 }
5313 5313
5314 int indexOf(DOMMimeType element, [int start = 0]) => 5314 int indexOf(DOMMimeType element, [int start = 0]) =>
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
5424 } 5424 }
5425 5425
5426 void addLast(DOMPlugin value) { 5426 void addLast(DOMPlugin value) {
5427 throw new UnsupportedError("Cannot add to immutable List."); 5427 throw new UnsupportedError("Cannot add to immutable List.");
5428 } 5428 }
5429 5429
5430 void addAll(Collection<DOMPlugin> collection) { 5430 void addAll(Collection<DOMPlugin> collection) {
5431 throw new UnsupportedError("Cannot add to immutable List."); 5431 throw new UnsupportedError("Cannot add to immutable List.");
5432 } 5432 }
5433 5433
5434 bool contains(DOMPlugin element) => _Collections.contains(this, element); 5434 bool contains(DOMPlugin element) => Collections.contains(this, element);
5435 5435
5436 void forEach(void f(DOMPlugin element)) => _Collections.forEach(this, f); 5436 void forEach(void f(DOMPlugin element)) => Collections.forEach(this, f);
5437 5437
5438 Collection map(f(DOMPlugin element)) => _Collections.map(this, [], f); 5438 Collection map(f(DOMPlugin element)) => Collections.map(this, [], f);
5439 5439
5440 Collection<DOMPlugin> filter(bool f(DOMPlugin element)) => 5440 Collection<DOMPlugin> filter(bool f(DOMPlugin element)) =>
5441 _Collections.filter(this, <DOMPlugin>[], f); 5441 Collections.filter(this, <DOMPlugin>[], f);
5442 5442
5443 bool every(bool f(DOMPlugin element)) => _Collections.every(this, f); 5443 bool every(bool f(DOMPlugin element)) => Collections.every(this, f);
5444 5444
5445 bool some(bool f(DOMPlugin element)) => _Collections.some(this, f); 5445 bool some(bool f(DOMPlugin element)) => Collections.some(this, f);
5446 5446
5447 bool get isEmpty => this.length == 0; 5447 bool get isEmpty => this.length == 0;
5448 5448
5449 // From List<DOMPlugin>: 5449 // From List<DOMPlugin>:
5450 5450
5451 void sort([Comparator<DOMPlugin> compare = Comparable.compare]) { 5451 void sort([Comparator<DOMPlugin> compare = Comparable.compare]) {
5452 throw new UnsupportedError("Cannot sort immutable List."); 5452 throw new UnsupportedError("Cannot sort immutable List.");
5453 } 5453 }
5454 5454
5455 int indexOf(DOMPlugin element, [int start = 0]) => 5455 int indexOf(DOMPlugin element, [int start = 0]) =>
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
5803 /// @domName DedicatedWorkerContext; @docsEditable true 5803 /// @domName DedicatedWorkerContext; @docsEditable true
5804 class DedicatedWorkerContext extends WorkerContext native "*DedicatedWorkerConte xt" { 5804 class DedicatedWorkerContext extends WorkerContext native "*DedicatedWorkerConte xt" {
5805 5805
5806 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev entTarget.dispatchEvent; @docsEditable true 5806 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev entTarget.dispatchEvent; @docsEditable true
5807 DedicatedWorkerContextEvents get on => 5807 DedicatedWorkerContextEvents get on =>
5808 new DedicatedWorkerContextEvents(this); 5808 new DedicatedWorkerContextEvents(this);
5809 5809
5810 /// @domName DedicatedWorkerContext.postMessage; @docsEditable true 5810 /// @domName DedicatedWorkerContext.postMessage; @docsEditable true
5811 void postMessage(/*any*/ message, [List messagePorts]) { 5811 void postMessage(/*any*/ message, [List messagePorts]) {
5812 if (?messagePorts) { 5812 if (?messagePorts) {
5813 var message_1 = _convertDartToNative_SerializedScriptValue(message); 5813 var message_1 = convertDartToNative_SerializedScriptValue(message);
5814 _postMessage_1(message_1, messagePorts); 5814 _postMessage_1(message_1, messagePorts);
5815 return; 5815 return;
5816 } 5816 }
5817 var message_2 = _convertDartToNative_SerializedScriptValue(message); 5817 var message_2 = convertDartToNative_SerializedScriptValue(message);
5818 _postMessage_2(message_2); 5818 _postMessage_2(message_2);
5819 return; 5819 return;
5820 } 5820 }
5821 @JSName('postMessage') 5821 @JSName('postMessage')
5822 void _postMessage_1(message, List messagePorts) native; 5822 void _postMessage_1(message, List messagePorts) native;
5823 @JSName('postMessage') 5823 @JSName('postMessage')
5824 void _postMessage_2(message) native; 5824 void _postMessage_2(message) native;
5825 } 5825 }
5826 5826
5827 class DedicatedWorkerContextEvents extends WorkerContextEvents { 5827 class DedicatedWorkerContextEvents extends WorkerContextEvents {
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
5894 5894
5895 /// @domName DirectoryEntry; @docsEditable true 5895 /// @domName DirectoryEntry; @docsEditable true
5896 class DirectoryEntry extends Entry native "*DirectoryEntry" { 5896 class DirectoryEntry extends Entry native "*DirectoryEntry" {
5897 5897
5898 /// @domName DirectoryEntry.createReader; @docsEditable true 5898 /// @domName DirectoryEntry.createReader; @docsEditable true
5899 DirectoryReader createReader() native; 5899 DirectoryReader createReader() native;
5900 5900
5901 /// @domName DirectoryEntry.getDirectory; @docsEditable true 5901 /// @domName DirectoryEntry.getDirectory; @docsEditable true
5902 void getDirectory(String path, {Map options, EntryCallback successCallback, Er rorCallback errorCallback}) { 5902 void getDirectory(String path, {Map options, EntryCallback successCallback, Er rorCallback errorCallback}) {
5903 if (?errorCallback) { 5903 if (?errorCallback) {
5904 var options_1 = _convertDartToNative_Dictionary(options); 5904 var options_1 = convertDartToNative_Dictionary(options);
5905 _getDirectory_1(path, options_1, successCallback, errorCallback); 5905 _getDirectory_1(path, options_1, successCallback, errorCallback);
5906 return; 5906 return;
5907 } 5907 }
5908 if (?successCallback) { 5908 if (?successCallback) {
5909 var options_2 = _convertDartToNative_Dictionary(options); 5909 var options_2 = convertDartToNative_Dictionary(options);
5910 _getDirectory_2(path, options_2, successCallback); 5910 _getDirectory_2(path, options_2, successCallback);
5911 return; 5911 return;
5912 } 5912 }
5913 if (?options) { 5913 if (?options) {
5914 var options_3 = _convertDartToNative_Dictionary(options); 5914 var options_3 = convertDartToNative_Dictionary(options);
5915 _getDirectory_3(path, options_3); 5915 _getDirectory_3(path, options_3);
5916 return; 5916 return;
5917 } 5917 }
5918 _getDirectory_4(path); 5918 _getDirectory_4(path);
5919 return; 5919 return;
5920 } 5920 }
5921 @JSName('getDirectory') 5921 @JSName('getDirectory')
5922 void _getDirectory_1(path, options, EntryCallback successCallback, ErrorCallba ck errorCallback) native; 5922 void _getDirectory_1(path, options, EntryCallback successCallback, ErrorCallba ck errorCallback) native;
5923 @JSName('getDirectory') 5923 @JSName('getDirectory')
5924 void _getDirectory_2(path, options, EntryCallback successCallback) native; 5924 void _getDirectory_2(path, options, EntryCallback successCallback) native;
5925 @JSName('getDirectory') 5925 @JSName('getDirectory')
5926 void _getDirectory_3(path, options) native; 5926 void _getDirectory_3(path, options) native;
5927 @JSName('getDirectory') 5927 @JSName('getDirectory')
5928 void _getDirectory_4(path) native; 5928 void _getDirectory_4(path) native;
5929 5929
5930 /// @domName DirectoryEntry.getFile; @docsEditable true 5930 /// @domName DirectoryEntry.getFile; @docsEditable true
5931 void getFile(String path, {Map options, EntryCallback successCallback, ErrorCa llback errorCallback}) { 5931 void getFile(String path, {Map options, EntryCallback successCallback, ErrorCa llback errorCallback}) {
5932 if (?errorCallback) { 5932 if (?errorCallback) {
5933 var options_1 = _convertDartToNative_Dictionary(options); 5933 var options_1 = convertDartToNative_Dictionary(options);
5934 _getFile_1(path, options_1, successCallback, errorCallback); 5934 _getFile_1(path, options_1, successCallback, errorCallback);
5935 return; 5935 return;
5936 } 5936 }
5937 if (?successCallback) { 5937 if (?successCallback) {
5938 var options_2 = _convertDartToNative_Dictionary(options); 5938 var options_2 = convertDartToNative_Dictionary(options);
5939 _getFile_2(path, options_2, successCallback); 5939 _getFile_2(path, options_2, successCallback);
5940 return; 5940 return;
5941 } 5941 }
5942 if (?options) { 5942 if (?options) {
5943 var options_3 = _convertDartToNative_Dictionary(options); 5943 var options_3 = convertDartToNative_Dictionary(options);
5944 _getFile_3(path, options_3); 5944 _getFile_3(path, options_3);
5945 return; 5945 return;
5946 } 5946 }
5947 _getFile_4(path); 5947 _getFile_4(path);
5948 return; 5948 return;
5949 } 5949 }
5950 @JSName('getFile') 5950 @JSName('getFile')
5951 void _getFile_1(path, options, EntryCallback successCallback, ErrorCallback er rorCallback) native; 5951 void _getFile_1(path, options, EntryCallback successCallback, ErrorCallback er rorCallback) native;
5952 @JSName('getFile') 5952 @JSName('getFile')
5953 void _getFile_2(path, options, EntryCallback successCallback) native; 5953 void _getFile_2(path, options, EntryCallback successCallback) native;
(...skipping 11 matching lines...) Expand all
5965 5965
5966 5966
5967 /// @domName DirectoryEntrySync; @docsEditable true 5967 /// @domName DirectoryEntrySync; @docsEditable true
5968 class DirectoryEntrySync extends EntrySync native "*DirectoryEntrySync" { 5968 class DirectoryEntrySync extends EntrySync native "*DirectoryEntrySync" {
5969 5969
5970 /// @domName DirectoryEntrySync.createReader; @docsEditable true 5970 /// @domName DirectoryEntrySync.createReader; @docsEditable true
5971 DirectoryReaderSync createReader() native; 5971 DirectoryReaderSync createReader() native;
5972 5972
5973 /// @domName DirectoryEntrySync.getDirectory; @docsEditable true 5973 /// @domName DirectoryEntrySync.getDirectory; @docsEditable true
5974 DirectoryEntrySync getDirectory(String path, Map flags) { 5974 DirectoryEntrySync getDirectory(String path, Map flags) {
5975 var flags_1 = _convertDartToNative_Dictionary(flags); 5975 var flags_1 = convertDartToNative_Dictionary(flags);
5976 return _getDirectory_1(path, flags_1); 5976 return _getDirectory_1(path, flags_1);
5977 } 5977 }
5978 @JSName('getDirectory') 5978 @JSName('getDirectory')
5979 DirectoryEntrySync _getDirectory_1(path, flags) native; 5979 DirectoryEntrySync _getDirectory_1(path, flags) native;
5980 5980
5981 /// @domName DirectoryEntrySync.getFile; @docsEditable true 5981 /// @domName DirectoryEntrySync.getFile; @docsEditable true
5982 FileEntrySync getFile(String path, Map flags) { 5982 FileEntrySync getFile(String path, Map flags) {
5983 var flags_1 = _convertDartToNative_Dictionary(flags); 5983 var flags_1 = convertDartToNative_Dictionary(flags);
5984 return _getFile_1(path, flags_1); 5984 return _getFile_1(path, flags_1);
5985 } 5985 }
5986 @JSName('getFile') 5986 @JSName('getFile')
5987 FileEntrySync _getFile_1(path, flags) native; 5987 FileEntrySync _getFile_1(path, flags) native;
5988 5988
5989 /// @domName DirectoryEntrySync.removeRecursively; @docsEditable true 5989 /// @domName DirectoryEntrySync.removeRecursively; @docsEditable true
5990 void removeRecursively() native; 5990 void removeRecursively() native;
5991 } 5991 }
5992 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5992 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5993 // for details. All rights reserved. Use of this source code is governed by a 5993 // for details. All rights reserved. Use of this source code is governed by a
(...skipping 2218 matching lines...) Expand 10 before | Expand all | Expand 10 after
8212 final String name; 8212 final String name;
8213 8213
8214 /// @domName FileException.toString; @docsEditable true 8214 /// @domName FileException.toString; @docsEditable true
8215 String toString() native; 8215 String toString() native;
8216 } 8216 }
8217 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 8217 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8218 // for details. All rights reserved. Use of this source code is governed by a 8218 // for details. All rights reserved. Use of this source code is governed by a
8219 // BSD-style license that can be found in the LICENSE file. 8219 // BSD-style license that can be found in the LICENSE file.
8220 8220
8221 8221
8222 /// @domName FileList; @docsEditable true
8223 class FileList implements JavaScriptIndexingBehavior, List<File> native "*FileLi st" {
8224
8225 /// @domName FileList.length; @docsEditable true
8226 final int length;
8227
8228 File operator[](int index) => JS("File", "#[#]", this, index);
8229
8230 void operator[]=(int index, File value) {
8231 throw new UnsupportedError("Cannot assign element of immutable List.");
8232 }
8233 // -- start List<File> mixins.
8234 // File is the element type.
8235
8236 // From Iterable<File>:
8237
8238 Iterator<File> iterator() {
8239 // Note: NodeLists are not fixed size. And most probably length shouldn't
8240 // be cached in both iterator _and_ forEach method. For now caching it
8241 // for consistency.
8242 return new FixedSizeListIterator<File>(this);
8243 }
8244
8245 // From Collection<File>:
8246
8247 void add(File value) {
8248 throw new UnsupportedError("Cannot add to immutable List.");
8249 }
8250
8251 void addLast(File value) {
8252 throw new UnsupportedError("Cannot add to immutable List.");
8253 }
8254
8255 void addAll(Collection<File> collection) {
8256 throw new UnsupportedError("Cannot add to immutable List.");
8257 }
8258
8259 bool contains(File element) => Collections.contains(this, element);
8260
8261 void forEach(void f(File element)) => Collections.forEach(this, f);
8262
8263 Collection map(f(File element)) => Collections.map(this, [], f);
8264
8265 Collection<File> filter(bool f(File element)) =>
8266 Collections.filter(this, <File>[], f);
8267
8268 bool every(bool f(File element)) => Collections.every(this, f);
8269
8270 bool some(bool f(File element)) => Collections.some(this, f);
8271
8272 bool get isEmpty => this.length == 0;
8273
8274 // From List<File>:
8275
8276 void sort([Comparator<File> compare = Comparable.compare]) {
8277 throw new UnsupportedError("Cannot sort immutable List.");
8278 }
8279
8280 int indexOf(File element, [int start = 0]) =>
8281 _Lists.indexOf(this, element, start, this.length);
8282
8283 int lastIndexOf(File element, [int start]) {
8284 if (start == null) start = length - 1;
8285 return _Lists.lastIndexOf(this, element, start);
8286 }
8287
8288 File get first => this[0];
8289
8290 File get last => this[length - 1];
8291
8292 File removeLast() {
8293 throw new UnsupportedError("Cannot removeLast on immutable List.");
8294 }
8295
8296 void setRange(int start, int rangeLength, List<File> from, [int startFrom]) {
8297 throw new UnsupportedError("Cannot setRange on immutable List.");
8298 }
8299
8300 void removeRange(int start, int rangeLength) {
8301 throw new UnsupportedError("Cannot removeRange on immutable List.");
8302 }
8303
8304 void insertRange(int start, int rangeLength, [File initialValue]) {
8305 throw new UnsupportedError("Cannot insertRange on immutable List.");
8306 }
8307
8308 List<File> getRange(int start, int rangeLength) =>
8309 _Lists.getRange(this, start, rangeLength, <File>[]);
8310
8311 // -- end List<File> mixins.
8312
8313 /// @domName FileList.item; @docsEditable true
8314 File item(int index) native;
8315 }
8316 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8317 // for details. All rights reserved. Use of this source code is governed by a
8318 // BSD-style license that can be found in the LICENSE file.
8319
8320
8222 /// @domName FileReader; @docsEditable true 8321 /// @domName FileReader; @docsEditable true
8223 class FileReader extends EventTarget native "*FileReader" { 8322 class FileReader extends EventTarget native "*FileReader" {
8224 8323
8225 factory FileReader() => _FileReaderFactoryProvider.createFileReader(); 8324 factory FileReader() => _FileReaderFactoryProvider.createFileReader();
8226 8325
8227 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev entTarget.dispatchEvent; @docsEditable true 8326 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev entTarget.dispatchEvent; @docsEditable true
8228 FileReaderEvents get on => 8327 FileReaderEvents get on =>
8229 new FileReaderEvents(this); 8328 new FileReaderEvents(this);
8230 8329
8231 static const int DONE = 2; 8330 static const int DONE = 2;
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
8463 } 8562 }
8464 8563
8465 void addLast(num value) { 8564 void addLast(num value) {
8466 throw new UnsupportedError("Cannot add to immutable List."); 8565 throw new UnsupportedError("Cannot add to immutable List.");
8467 } 8566 }
8468 8567
8469 void addAll(Collection<num> collection) { 8568 void addAll(Collection<num> collection) {
8470 throw new UnsupportedError("Cannot add to immutable List."); 8569 throw new UnsupportedError("Cannot add to immutable List.");
8471 } 8570 }
8472 8571
8473 bool contains(num element) => _Collections.contains(this, element); 8572 bool contains(num element) => Collections.contains(this, element);
8474 8573
8475 void forEach(void f(num element)) => _Collections.forEach(this, f); 8574 void forEach(void f(num element)) => Collections.forEach(this, f);
8476 8575
8477 Collection map(f(num element)) => _Collections.map(this, [], f); 8576 Collection map(f(num element)) => Collections.map(this, [], f);
8478 8577
8479 Collection<num> filter(bool f(num element)) => 8578 Collection<num> filter(bool f(num element)) =>
8480 _Collections.filter(this, <num>[], f); 8579 Collections.filter(this, <num>[], f);
8481 8580
8482 bool every(bool f(num element)) => _Collections.every(this, f); 8581 bool every(bool f(num element)) => Collections.every(this, f);
8483 8582
8484 bool some(bool f(num element)) => _Collections.some(this, f); 8583 bool some(bool f(num element)) => Collections.some(this, f);
8485 8584
8486 bool get isEmpty => this.length == 0; 8585 bool get isEmpty => this.length == 0;
8487 8586
8488 // From List<num>: 8587 // From List<num>:
8489 8588
8490 void sort([Comparator<num> compare = Comparable.compare]) { 8589 void sort([Comparator<num> compare = Comparable.compare]) {
8491 throw new UnsupportedError("Cannot sort immutable List."); 8590 throw new UnsupportedError("Cannot sort immutable List.");
8492 } 8591 }
8493 8592
8494 int indexOf(num element, [int start = 0]) => 8593 int indexOf(num element, [int start = 0]) =>
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
8574 } 8673 }
8575 8674
8576 void addLast(num value) { 8675 void addLast(num value) {
8577 throw new UnsupportedError("Cannot add to immutable List."); 8676 throw new UnsupportedError("Cannot add to immutable List.");
8578 } 8677 }
8579 8678
8580 void addAll(Collection<num> collection) { 8679 void addAll(Collection<num> collection) {
8581 throw new UnsupportedError("Cannot add to immutable List."); 8680 throw new UnsupportedError("Cannot add to immutable List.");
8582 } 8681 }
8583 8682
8584 bool contains(num element) => _Collections.contains(this, element); 8683 bool contains(num element) => Collections.contains(this, element);
8585 8684
8586 void forEach(void f(num element)) => _Collections.forEach(this, f); 8685 void forEach(void f(num element)) => Collections.forEach(this, f);
8587 8686
8588 Collection map(f(num element)) => _Collections.map(this, [], f); 8687 Collection map(f(num element)) => Collections.map(this, [], f);
8589 8688
8590 Collection<num> filter(bool f(num element)) => 8689 Collection<num> filter(bool f(num element)) =>
8591 _Collections.filter(this, <num>[], f); 8690 Collections.filter(this, <num>[], f);
8592 8691
8593 bool every(bool f(num element)) => _Collections.every(this, f); 8692 bool every(bool f(num element)) => Collections.every(this, f);
8594 8693
8595 bool some(bool f(num element)) => _Collections.some(this, f); 8694 bool some(bool f(num element)) => Collections.some(this, f);
8596 8695
8597 bool get isEmpty => this.length == 0; 8696 bool get isEmpty => this.length == 0;
8598 8697
8599 // From List<num>: 8698 // From List<num>:
8600 8699
8601 void sort([Comparator<num> compare = Comparable.compare]) { 8700 void sort([Comparator<num> compare = Comparable.compare]) {
8602 throw new UnsupportedError("Cannot sort immutable List."); 8701 throw new UnsupportedError("Cannot sort immutable List.");
8603 } 8702 }
8604 8703
8605 int indexOf(num element, [int start = 0]) => 8704 int indexOf(num element, [int start = 0]) =>
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
8932 } 9031 }
8933 9032
8934 void addLast(Node value) { 9033 void addLast(Node value) {
8935 throw new UnsupportedError("Cannot add to immutable List."); 9034 throw new UnsupportedError("Cannot add to immutable List.");
8936 } 9035 }
8937 9036
8938 void addAll(Collection<Node> collection) { 9037 void addAll(Collection<Node> collection) {
8939 throw new UnsupportedError("Cannot add to immutable List."); 9038 throw new UnsupportedError("Cannot add to immutable List.");
8940 } 9039 }
8941 9040
8942 bool contains(Node element) => _Collections.contains(this, element); 9041 bool contains(Node element) => Collections.contains(this, element);
8943 9042
8944 void forEach(void f(Node element)) => _Collections.forEach(this, f); 9043 void forEach(void f(Node element)) => Collections.forEach(this, f);
8945 9044
8946 Collection map(f(Node element)) => _Collections.map(this, [], f); 9045 Collection map(f(Node element)) => Collections.map(this, [], f);
8947 9046
8948 Collection<Node> filter(bool f(Node element)) => 9047 Collection<Node> filter(bool f(Node element)) =>
8949 _Collections.filter(this, <Node>[], f); 9048 Collections.filter(this, <Node>[], f);
8950 9049
8951 bool every(bool f(Node element)) => _Collections.every(this, f); 9050 bool every(bool f(Node element)) => Collections.every(this, f);
8952 9051
8953 bool some(bool f(Node element)) => _Collections.some(this, f); 9052 bool some(bool f(Node element)) => Collections.some(this, f);
8954 9053
8955 bool get isEmpty => this.length == 0; 9054 bool get isEmpty => this.length == 0;
8956 9055
8957 // From List<Node>: 9056 // From List<Node>:
8958 9057
8959 void sort([Comparator<Node> compare = Comparable.compare]) { 9058 void sort([Comparator<Node> compare = Comparable.compare]) {
8960 throw new UnsupportedError("Cannot sort immutable List."); 9059 throw new UnsupportedError("Cannot sort immutable List.");
8961 } 9060 }
8962 9061
8963 int indexOf(Node element, [int start = 0]) => 9062 int indexOf(Node element, [int start = 0]) =>
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
9038 } 9137 }
9039 9138
9040 void addLast(Node value) { 9139 void addLast(Node value) {
9041 throw new UnsupportedError("Cannot add to immutable List."); 9140 throw new UnsupportedError("Cannot add to immutable List.");
9042 } 9141 }
9043 9142
9044 void addAll(Collection<Node> collection) { 9143 void addAll(Collection<Node> collection) {
9045 throw new UnsupportedError("Cannot add to immutable List."); 9144 throw new UnsupportedError("Cannot add to immutable List.");
9046 } 9145 }
9047 9146
9048 bool contains(Node element) => _Collections.contains(this, element); 9147 bool contains(Node element) => Collections.contains(this, element);
9049 9148
9050 void forEach(void f(Node element)) => _Collections.forEach(this, f); 9149 void forEach(void f(Node element)) => Collections.forEach(this, f);
9051 9150
9052 Collection map(f(Node element)) => _Collections.map(this, [], f); 9151 Collection map(f(Node element)) => Collections.map(this, [], f);
9053 9152
9054 Collection<Node> filter(bool f(Node element)) => 9153 Collection<Node> filter(bool f(Node element)) =>
9055 _Collections.filter(this, <Node>[], f); 9154 Collections.filter(this, <Node>[], f);
9056 9155
9057 bool every(bool f(Node element)) => _Collections.every(this, f); 9156 bool every(bool f(Node element)) => Collections.every(this, f);
9058 9157
9059 bool some(bool f(Node element)) => _Collections.some(this, f); 9158 bool some(bool f(Node element)) => Collections.some(this, f);
9060 9159
9061 bool get isEmpty => this.length == 0; 9160 bool get isEmpty => this.length == 0;
9062 9161
9063 // From List<Node>: 9162 // From List<Node>:
9064 9163
9065 void sort([Comparator<Node> compare = Comparable.compare]) { 9164 void sort([Comparator<Node> compare = Comparable.compare]) {
9066 throw new UnsupportedError("Cannot sort immutable List."); 9165 throw new UnsupportedError("Cannot sort immutable List.");
9067 } 9166 }
9068 9167
9069 int indexOf(Node element, [int start = 0]) => 9168 int indexOf(Node element, [int start = 0]) =>
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
9522 @JSName('continue') 9621 @JSName('continue')
9523 void _continueFunction_1(key) native; 9622 void _continueFunction_1(key) native;
9524 @JSName('continue') 9623 @JSName('continue')
9525 void _continueFunction_2() native; 9624 void _continueFunction_2() native;
9526 9625
9527 /// @domName IDBCursor.delete; @docsEditable true 9626 /// @domName IDBCursor.delete; @docsEditable true
9528 IDBRequest delete() native; 9627 IDBRequest delete() native;
9529 9628
9530 /// @domName IDBCursor.update; @docsEditable true 9629 /// @domName IDBCursor.update; @docsEditable true
9531 IDBRequest update(/*any*/ value) { 9630 IDBRequest update(/*any*/ value) {
9532 var value_1 = _convertDartToNative_SerializedScriptValue(value); 9631 var value_1 = convertDartToNative_SerializedScriptValue(value);
9533 return _update_1(value_1); 9632 return _update_1(value_1);
9534 } 9633 }
9535 @JSName('update') 9634 @JSName('update')
9536 IDBRequest _update_1(value) native; 9635 IDBRequest _update_1(value) native;
9537 } 9636 }
9538 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9637 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9539 // for details. All rights reserved. Use of this source code is governed by a 9638 // for details. All rights reserved. Use of this source code is governed by a
9540 // BSD-style license that can be found in the LICENSE file. 9639 // BSD-style license that can be found in the LICENSE file.
9541 9640
9542 9641
9543 /// @domName IDBCursorWithValue; @docsEditable true 9642 /// @domName IDBCursorWithValue; @docsEditable true
9544 class IDBCursorWithValue extends IDBCursor native "*IDBCursorWithValue" { 9643 class IDBCursorWithValue extends IDBCursor native "*IDBCursorWithValue" {
9545 9644
9546 /// @domName IDBCursorWithValue.value; @docsEditable true 9645 /// @domName IDBCursorWithValue.value; @docsEditable true
9547 @_annotation_Creates_SerializedScriptValue @_annotation_Returns_SerializedScri ptValue 9646 @annotation_Creates_SerializedScriptValue @annotation_Returns_SerializedScript Value
9548 final Object value; 9647 final Object value;
9549 } 9648 }
9550 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9649 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9551 // for details. All rights reserved. Use of this source code is governed by a 9650 // for details. All rights reserved. Use of this source code is governed by a
9552 // BSD-style license that can be found in the LICENSE file. 9651 // BSD-style license that can be found in the LICENSE file.
9553 9652
9554 9653
9555 /// @domName IDBDatabase 9654 /// @domName IDBDatabase
9556 class IDBDatabase extends EventTarget native "*IDBDatabase" { 9655 class IDBDatabase extends EventTarget native "*IDBDatabase" {
9557 9656
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
9615 /// @domName IDBDatabase.addEventListener; @docsEditable true 9714 /// @domName IDBDatabase.addEventListener; @docsEditable true
9616 @JSName('addEventListener') 9715 @JSName('addEventListener')
9617 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; 9716 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native;
9618 9717
9619 /// @domName IDBDatabase.close; @docsEditable true 9718 /// @domName IDBDatabase.close; @docsEditable true
9620 void close() native; 9719 void close() native;
9621 9720
9622 /// @domName IDBDatabase.createObjectStore; @docsEditable true 9721 /// @domName IDBDatabase.createObjectStore; @docsEditable true
9623 IDBObjectStore createObjectStore(String name, [Map options]) { 9722 IDBObjectStore createObjectStore(String name, [Map options]) {
9624 if (?options) { 9723 if (?options) {
9625 var options_1 = _convertDartToNative_Dictionary(options); 9724 var options_1 = convertDartToNative_Dictionary(options);
9626 return _createObjectStore_1(name, options_1); 9725 return _createObjectStore_1(name, options_1);
9627 } 9726 }
9628 return _createObjectStore_2(name); 9727 return _createObjectStore_2(name);
9629 } 9728 }
9630 @JSName('createObjectStore') 9729 @JSName('createObjectStore')
9631 IDBObjectStore _createObjectStore_1(name, options) native; 9730 IDBObjectStore _createObjectStore_1(name, options) native;
9632 @JSName('createObjectStore') 9731 @JSName('createObjectStore')
9633 IDBObjectStore _createObjectStore_2(name) native; 9732 IDBObjectStore _createObjectStore_2(name) native;
9634 9733
9635 /// @domName IDBDatabase.deleteObjectStore; @docsEditable true 9734 /// @domName IDBDatabase.deleteObjectStore; @docsEditable true
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
9782 if ((?key && (key is IDBKeyRange || key == null))) { 9881 if ((?key && (key is IDBKeyRange || key == null))) {
9783 return _get_1(key); 9882 return _get_1(key);
9784 } 9883 }
9785 if (?key) { 9884 if (?key) {
9786 var key_1 = _convertDartToNative_IDBKey(key); 9885 var key_1 = _convertDartToNative_IDBKey(key);
9787 return _get_2(key_1); 9886 return _get_2(key_1);
9788 } 9887 }
9789 throw new ArgumentError("Incorrect number or type of arguments"); 9888 throw new ArgumentError("Incorrect number or type of arguments");
9790 } 9889 }
9791 @JSName('get') 9890 @JSName('get')
9792 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_SerializedS criptValue 9891 @Returns('IDBRequest') @Creates('IDBRequest') @annotation_Creates_SerializedSc riptValue
9793 IDBRequest _get_1(IDBKeyRange key) native; 9892 IDBRequest _get_1(IDBKeyRange key) native;
9794 @JSName('get') 9893 @JSName('get')
9795 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_SerializedS criptValue 9894 @Returns('IDBRequest') @Creates('IDBRequest') @annotation_Creates_SerializedSc riptValue
9796 IDBRequest _get_2(key) native; 9895 IDBRequest _get_2(key) native;
9797 9896
9798 /// @domName IDBIndex.getKey; @docsEditable true 9897 /// @domName IDBIndex.getKey; @docsEditable true
9799 IDBRequest getKey(key) { 9898 IDBRequest getKey(key) {
9800 if ((?key && (key is IDBKeyRange || key == null))) { 9899 if ((?key && (key is IDBKeyRange || key == null))) {
9801 return _getKey_1(key); 9900 return _getKey_1(key);
9802 } 9901 }
9803 if (?key) { 9902 if (?key) {
9804 var key_1 = _convertDartToNative_IDBKey(key); 9903 var key_1 = _convertDartToNative_IDBKey(key);
9805 return _getKey_2(key_1); 9904 return _getKey_2(key_1);
9806 } 9905 }
9807 throw new ArgumentError("Incorrect number or type of arguments"); 9906 throw new ArgumentError("Incorrect number or type of arguments");
9808 } 9907 }
9809 @JSName('getKey') 9908 @JSName('getKey')
9810 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_SerializedS criptValue @Creates('IDBObjectStore') 9909 @Returns('IDBRequest') @Creates('IDBRequest') @annotation_Creates_SerializedSc riptValue @Creates('IDBObjectStore')
9811 IDBRequest _getKey_1(IDBKeyRange key) native; 9910 IDBRequest _getKey_1(IDBKeyRange key) native;
9812 @JSName('getKey') 9911 @JSName('getKey')
9813 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_SerializedS criptValue @Creates('IDBObjectStore') 9912 @Returns('IDBRequest') @Creates('IDBRequest') @annotation_Creates_SerializedSc riptValue @Creates('IDBObjectStore')
9814 IDBRequest _getKey_2(key) native; 9913 IDBRequest _getKey_2(key) native;
9815 9914
9816 /// @domName IDBIndex.openCursor; @docsEditable true 9915 /// @domName IDBIndex.openCursor; @docsEditable true
9817 IDBRequest openCursor([key_OR_range, String direction]) { 9916 IDBRequest openCursor([key_OR_range, String direction]) {
9818 if (!?key_OR_range && 9917 if (!?key_OR_range &&
9819 !?direction) { 9918 !?direction) {
9820 return _openCursor_1(); 9919 return _openCursor_1();
9821 } 9920 }
9822 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null)) && 9921 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null)) &&
9823 !?direction) { 9922 !?direction) {
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
10031 10130
10032 /// @domName IDBObjectStore.name; @docsEditable true 10131 /// @domName IDBObjectStore.name; @docsEditable true
10033 final String name; 10132 final String name;
10034 10133
10035 /// @domName IDBObjectStore.transaction; @docsEditable true 10134 /// @domName IDBObjectStore.transaction; @docsEditable true
10036 final IDBTransaction transaction; 10135 final IDBTransaction transaction;
10037 10136
10038 /// @domName IDBObjectStore.add; @docsEditable true 10137 /// @domName IDBObjectStore.add; @docsEditable true
10039 IDBRequest add(/*any*/ value, [/*IDBKey*/ key]) { 10138 IDBRequest add(/*any*/ value, [/*IDBKey*/ key]) {
10040 if (?key) { 10139 if (?key) {
10041 var value_1 = _convertDartToNative_SerializedScriptValue(value); 10140 var value_1 = convertDartToNative_SerializedScriptValue(value);
10042 var key_2 = _convertDartToNative_IDBKey(key); 10141 var key_2 = _convertDartToNative_IDBKey(key);
10043 return _add_1(value_1, key_2); 10142 return _add_1(value_1, key_2);
10044 } 10143 }
10045 var value_3 = _convertDartToNative_SerializedScriptValue(value); 10144 var value_3 = convertDartToNative_SerializedScriptValue(value);
10046 return _add_2(value_3); 10145 return _add_2(value_3);
10047 } 10146 }
10048 @JSName('add') 10147 @JSName('add')
10049 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_IDBKey 10148 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_IDBKey
10050 IDBRequest _add_1(value, key) native; 10149 IDBRequest _add_1(value, key) native;
10051 @JSName('add') 10150 @JSName('add')
10052 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_IDBKey 10151 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_IDBKey
10053 IDBRequest _add_2(value) native; 10152 IDBRequest _add_2(value) native;
10054 10153
10055 /// @domName IDBObjectStore.clear; @docsEditable true 10154 /// @domName IDBObjectStore.clear; @docsEditable true
(...skipping 17 matching lines...) Expand all
10073 IDBRequest _count_1() native; 10172 IDBRequest _count_1() native;
10074 @JSName('count') 10173 @JSName('count')
10075 IDBRequest _count_2(IDBKeyRange range) native; 10174 IDBRequest _count_2(IDBKeyRange range) native;
10076 @JSName('count') 10175 @JSName('count')
10077 IDBRequest _count_3(key) native; 10176 IDBRequest _count_3(key) native;
10078 10177
10079 /// @domName IDBObjectStore.createIndex; @docsEditable true 10178 /// @domName IDBObjectStore.createIndex; @docsEditable true
10080 IDBIndex createIndex(String name, keyPath, [Map options]) { 10179 IDBIndex createIndex(String name, keyPath, [Map options]) {
10081 if ((?keyPath && (keyPath is List<String> || keyPath == null)) && 10180 if ((?keyPath && (keyPath is List<String> || keyPath == null)) &&
10082 !?options) { 10181 !?options) {
10083 List keyPath_1 = _convertDartToNative_StringArray(keyPath); 10182 List keyPath_1 = convertDartToNative_StringArray(keyPath);
10084 return _createIndex_1(name, keyPath_1); 10183 return _createIndex_1(name, keyPath_1);
10085 } 10184 }
10086 if ((?keyPath && (keyPath is List<String> || keyPath == null))) { 10185 if ((?keyPath && (keyPath is List<String> || keyPath == null))) {
10087 List keyPath_2 = _convertDartToNative_StringArray(keyPath); 10186 List keyPath_2 = convertDartToNative_StringArray(keyPath);
10088 var options_3 = _convertDartToNative_Dictionary(options); 10187 var options_3 = convertDartToNative_Dictionary(options);
10089 return _createIndex_2(name, keyPath_2, options_3); 10188 return _createIndex_2(name, keyPath_2, options_3);
10090 } 10189 }
10091 if ((?keyPath && (keyPath is String || keyPath == null)) && 10190 if ((?keyPath && (keyPath is String || keyPath == null)) &&
10092 !?options) { 10191 !?options) {
10093 return _createIndex_3(name, keyPath); 10192 return _createIndex_3(name, keyPath);
10094 } 10193 }
10095 if ((?keyPath && (keyPath is String || keyPath == null))) { 10194 if ((?keyPath && (keyPath is String || keyPath == null))) {
10096 var options_4 = _convertDartToNative_Dictionary(options); 10195 var options_4 = convertDartToNative_Dictionary(options);
10097 return _createIndex_4(name, keyPath, options_4); 10196 return _createIndex_4(name, keyPath, options_4);
10098 } 10197 }
10099 throw new ArgumentError("Incorrect number or type of arguments"); 10198 throw new ArgumentError("Incorrect number or type of arguments");
10100 } 10199 }
10101 @JSName('createIndex') 10200 @JSName('createIndex')
10102 IDBIndex _createIndex_1(name, List keyPath) native; 10201 IDBIndex _createIndex_1(name, List keyPath) native;
10103 @JSName('createIndex') 10202 @JSName('createIndex')
10104 IDBIndex _createIndex_2(name, List keyPath, options) native; 10203 IDBIndex _createIndex_2(name, List keyPath, options) native;
10105 @JSName('createIndex') 10204 @JSName('createIndex')
10106 IDBIndex _createIndex_3(name, String keyPath) native; 10205 IDBIndex _createIndex_3(name, String keyPath) native;
(...skipping 24 matching lines...) Expand all
10131 if ((?key && (key is IDBKeyRange || key == null))) { 10230 if ((?key && (key is IDBKeyRange || key == null))) {
10132 return _getObject_1(key); 10231 return _getObject_1(key);
10133 } 10232 }
10134 if (?key) { 10233 if (?key) {
10135 var key_1 = _convertDartToNative_IDBKey(key); 10234 var key_1 = _convertDartToNative_IDBKey(key);
10136 return _getObject_2(key_1); 10235 return _getObject_2(key_1);
10137 } 10236 }
10138 throw new ArgumentError("Incorrect number or type of arguments"); 10237 throw new ArgumentError("Incorrect number or type of arguments");
10139 } 10238 }
10140 @JSName('get') 10239 @JSName('get')
10141 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_SerializedS criptValue 10240 @Returns('IDBRequest') @Creates('IDBRequest') @annotation_Creates_SerializedSc riptValue
10142 IDBRequest _getObject_1(IDBKeyRange key) native; 10241 IDBRequest _getObject_1(IDBKeyRange key) native;
10143 @JSName('get') 10242 @JSName('get')
10144 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_SerializedS criptValue 10243 @Returns('IDBRequest') @Creates('IDBRequest') @annotation_Creates_SerializedSc riptValue
10145 IDBRequest _getObject_2(key) native; 10244 IDBRequest _getObject_2(key) native;
10146 10245
10147 /// @domName IDBObjectStore.index; @docsEditable true 10246 /// @domName IDBObjectStore.index; @docsEditable true
10148 IDBIndex index(String name) native; 10247 IDBIndex index(String name) native;
10149 10248
10150 /// @domName IDBObjectStore.openCursor; @docsEditable true 10249 /// @domName IDBObjectStore.openCursor; @docsEditable true
10151 IDBRequest openCursor([key_OR_range, String direction]) { 10250 IDBRequest openCursor([key_OR_range, String direction]) {
10152 if (!?key_OR_range && 10251 if (!?key_OR_range &&
10153 !?direction) { 10252 !?direction) {
10154 return _openCursor_1(); 10253 return _openCursor_1();
(...skipping 28 matching lines...) Expand all
10183 @JSName('openCursor') 10282 @JSName('openCursor')
10184 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') 10283 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor')
10185 IDBRequest _openCursor_4(key) native; 10284 IDBRequest _openCursor_4(key) native;
10186 @JSName('openCursor') 10285 @JSName('openCursor')
10187 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') 10286 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor')
10188 IDBRequest _openCursor_5(key, direction) native; 10287 IDBRequest _openCursor_5(key, direction) native;
10189 10288
10190 /// @domName IDBObjectStore.put; @docsEditable true 10289 /// @domName IDBObjectStore.put; @docsEditable true
10191 IDBRequest put(/*any*/ value, [/*IDBKey*/ key]) { 10290 IDBRequest put(/*any*/ value, [/*IDBKey*/ key]) {
10192 if (?key) { 10291 if (?key) {
10193 var value_1 = _convertDartToNative_SerializedScriptValue(value); 10292 var value_1 = convertDartToNative_SerializedScriptValue(value);
10194 var key_2 = _convertDartToNative_IDBKey(key); 10293 var key_2 = _convertDartToNative_IDBKey(key);
10195 return _put_1(value_1, key_2); 10294 return _put_1(value_1, key_2);
10196 } 10295 }
10197 var value_3 = _convertDartToNative_SerializedScriptValue(value); 10296 var value_3 = convertDartToNative_SerializedScriptValue(value);
10198 return _put_2(value_3); 10297 return _put_2(value_3);
10199 } 10298 }
10200 @JSName('put') 10299 @JSName('put')
10201 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_IDBKey 10300 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_IDBKey
10202 IDBRequest _put_1(value, key) native; 10301 IDBRequest _put_1(value, key) native;
10203 @JSName('put') 10302 @JSName('put')
10204 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_IDBKey 10303 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_IDBKey
10205 IDBRequest _put_2(value) native; 10304 IDBRequest _put_2(value) native;
10206 } 10305 }
10207 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10306 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
10587 /// @domName HTMLInputElement.defaultValue; @docsEditable true 10686 /// @domName HTMLInputElement.defaultValue; @docsEditable true
10588 String defaultValue; 10687 String defaultValue;
10589 10688
10590 /// @domName HTMLInputElement.dirName; @docsEditable true 10689 /// @domName HTMLInputElement.dirName; @docsEditable true
10591 String dirName; 10690 String dirName;
10592 10691
10593 /// @domName HTMLInputElement.disabled; @docsEditable true 10692 /// @domName HTMLInputElement.disabled; @docsEditable true
10594 bool disabled; 10693 bool disabled;
10595 10694
10596 /// @domName HTMLInputElement.files; @docsEditable true 10695 /// @domName HTMLInputElement.files; @docsEditable true
10597 @Returns('_FileList') @Creates('_FileList') 10696 FileList files;
10598 List<File> files;
10599 10697
10600 /// @domName HTMLInputElement.form; @docsEditable true 10698 /// @domName HTMLInputElement.form; @docsEditable true
10601 final FormElement form; 10699 final FormElement form;
10602 10700
10603 /// @domName HTMLInputElement.formAction; @docsEditable true 10701 /// @domName HTMLInputElement.formAction; @docsEditable true
10604 String formAction; 10702 String formAction;
10605 10703
10606 /// @domName HTMLInputElement.formEnctype; @docsEditable true 10704 /// @domName HTMLInputElement.formEnctype; @docsEditable true
10607 String formEnctype; 10705 String formEnctype;
10608 10706
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
10786 } 10884 }
10787 10885
10788 void addLast(int value) { 10886 void addLast(int value) {
10789 throw new UnsupportedError("Cannot add to immutable List."); 10887 throw new UnsupportedError("Cannot add to immutable List.");
10790 } 10888 }
10791 10889
10792 void addAll(Collection<int> collection) { 10890 void addAll(Collection<int> collection) {
10793 throw new UnsupportedError("Cannot add to immutable List."); 10891 throw new UnsupportedError("Cannot add to immutable List.");
10794 } 10892 }
10795 10893
10796 bool contains(int element) => _Collections.contains(this, element); 10894 bool contains(int element) => Collections.contains(this, element);
10797 10895
10798 void forEach(void f(int element)) => _Collections.forEach(this, f); 10896 void forEach(void f(int element)) => Collections.forEach(this, f);
10799 10897
10800 Collection map(f(int element)) => _Collections.map(this, [], f); 10898 Collection map(f(int element)) => Collections.map(this, [], f);
10801 10899
10802 Collection<int> filter(bool f(int element)) => 10900 Collection<int> filter(bool f(int element)) =>
10803 _Collections.filter(this, <int>[], f); 10901 Collections.filter(this, <int>[], f);
10804 10902
10805 bool every(bool f(int element)) => _Collections.every(this, f); 10903 bool every(bool f(int element)) => Collections.every(this, f);
10806 10904
10807 bool some(bool f(int element)) => _Collections.some(this, f); 10905 bool some(bool f(int element)) => Collections.some(this, f);
10808 10906
10809 bool get isEmpty => this.length == 0; 10907 bool get isEmpty => this.length == 0;
10810 10908
10811 // From List<int>: 10909 // From List<int>:
10812 10910
10813 void sort([Comparator<int> compare = Comparable.compare]) { 10911 void sort([Comparator<int> compare = Comparable.compare]) {
10814 throw new UnsupportedError("Cannot sort immutable List."); 10912 throw new UnsupportedError("Cannot sort immutable List.");
10815 } 10913 }
10816 10914
10817 int indexOf(int element, [int start = 0]) => 10915 int indexOf(int element, [int start = 0]) =>
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
10897 } 10995 }
10898 10996
10899 void addLast(int value) { 10997 void addLast(int value) {
10900 throw new UnsupportedError("Cannot add to immutable List."); 10998 throw new UnsupportedError("Cannot add to immutable List.");
10901 } 10999 }
10902 11000
10903 void addAll(Collection<int> collection) { 11001 void addAll(Collection<int> collection) {
10904 throw new UnsupportedError("Cannot add to immutable List."); 11002 throw new UnsupportedError("Cannot add to immutable List.");
10905 } 11003 }
10906 11004
10907 bool contains(int element) => _Collections.contains(this, element); 11005 bool contains(int element) => Collections.contains(this, element);
10908 11006
10909 void forEach(void f(int element)) => _Collections.forEach(this, f); 11007 void forEach(void f(int element)) => Collections.forEach(this, f);
10910 11008
10911 Collection map(f(int element)) => _Collections.map(this, [], f); 11009 Collection map(f(int element)) => Collections.map(this, [], f);
10912 11010
10913 Collection<int> filter(bool f(int element)) => 11011 Collection<int> filter(bool f(int element)) =>
10914 _Collections.filter(this, <int>[], f); 11012 Collections.filter(this, <int>[], f);
10915 11013
10916 bool every(bool f(int element)) => _Collections.every(this, f); 11014 bool every(bool f(int element)) => Collections.every(this, f);
10917 11015
10918 bool some(bool f(int element)) => _Collections.some(this, f); 11016 bool some(bool f(int element)) => Collections.some(this, f);
10919 11017
10920 bool get isEmpty => this.length == 0; 11018 bool get isEmpty => this.length == 0;
10921 11019
10922 // From List<int>: 11020 // From List<int>:
10923 11021
10924 void sort([Comparator<int> compare = Comparable.compare]) { 11022 void sort([Comparator<int> compare = Comparable.compare]) {
10925 throw new UnsupportedError("Cannot sort immutable List."); 11023 throw new UnsupportedError("Cannot sort immutable List.");
10926 } 11024 }
10927 11025
10928 int indexOf(int element, [int start = 0]) => 11026 int indexOf(int element, [int start = 0]) =>
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
11008 } 11106 }
11009 11107
11010 void addLast(int value) { 11108 void addLast(int value) {
11011 throw new UnsupportedError("Cannot add to immutable List."); 11109 throw new UnsupportedError("Cannot add to immutable List.");
11012 } 11110 }
11013 11111
11014 void addAll(Collection<int> collection) { 11112 void addAll(Collection<int> collection) {
11015 throw new UnsupportedError("Cannot add to immutable List."); 11113 throw new UnsupportedError("Cannot add to immutable List.");
11016 } 11114 }
11017 11115
11018 bool contains(int element) => _Collections.contains(this, element); 11116 bool contains(int element) => Collections.contains(this, element);
11019 11117
11020 void forEach(void f(int element)) => _Collections.forEach(this, f); 11118 void forEach(void f(int element)) => Collections.forEach(this, f);
11021 11119
11022 Collection map(f(int element)) => _Collections.map(this, [], f); 11120 Collection map(f(int element)) => Collections.map(this, [], f);
11023 11121
11024 Collection<int> filter(bool f(int element)) => 11122 Collection<int> filter(bool f(int element)) =>
11025 _Collections.filter(this, <int>[], f); 11123 Collections.filter(this, <int>[], f);
11026 11124
11027 bool every(bool f(int element)) => _Collections.every(this, f); 11125 bool every(bool f(int element)) => Collections.every(this, f);
11028 11126
11029 bool some(bool f(int element)) => _Collections.some(this, f); 11127 bool some(bool f(int element)) => Collections.some(this, f);
11030 11128
11031 bool get isEmpty => this.length == 0; 11129 bool get isEmpty => this.length == 0;
11032 11130
11033 // From List<int>: 11131 // From List<int>:
11034 11132
11035 void sort([Comparator<int> compare = Comparable.compare]) { 11133 void sort([Comparator<int> compare = Comparable.compare]) {
11036 throw new UnsupportedError("Cannot sort immutable List."); 11134 throw new UnsupportedError("Cannot sort immutable List.");
11037 } 11135 }
11038 11136
11039 int indexOf(int element, [int start = 0]) => 11137 int indexOf(int element, [int start = 0]) =>
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
11339 11437
11340 /// @domName History; @docsEditable true 11438 /// @domName History; @docsEditable true
11341 class LocalHistory implements History native "*History" { 11439 class LocalHistory implements History native "*History" {
11342 11440
11343 /// @domName History.length; @docsEditable true 11441 /// @domName History.length; @docsEditable true
11344 final int length; 11442 final int length;
11345 11443
11346 /// @domName History.state; @docsEditable true 11444 /// @domName History.state; @docsEditable true
11347 dynamic get state => _convertNativeToDart_SerializedScriptValue(this._state); 11445 dynamic get state => _convertNativeToDart_SerializedScriptValue(this._state);
11348 @JSName('state') 11446 @JSName('state')
11349 @_annotation_Creates_SerializedScriptValue @_annotation_Returns_SerializedScri ptValue 11447 @annotation_Creates_SerializedScriptValue @annotation_Returns_SerializedScript Value
11350 final dynamic _state; 11448 final dynamic _state;
11351 11449
11352 /// @domName History.back; @docsEditable true 11450 /// @domName History.back; @docsEditable true
11353 void back() native; 11451 void back() native;
11354 11452
11355 /// @domName History.forward; @docsEditable true 11453 /// @domName History.forward; @docsEditable true
11356 void forward() native; 11454 void forward() native;
11357 11455
11358 /// @domName History.go; @docsEditable true 11456 /// @domName History.go; @docsEditable true
11359 void go(int distance) native; 11457 void go(int distance) native;
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
11790 void moveTo(num x, num y) native; 11888 void moveTo(num x, num y) native;
11791 11889
11792 /// @domName DOMWindow.openDatabase; @docsEditable true 11890 /// @domName DOMWindow.openDatabase; @docsEditable true
11793 @Creates('Database') @Creates('DatabaseSync') 11891 @Creates('Database') @Creates('DatabaseSync')
11794 Database openDatabase(String name, String version, String displayName, int est imatedSize, [DatabaseCallback creationCallback]) native; 11892 Database openDatabase(String name, String version, String displayName, int est imatedSize, [DatabaseCallback creationCallback]) native;
11795 11893
11796 /// @domName Window.postMessage; @docsEditable true 11894 /// @domName Window.postMessage; @docsEditable true
11797 void postMessage(/*SerializedScriptValue*/ message, String targetOrigin, [List messagePorts]) { 11895 void postMessage(/*SerializedScriptValue*/ message, String targetOrigin, [List messagePorts]) {
11798 if (?message && 11896 if (?message &&
11799 !?messagePorts) { 11897 !?messagePorts) {
11800 var message_1 = _convertDartToNative_SerializedScriptValue(message); 11898 var message_1 = convertDartToNative_SerializedScriptValue(message);
11801 _postMessage_1(message_1, targetOrigin); 11899 _postMessage_1(message_1, targetOrigin);
11802 return; 11900 return;
11803 } 11901 }
11804 if (?message) { 11902 if (?message) {
11805 var message_2 = _convertDartToNative_SerializedScriptValue(message); 11903 var message_2 = convertDartToNative_SerializedScriptValue(message);
11806 _postMessage_2(message_2, targetOrigin, messagePorts); 11904 _postMessage_2(message_2, targetOrigin, messagePorts);
11807 return; 11905 return;
11808 } 11906 }
11809 throw new ArgumentError("Incorrect number or type of arguments"); 11907 throw new ArgumentError("Incorrect number or type of arguments");
11810 } 11908 }
11811 @JSName('postMessage') 11909 @JSName('postMessage')
11812 void _postMessage_1(message, targetOrigin) native; 11910 void _postMessage_1(message, targetOrigin) native;
11813 @JSName('postMessage') 11911 @JSName('postMessage')
11814 void _postMessage_2(message, targetOrigin, List messagePorts) native; 11912 void _postMessage_2(message, targetOrigin, List messagePorts) native;
11815 11913
(...skipping 915 matching lines...) Expand 10 before | Expand all | Expand 10 after
12731 } 12829 }
12732 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12830 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12733 // for details. All rights reserved. Use of this source code is governed by a 12831 // for details. All rights reserved. Use of this source code is governed by a
12734 // BSD-style license that can be found in the LICENSE file. 12832 // BSD-style license that can be found in the LICENSE file.
12735 12833
12736 12834
12737 /// @domName MessageEvent; @docsEditable true 12835 /// @domName MessageEvent; @docsEditable true
12738 class MessageEvent extends Event native "*MessageEvent" { 12836 class MessageEvent extends Event native "*MessageEvent" {
12739 12837
12740 /// @domName MessageEvent.data; @docsEditable true 12838 /// @domName MessageEvent.data; @docsEditable true
12741 dynamic get data => _convertNativeToDart_SerializedScriptValue(this._data); 12839 dynamic get data => convertNativeToDart_SerializedScriptValue(this._data);
12742 @JSName('data') 12840 @JSName('data')
12743 @_annotation_Creates_SerializedScriptValue @_annotation_Returns_SerializedScri ptValue 12841 @annotation_Creates_SerializedScriptValue @annotation_Returns_SerializedScript Value
12744 final dynamic _data; 12842 final dynamic _data;
12745 12843
12746 /// @domName MessageEvent.lastEventId; @docsEditable true 12844 /// @domName MessageEvent.lastEventId; @docsEditable true
12747 final String lastEventId; 12845 final String lastEventId;
12748 12846
12749 /// @domName MessageEvent.origin; @docsEditable true 12847 /// @domName MessageEvent.origin; @docsEditable true
12750 final String origin; 12848 final String origin;
12751 12849
12752 /// @domName MessageEvent.ports; @docsEditable true 12850 /// @domName MessageEvent.ports; @docsEditable true
12753 @Creates('=List') 12851 @Creates('=List')
(...skipping 30 matching lines...) Expand all
12784 /// @domName MessagePort.close; @docsEditable true 12882 /// @domName MessagePort.close; @docsEditable true
12785 void close() native; 12883 void close() native;
12786 12884
12787 /// @domName MessagePort.dispatchEvent; @docsEditable true 12885 /// @domName MessagePort.dispatchEvent; @docsEditable true
12788 @JSName('dispatchEvent') 12886 @JSName('dispatchEvent')
12789 bool $dom_dispatchEvent(Event evt) native; 12887 bool $dom_dispatchEvent(Event evt) native;
12790 12888
12791 /// @domName MessagePort.postMessage; @docsEditable true 12889 /// @domName MessagePort.postMessage; @docsEditable true
12792 void postMessage(/*any*/ message, [List messagePorts]) { 12890 void postMessage(/*any*/ message, [List messagePorts]) {
12793 if (?messagePorts) { 12891 if (?messagePorts) {
12794 var message_1 = _convertDartToNative_SerializedScriptValue(message); 12892 var message_1 = convertDartToNative_SerializedScriptValue(message);
12795 _postMessage_1(message_1, messagePorts); 12893 _postMessage_1(message_1, messagePorts);
12796 return; 12894 return;
12797 } 12895 }
12798 var message_2 = _convertDartToNative_SerializedScriptValue(message); 12896 var message_2 = convertDartToNative_SerializedScriptValue(message);
12799 _postMessage_2(message_2); 12897 _postMessage_2(message_2);
12800 return; 12898 return;
12801 } 12899 }
12802 @JSName('postMessage') 12900 @JSName('postMessage')
12803 void _postMessage_1(message, List messagePorts) native; 12901 void _postMessage_1(message, List messagePorts) native;
12804 @JSName('postMessage') 12902 @JSName('postMessage')
12805 void _postMessage_2(message) native; 12903 void _postMessage_2(message) native;
12806 12904
12807 /// @domName MessagePort.removeEventListener; @docsEditable true 12905 /// @domName MessagePort.removeEventListener; @docsEditable true
12808 @JSName('removeEventListener') 12906 @JSName('removeEventListener')
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
13063 /// @domName MutationObserver 13161 /// @domName MutationObserver
13064 class MutationObserver native "*MutationObserver" { 13162 class MutationObserver native "*MutationObserver" {
13065 13163
13066 factory MutationObserver(MutationCallback callback) => _MutationObserverFactor yProvider.createMutationObserver(callback); 13164 factory MutationObserver(MutationCallback callback) => _MutationObserverFactor yProvider.createMutationObserver(callback);
13067 13165
13068 /// @domName MutationObserver.disconnect; @docsEditable true 13166 /// @domName MutationObserver.disconnect; @docsEditable true
13069 void disconnect() native; 13167 void disconnect() native;
13070 13168
13071 /// @domName MutationObserver._observe; @docsEditable true 13169 /// @domName MutationObserver._observe; @docsEditable true
13072 void _observe(Node target, Map options) { 13170 void _observe(Node target, Map options) {
13073 var options_1 = _convertDartToNative_Dictionary(options); 13171 var options_1 = convertDartToNative_Dictionary(options);
13074 __observe_1(target, options_1); 13172 __observe_1(target, options_1);
13075 return; 13173 return;
13076 } 13174 }
13077 @JSName('observe') 13175 @JSName('observe')
13078 void __observe_1(Node target, options) native; 13176 void __observe_1(Node target, options) native;
13079 13177
13080 /// @domName MutationObserver.takeRecords; @docsEditable true 13178 /// @domName MutationObserver.takeRecords; @docsEditable true
13081 List<MutationRecord> takeRecords() native; 13179 List<MutationRecord> takeRecords() native;
13082 13180
13083 void observe(Node target, 13181 void observe(Node target,
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
13214 } 13312 }
13215 13313
13216 void addLast(Node value) { 13314 void addLast(Node value) {
13217 throw new UnsupportedError("Cannot add to immutable List."); 13315 throw new UnsupportedError("Cannot add to immutable List.");
13218 } 13316 }
13219 13317
13220 void addAll(Collection<Node> collection) { 13318 void addAll(Collection<Node> collection) {
13221 throw new UnsupportedError("Cannot add to immutable List."); 13319 throw new UnsupportedError("Cannot add to immutable List.");
13222 } 13320 }
13223 13321
13224 bool contains(Node element) => _Collections.contains(this, element); 13322 bool contains(Node element) => Collections.contains(this, element);
13225 13323
13226 void forEach(void f(Node element)) => _Collections.forEach(this, f); 13324 void forEach(void f(Node element)) => Collections.forEach(this, f);
13227 13325
13228 Collection map(f(Node element)) => _Collections.map(this, [], f); 13326 Collection map(f(Node element)) => Collections.map(this, [], f);
13229 13327
13230 Collection<Node> filter(bool f(Node element)) => 13328 Collection<Node> filter(bool f(Node element)) =>
13231 _Collections.filter(this, <Node>[], f); 13329 Collections.filter(this, <Node>[], f);
13232 13330
13233 bool every(bool f(Node element)) => _Collections.every(this, f); 13331 bool every(bool f(Node element)) => Collections.every(this, f);
13234 13332
13235 bool some(bool f(Node element)) => _Collections.some(this, f); 13333 bool some(bool f(Node element)) => Collections.some(this, f);
13236 13334
13237 bool get isEmpty => this.length == 0; 13335 bool get isEmpty => this.length == 0;
13238 13336
13239 // From List<Node>: 13337 // From List<Node>:
13240 13338
13241 void sort([Comparator<Node> compare = Comparable.compare]) { 13339 void sort([Comparator<Node> compare = Comparable.compare]) {
13242 throw new UnsupportedError("Cannot sort immutable List."); 13340 throw new UnsupportedError("Cannot sort immutable List.");
13243 } 13341 }
13244 13342
13245 int indexOf(Node element, [int start = 0]) => 13343 int indexOf(Node element, [int start = 0]) =>
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
13358 /// @domName Navigator.javaEnabled; @docsEditable true 13456 /// @domName Navigator.javaEnabled; @docsEditable true
13359 bool javaEnabled() native; 13457 bool javaEnabled() native;
13360 13458
13361 /// @domName Navigator.webkitGetGamepads; @docsEditable true 13459 /// @domName Navigator.webkitGetGamepads; @docsEditable true
13362 @Returns('_GamepadList') @Creates('_GamepadList') 13460 @Returns('_GamepadList') @Creates('_GamepadList')
13363 List<Gamepad> webkitGetGamepads() native; 13461 List<Gamepad> webkitGetGamepads() native;
13364 13462
13365 /// @domName Navigator.webkitGetUserMedia; @docsEditable true 13463 /// @domName Navigator.webkitGetUserMedia; @docsEditable true
13366 void webkitGetUserMedia(Map options, NavigatorUserMediaSuccessCallback success Callback, [NavigatorUserMediaErrorCallback errorCallback]) { 13464 void webkitGetUserMedia(Map options, NavigatorUserMediaSuccessCallback success Callback, [NavigatorUserMediaErrorCallback errorCallback]) {
13367 if (?errorCallback) { 13465 if (?errorCallback) {
13368 var options_1 = _convertDartToNative_Dictionary(options); 13466 var options_1 = convertDartToNative_Dictionary(options);
13369 _webkitGetUserMedia_1(options_1, successCallback, errorCallback); 13467 _webkitGetUserMedia_1(options_1, successCallback, errorCallback);
13370 return; 13468 return;
13371 } 13469 }
13372 var options_2 = _convertDartToNative_Dictionary(options); 13470 var options_2 = convertDartToNative_Dictionary(options);
13373 _webkitGetUserMedia_2(options_2, successCallback); 13471 _webkitGetUserMedia_2(options_2, successCallback);
13374 return; 13472 return;
13375 } 13473 }
13376 @JSName('webkitGetUserMedia') 13474 @JSName('webkitGetUserMedia')
13377 void _webkitGetUserMedia_1(options, NavigatorUserMediaSuccessCallback successC allback, NavigatorUserMediaErrorCallback errorCallback) native; 13475 void _webkitGetUserMedia_1(options, NavigatorUserMediaSuccessCallback successC allback, NavigatorUserMediaErrorCallback errorCallback) native;
13378 @JSName('webkitGetUserMedia') 13476 @JSName('webkitGetUserMedia')
13379 void _webkitGetUserMedia_2(options, NavigatorUserMediaSuccessCallback successC allback) native; 13477 void _webkitGetUserMedia_2(options, NavigatorUserMediaSuccessCallback successC allback) native;
13380 } 13478 }
13381 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13479 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13382 // for details. All rights reserved. Use of this source code is governed by a 13480 // for details. All rights reserved. Use of this source code is governed by a
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
13454 } 13552 }
13455 13553
13456 void operator []=(int index, Node value) { 13554 void operator []=(int index, Node value) {
13457 _this.$dom_replaceChild(value, this[index]); 13555 _this.$dom_replaceChild(value, this[index]);
13458 } 13556 }
13459 13557
13460 Iterator<Node> iterator() => _this.$dom_childNodes.iterator(); 13558 Iterator<Node> iterator() => _this.$dom_childNodes.iterator();
13461 13559
13462 // TODO(jacobr): We can implement these methods much more efficiently by 13560 // TODO(jacobr): We can implement these methods much more efficiently by
13463 // looking up the nodeList only once instead of once per iteration. 13561 // looking up the nodeList only once instead of once per iteration.
13464 bool contains(Node element) => _Collections.contains(this, element); 13562 bool contains(Node element) => Collections.contains(this, element);
13465 13563
13466 void forEach(void f(Node element)) => _Collections.forEach(this, f); 13564 void forEach(void f(Node element)) => Collections.forEach(this, f);
13467 13565
13468 Collection map(f(Node element)) => _Collections.map(this, [], f); 13566 Collection map(f(Node element)) => Collections.map(this, [], f);
13469 13567
13470 Collection<Node> filter(bool f(Node element)) => 13568 Collection<Node> filter(bool f(Node element)) =>
13471 _Collections.filter(this, <Node>[], f); 13569 Collections.filter(this, <Node>[], f);
13472 13570
13473 bool every(bool f(Node element)) => _Collections.every(this, f); 13571 bool every(bool f(Node element)) => Collections.every(this, f);
13474 13572
13475 bool some(bool f(Node element)) => _Collections.some(this, f); 13573 bool some(bool f(Node element)) => Collections.some(this, f);
13476 13574
13477 bool get isEmpty => this.length == 0; 13575 bool get isEmpty => this.length == 0;
13478 13576
13479 // From List<Node>: 13577 // From List<Node>:
13480 13578
13481 // TODO(jacobr): this could be implemented for child node lists. 13579 // TODO(jacobr): this could be implemented for child node lists.
13482 // The exception we throw here is misleading. 13580 // The exception we throw here is misleading.
13483 void sort([Comparator<Node> compare = Comparable.compare]) { 13581 void sort([Comparator<Node> compare = Comparable.compare]) {
13484 throw new UnsupportedError("Cannot sort immutable List."); 13582 throw new UnsupportedError("Cannot sort immutable List.");
13485 } 13583 }
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
13794 } 13892 }
13795 13893
13796 void addLast(Node value) { 13894 void addLast(Node value) {
13797 throw new UnsupportedError("Cannot add to immutable List."); 13895 throw new UnsupportedError("Cannot add to immutable List.");
13798 } 13896 }
13799 13897
13800 void addAll(Collection<Node> collection) { 13898 void addAll(Collection<Node> collection) {
13801 throw new UnsupportedError("Cannot add to immutable List."); 13899 throw new UnsupportedError("Cannot add to immutable List.");
13802 } 13900 }
13803 13901
13804 bool contains(Node element) => _Collections.contains(this, element); 13902 bool contains(Node element) => Collections.contains(this, element);
13805 13903
13806 void forEach(void f(Node element)) => _Collections.forEach(this, f); 13904 void forEach(void f(Node element)) => Collections.forEach(this, f);
13807 13905
13808 Collection map(f(Node element)) => _Collections.map(this, [], f); 13906 Collection map(f(Node element)) => Collections.map(this, [], f);
13809 13907
13810 Collection<Node> filter(bool f(Node element)) => 13908 Collection<Node> filter(bool f(Node element)) =>
13811 _Collections.filter(this, <Node>[], f); 13909 Collections.filter(this, <Node>[], f);
13812 13910
13813 bool every(bool f(Node element)) => _Collections.every(this, f); 13911 bool every(bool f(Node element)) => Collections.every(this, f);
13814 13912
13815 bool some(bool f(Node element)) => _Collections.some(this, f); 13913 bool some(bool f(Node element)) => Collections.some(this, f);
13816 13914
13817 bool get isEmpty => this.length == 0; 13915 bool get isEmpty => this.length == 0;
13818 13916
13819 // From List<Node>: 13917 // From List<Node>:
13820 13918
13821 void sort([Comparator<Node> compare = Comparable.compare]) { 13919 void sort([Comparator<Node> compare = Comparable.compare]) {
13822 throw new UnsupportedError("Cannot sort immutable List."); 13920 throw new UnsupportedError("Cannot sort immutable List.");
13823 } 13921 }
13824 13922
13825 int indexOf(Node element, [int start = 0]) => 13923 int indexOf(Node element, [int start = 0]) =>
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after
14374 @Returns('_MediaStreamList') @Creates('_MediaStreamList') 14472 @Returns('_MediaStreamList') @Creates('_MediaStreamList')
14375 final List<MediaStream> remoteStreams; 14473 final List<MediaStream> remoteStreams;
14376 14474
14377 /// @domName PeerConnection00.addEventListener; @docsEditable true 14475 /// @domName PeerConnection00.addEventListener; @docsEditable true
14378 @JSName('addEventListener') 14476 @JSName('addEventListener')
14379 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; 14477 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native;
14380 14478
14381 /// @domName PeerConnection00.addStream; @docsEditable true 14479 /// @domName PeerConnection00.addStream; @docsEditable true
14382 void addStream(MediaStream stream, [Map mediaStreamHints]) { 14480 void addStream(MediaStream stream, [Map mediaStreamHints]) {
14383 if (?mediaStreamHints) { 14481 if (?mediaStreamHints) {
14384 var mediaStreamHints_1 = _convertDartToNative_Dictionary(mediaStreamHints) ; 14482 var mediaStreamHints_1 = convertDartToNative_Dictionary(mediaStreamHints);
14385 _addStream_1(stream, mediaStreamHints_1); 14483 _addStream_1(stream, mediaStreamHints_1);
14386 return; 14484 return;
14387 } 14485 }
14388 _addStream_2(stream); 14486 _addStream_2(stream);
14389 return; 14487 return;
14390 } 14488 }
14391 @JSName('addStream') 14489 @JSName('addStream')
14392 void _addStream_1(MediaStream stream, mediaStreamHints) native; 14490 void _addStream_1(MediaStream stream, mediaStreamHints) native;
14393 @JSName('addStream') 14491 @JSName('addStream')
14394 void _addStream_2(MediaStream stream) native; 14492 void _addStream_2(MediaStream stream) native;
14395 14493
14396 /// @domName PeerConnection00.close; @docsEditable true 14494 /// @domName PeerConnection00.close; @docsEditable true
14397 void close() native; 14495 void close() native;
14398 14496
14399 /// @domName PeerConnection00.createAnswer; @docsEditable true 14497 /// @domName PeerConnection00.createAnswer; @docsEditable true
14400 SessionDescription createAnswer(String offer, [Map mediaHints]) { 14498 SessionDescription createAnswer(String offer, [Map mediaHints]) {
14401 if (?mediaHints) { 14499 if (?mediaHints) {
14402 var mediaHints_1 = _convertDartToNative_Dictionary(mediaHints); 14500 var mediaHints_1 = convertDartToNative_Dictionary(mediaHints);
14403 return _createAnswer_1(offer, mediaHints_1); 14501 return _createAnswer_1(offer, mediaHints_1);
14404 } 14502 }
14405 return _createAnswer_2(offer); 14503 return _createAnswer_2(offer);
14406 } 14504 }
14407 @JSName('createAnswer') 14505 @JSName('createAnswer')
14408 SessionDescription _createAnswer_1(offer, mediaHints) native; 14506 SessionDescription _createAnswer_1(offer, mediaHints) native;
14409 @JSName('createAnswer') 14507 @JSName('createAnswer')
14410 SessionDescription _createAnswer_2(offer) native; 14508 SessionDescription _createAnswer_2(offer) native;
14411 14509
14412 /// @domName PeerConnection00.createOffer; @docsEditable true 14510 /// @domName PeerConnection00.createOffer; @docsEditable true
14413 SessionDescription createOffer([Map mediaHints]) { 14511 SessionDescription createOffer([Map mediaHints]) {
14414 if (?mediaHints) { 14512 if (?mediaHints) {
14415 var mediaHints_1 = _convertDartToNative_Dictionary(mediaHints); 14513 var mediaHints_1 = convertDartToNative_Dictionary(mediaHints);
14416 return _createOffer_1(mediaHints_1); 14514 return _createOffer_1(mediaHints_1);
14417 } 14515 }
14418 return _createOffer_2(); 14516 return _createOffer_2();
14419 } 14517 }
14420 @JSName('createOffer') 14518 @JSName('createOffer')
14421 SessionDescription _createOffer_1(mediaHints) native; 14519 SessionDescription _createOffer_1(mediaHints) native;
14422 @JSName('createOffer') 14520 @JSName('createOffer')
14423 SessionDescription _createOffer_2() native; 14521 SessionDescription _createOffer_2() native;
14424 14522
14425 /// @domName PeerConnection00.dispatchEvent; @docsEditable true 14523 /// @domName PeerConnection00.dispatchEvent; @docsEditable true
(...skipping 12 matching lines...) Expand all
14438 14536
14439 /// @domName PeerConnection00.setLocalDescription; @docsEditable true 14537 /// @domName PeerConnection00.setLocalDescription; @docsEditable true
14440 void setLocalDescription(int action, SessionDescription desc) native; 14538 void setLocalDescription(int action, SessionDescription desc) native;
14441 14539
14442 /// @domName PeerConnection00.setRemoteDescription; @docsEditable true 14540 /// @domName PeerConnection00.setRemoteDescription; @docsEditable true
14443 void setRemoteDescription(int action, SessionDescription desc) native; 14541 void setRemoteDescription(int action, SessionDescription desc) native;
14444 14542
14445 /// @domName PeerConnection00.startIce; @docsEditable true 14543 /// @domName PeerConnection00.startIce; @docsEditable true
14446 void startIce([Map iceOptions]) { 14544 void startIce([Map iceOptions]) {
14447 if (?iceOptions) { 14545 if (?iceOptions) {
14448 var iceOptions_1 = _convertDartToNative_Dictionary(iceOptions); 14546 var iceOptions_1 = convertDartToNative_Dictionary(iceOptions);
14449 _startIce_1(iceOptions_1); 14547 _startIce_1(iceOptions_1);
14450 return; 14548 return;
14451 } 14549 }
14452 _startIce_2(); 14550 _startIce_2();
14453 return; 14551 return;
14454 } 14552 }
14455 @JSName('startIce') 14553 @JSName('startIce')
14456 void _startIce_1(iceOptions) native; 14554 void _startIce_1(iceOptions) native;
14457 @JSName('startIce') 14555 @JSName('startIce')
14458 void _startIce_2() native; 14556 void _startIce_2() native;
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
14604 } 14702 }
14605 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14703 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14606 // for details. All rights reserved. Use of this source code is governed by a 14704 // for details. All rights reserved. Use of this source code is governed by a
14607 // BSD-style license that can be found in the LICENSE file. 14705 // BSD-style license that can be found in the LICENSE file.
14608 14706
14609 14707
14610 /// @domName PopStateEvent; @docsEditable true 14708 /// @domName PopStateEvent; @docsEditable true
14611 class PopStateEvent extends Event native "*PopStateEvent" { 14709 class PopStateEvent extends Event native "*PopStateEvent" {
14612 14710
14613 /// @domName PopStateEvent.state; @docsEditable true 14711 /// @domName PopStateEvent.state; @docsEditable true
14614 dynamic get state => _convertNativeToDart_SerializedScriptValue(this._state); 14712 dynamic get state => convertNativeToDart_SerializedScriptValue(this._state);
14615 @JSName('state') 14713 @JSName('state')
14616 @_annotation_Creates_SerializedScriptValue @_annotation_Returns_SerializedScri ptValue 14714 @annotation_Creates_SerializedScriptValue @annotation_Returns_SerializedScript Value
14617 final dynamic _state; 14715 final dynamic _state;
14618 } 14716 }
14619 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14717 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14620 // for details. All rights reserved. Use of this source code is governed by a 14718 // for details. All rights reserved. Use of this source code is governed by a
14621 // BSD-style license that can be found in the LICENSE file. 14719 // BSD-style license that can be found in the LICENSE file.
14622 14720
14623 // WARNING: Do not edit - generated code. 14721 // WARNING: Do not edit - generated code.
14624 14722
14625 14723
14626 typedef void PositionCallback(Geoposition position); 14724 typedef void PositionCallback(Geoposition position);
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
14901 /// @domName RTCPeerConnection.addEventListener; @docsEditable true 14999 /// @domName RTCPeerConnection.addEventListener; @docsEditable true
14902 @JSName('addEventListener') 15000 @JSName('addEventListener')
14903 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; 15001 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native;
14904 15002
14905 /// @domName RTCPeerConnection.addIceCandidate; @docsEditable true 15003 /// @domName RTCPeerConnection.addIceCandidate; @docsEditable true
14906 void addIceCandidate(RTCIceCandidate candidate) native; 15004 void addIceCandidate(RTCIceCandidate candidate) native;
14907 15005
14908 /// @domName RTCPeerConnection.addStream; @docsEditable true 15006 /// @domName RTCPeerConnection.addStream; @docsEditable true
14909 void addStream(MediaStream stream, [Map mediaConstraints]) { 15007 void addStream(MediaStream stream, [Map mediaConstraints]) {
14910 if (?mediaConstraints) { 15008 if (?mediaConstraints) {
14911 var mediaConstraints_1 = _convertDartToNative_Dictionary(mediaConstraints) ; 15009 var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints);
14912 _addStream_1(stream, mediaConstraints_1); 15010 _addStream_1(stream, mediaConstraints_1);
14913 return; 15011 return;
14914 } 15012 }
14915 _addStream_2(stream); 15013 _addStream_2(stream);
14916 return; 15014 return;
14917 } 15015 }
14918 @JSName('addStream') 15016 @JSName('addStream')
14919 void _addStream_1(MediaStream stream, mediaConstraints) native; 15017 void _addStream_1(MediaStream stream, mediaConstraints) native;
14920 @JSName('addStream') 15018 @JSName('addStream')
14921 void _addStream_2(MediaStream stream) native; 15019 void _addStream_2(MediaStream stream) native;
14922 15020
14923 /// @domName RTCPeerConnection.close; @docsEditable true 15021 /// @domName RTCPeerConnection.close; @docsEditable true
14924 void close() native; 15022 void close() native;
14925 15023
14926 /// @domName RTCPeerConnection.createAnswer; @docsEditable true 15024 /// @domName RTCPeerConnection.createAnswer; @docsEditable true
14927 void createAnswer(RTCSessionDescriptionCallback successCallback, [RTCErrorCall back failureCallback, Map mediaConstraints]) { 15025 void createAnswer(RTCSessionDescriptionCallback successCallback, [RTCErrorCall back failureCallback, Map mediaConstraints]) {
14928 if (?mediaConstraints) { 15026 if (?mediaConstraints) {
14929 var mediaConstraints_1 = _convertDartToNative_Dictionary(mediaConstraints) ; 15027 var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints);
14930 _createAnswer_1(successCallback, failureCallback, mediaConstraints_1); 15028 _createAnswer_1(successCallback, failureCallback, mediaConstraints_1);
14931 return; 15029 return;
14932 } 15030 }
14933 _createAnswer_2(successCallback, failureCallback); 15031 _createAnswer_2(successCallback, failureCallback);
14934 return; 15032 return;
14935 } 15033 }
14936 @JSName('createAnswer') 15034 @JSName('createAnswer')
14937 void _createAnswer_1(RTCSessionDescriptionCallback successCallback, RTCErrorCa llback failureCallback, mediaConstraints) native; 15035 void _createAnswer_1(RTCSessionDescriptionCallback successCallback, RTCErrorCa llback failureCallback, mediaConstraints) native;
14938 @JSName('createAnswer') 15036 @JSName('createAnswer')
14939 void _createAnswer_2(RTCSessionDescriptionCallback successCallback, RTCErrorCa llback failureCallback) native; 15037 void _createAnswer_2(RTCSessionDescriptionCallback successCallback, RTCErrorCa llback failureCallback) native;
14940 15038
14941 /// @domName RTCPeerConnection.createDataChannel; @docsEditable true 15039 /// @domName RTCPeerConnection.createDataChannel; @docsEditable true
14942 RTCDataChannel createDataChannel(String label, [Map options]) { 15040 RTCDataChannel createDataChannel(String label, [Map options]) {
14943 if (?options) { 15041 if (?options) {
14944 var options_1 = _convertDartToNative_Dictionary(options); 15042 var options_1 = convertDartToNative_Dictionary(options);
14945 return _createDataChannel_1(label, options_1); 15043 return _createDataChannel_1(label, options_1);
14946 } 15044 }
14947 return _createDataChannel_2(label); 15045 return _createDataChannel_2(label);
14948 } 15046 }
14949 @JSName('createDataChannel') 15047 @JSName('createDataChannel')
14950 RTCDataChannel _createDataChannel_1(label, options) native; 15048 RTCDataChannel _createDataChannel_1(label, options) native;
14951 @JSName('createDataChannel') 15049 @JSName('createDataChannel')
14952 RTCDataChannel _createDataChannel_2(label) native; 15050 RTCDataChannel _createDataChannel_2(label) native;
14953 15051
14954 /// @domName RTCPeerConnection.createOffer; @docsEditable true 15052 /// @domName RTCPeerConnection.createOffer; @docsEditable true
14955 void createOffer(RTCSessionDescriptionCallback successCallback, [RTCErrorCallb ack failureCallback, Map mediaConstraints]) { 15053 void createOffer(RTCSessionDescriptionCallback successCallback, [RTCErrorCallb ack failureCallback, Map mediaConstraints]) {
14956 if (?mediaConstraints) { 15054 if (?mediaConstraints) {
14957 var mediaConstraints_1 = _convertDartToNative_Dictionary(mediaConstraints) ; 15055 var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints);
14958 _createOffer_1(successCallback, failureCallback, mediaConstraints_1); 15056 _createOffer_1(successCallback, failureCallback, mediaConstraints_1);
14959 return; 15057 return;
14960 } 15058 }
14961 _createOffer_2(successCallback, failureCallback); 15059 _createOffer_2(successCallback, failureCallback);
14962 return; 15060 return;
14963 } 15061 }
14964 @JSName('createOffer') 15062 @JSName('createOffer')
14965 void _createOffer_1(RTCSessionDescriptionCallback successCallback, RTCErrorCal lback failureCallback, mediaConstraints) native; 15063 void _createOffer_1(RTCSessionDescriptionCallback successCallback, RTCErrorCal lback failureCallback, mediaConstraints) native;
14966 @JSName('createOffer') 15064 @JSName('createOffer')
14967 void _createOffer_2(RTCSessionDescriptionCallback successCallback, RTCErrorCal lback failureCallback) native; 15065 void _createOffer_2(RTCSessionDescriptionCallback successCallback, RTCErrorCal lback failureCallback) native;
(...skipping 14 matching lines...) Expand all
14982 15080
14983 /// @domName RTCPeerConnection.setLocalDescription; @docsEditable true 15081 /// @domName RTCPeerConnection.setLocalDescription; @docsEditable true
14984 void setLocalDescription(RTCSessionDescription description, [VoidCallback succ essCallback, RTCErrorCallback failureCallback]) native; 15082 void setLocalDescription(RTCSessionDescription description, [VoidCallback succ essCallback, RTCErrorCallback failureCallback]) native;
14985 15083
14986 /// @domName RTCPeerConnection.setRemoteDescription; @docsEditable true 15084 /// @domName RTCPeerConnection.setRemoteDescription; @docsEditable true
14987 void setRemoteDescription(RTCSessionDescription description, [VoidCallback suc cessCallback, RTCErrorCallback failureCallback]) native; 15085 void setRemoteDescription(RTCSessionDescription description, [VoidCallback suc cessCallback, RTCErrorCallback failureCallback]) native;
14988 15086
14989 /// @domName RTCPeerConnection.updateIce; @docsEditable true 15087 /// @domName RTCPeerConnection.updateIce; @docsEditable true
14990 void updateIce([Map configuration, Map mediaConstraints]) { 15088 void updateIce([Map configuration, Map mediaConstraints]) {
14991 if (?mediaConstraints) { 15089 if (?mediaConstraints) {
14992 var configuration_1 = _convertDartToNative_Dictionary(configuration); 15090 var configuration_1 = convertDartToNative_Dictionary(configuration);
14993 var mediaConstraints_2 = _convertDartToNative_Dictionary(mediaConstraints) ; 15091 var mediaConstraints_2 = convertDartToNative_Dictionary(mediaConstraints);
14994 _updateIce_1(configuration_1, mediaConstraints_2); 15092 _updateIce_1(configuration_1, mediaConstraints_2);
14995 return; 15093 return;
14996 } 15094 }
14997 if (?configuration) { 15095 if (?configuration) {
14998 var configuration_3 = _convertDartToNative_Dictionary(configuration); 15096 var configuration_3 = convertDartToNative_Dictionary(configuration);
14999 _updateIce_2(configuration_3); 15097 _updateIce_2(configuration_3);
15000 return; 15098 return;
15001 } 15099 }
15002 _updateIce_3(); 15100 _updateIce_3();
15003 return; 15101 return;
15004 } 15102 }
15005 @JSName('updateIce') 15103 @JSName('updateIce')
15006 void _updateIce_1(configuration, mediaConstraints) native; 15104 void _updateIce_1(configuration, mediaConstraints) native;
15007 @JSName('updateIce') 15105 @JSName('updateIce')
15008 void _updateIce_2(configuration) native; 15106 void _updateIce_2(configuration) native;
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
15391 } 15489 }
15392 15490
15393 void addLast(Map value) { 15491 void addLast(Map value) {
15394 throw new UnsupportedError("Cannot add to immutable List."); 15492 throw new UnsupportedError("Cannot add to immutable List.");
15395 } 15493 }
15396 15494
15397 void addAll(Collection<Map> collection) { 15495 void addAll(Collection<Map> collection) {
15398 throw new UnsupportedError("Cannot add to immutable List."); 15496 throw new UnsupportedError("Cannot add to immutable List.");
15399 } 15497 }
15400 15498
15401 bool contains(Map element) => _Collections.contains(this, element); 15499 bool contains(Map element) => Collections.contains(this, element);
15402 15500
15403 void forEach(void f(Map element)) => _Collections.forEach(this, f); 15501 void forEach(void f(Map element)) => Collections.forEach(this, f);
15404 15502
15405 Collection map(f(Map element)) => _Collections.map(this, [], f); 15503 Collection map(f(Map element)) => Collections.map(this, [], f);
15406 15504
15407 Collection<Map> filter(bool f(Map element)) => 15505 Collection<Map> filter(bool f(Map element)) =>
15408 _Collections.filter(this, <Map>[], f); 15506 Collections.filter(this, <Map>[], f);
15409 15507
15410 bool every(bool f(Map element)) => _Collections.every(this, f); 15508 bool every(bool f(Map element)) => Collections.every(this, f);
15411 15509
15412 bool some(bool f(Map element)) => _Collections.some(this, f); 15510 bool some(bool f(Map element)) => Collections.some(this, f);
15413 15511
15414 bool get isEmpty => this.length == 0; 15512 bool get isEmpty => this.length == 0;
15415 15513
15416 // From List<Map>: 15514 // From List<Map>:
15417 15515
15418 void sort([Comparator<Map> compare = Comparable.compare]) { 15516 void sort([Comparator<Map> compare = Comparable.compare]) {
15419 throw new UnsupportedError("Cannot sort immutable List."); 15517 throw new UnsupportedError("Cannot sort immutable List.");
15420 } 15518 }
15421 15519
15422 int indexOf(Map element, [int start = 0]) => 15520 int indexOf(Map element, [int start = 0]) =>
(...skipping 24 matching lines...) Expand all
15447 throw new UnsupportedError("Cannot insertRange on immutable List."); 15545 throw new UnsupportedError("Cannot insertRange on immutable List.");
15448 } 15546 }
15449 15547
15450 List<Map> getRange(int start, int rangeLength) => 15548 List<Map> getRange(int start, int rangeLength) =>
15451 _Lists.getRange(this, start, rangeLength, <Map>[]); 15549 _Lists.getRange(this, start, rangeLength, <Map>[]);
15452 15550
15453 // -- end List<Map> mixins. 15551 // -- end List<Map> mixins.
15454 15552
15455 /// @domName SQLResultSetRowList.item; @docsEditable true 15553 /// @domName SQLResultSetRowList.item; @docsEditable true
15456 Map item(int index) { 15554 Map item(int index) {
15457 return _convertNativeToDart_Dictionary(_item_1(index)); 15555 return convertNativeToDart_Dictionary(_item_1(index));
15458 } 15556 }
15459 @JSName('item') 15557 @JSName('item')
15460 @Creates('=Object') 15558 @Creates('=Object')
15461 _item_1(index) native; 15559 _item_1(index) native;
15462 } 15560 }
15463 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15561 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15464 // for details. All rights reserved. Use of this source code is governed by a 15562 // for details. All rights reserved. Use of this source code is governed by a
15465 // BSD-style license that can be found in the LICENSE file. 15563 // BSD-style license that can be found in the LICENSE file.
15466 15564
15467 // WARNING: Do not edit - generated code. 15565 // WARNING: Do not edit - generated code.
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
15895 } 15993 }
15896 15994
15897 void addLast(SourceBuffer value) { 15995 void addLast(SourceBuffer value) {
15898 throw new UnsupportedError("Cannot add to immutable List."); 15996 throw new UnsupportedError("Cannot add to immutable List.");
15899 } 15997 }
15900 15998
15901 void addAll(Collection<SourceBuffer> collection) { 15999 void addAll(Collection<SourceBuffer> collection) {
15902 throw new UnsupportedError("Cannot add to immutable List."); 16000 throw new UnsupportedError("Cannot add to immutable List.");
15903 } 16001 }
15904 16002
15905 bool contains(SourceBuffer element) => _Collections.contains(this, element); 16003 bool contains(SourceBuffer element) => Collections.contains(this, element);
15906 16004
15907 void forEach(void f(SourceBuffer element)) => _Collections.forEach(this, f); 16005 void forEach(void f(SourceBuffer element)) => Collections.forEach(this, f);
15908 16006
15909 Collection map(f(SourceBuffer element)) => _Collections.map(this, [], f); 16007 Collection map(f(SourceBuffer element)) => Collections.map(this, [], f);
15910 16008
15911 Collection<SourceBuffer> filter(bool f(SourceBuffer element)) => 16009 Collection<SourceBuffer> filter(bool f(SourceBuffer element)) =>
15912 _Collections.filter(this, <SourceBuffer>[], f); 16010 Collections.filter(this, <SourceBuffer>[], f);
15913 16011
15914 bool every(bool f(SourceBuffer element)) => _Collections.every(this, f); 16012 bool every(bool f(SourceBuffer element)) => Collections.every(this, f);
15915 16013
15916 bool some(bool f(SourceBuffer element)) => _Collections.some(this, f); 16014 bool some(bool f(SourceBuffer element)) => Collections.some(this, f);
15917 16015
15918 bool get isEmpty => this.length == 0; 16016 bool get isEmpty => this.length == 0;
15919 16017
15920 // From List<SourceBuffer>: 16018 // From List<SourceBuffer>:
15921 16019
15922 void sort([Comparator<SourceBuffer> compare = Comparable.compare]) { 16020 void sort([Comparator<SourceBuffer> compare = Comparable.compare]) {
15923 throw new UnsupportedError("Cannot sort immutable List."); 16021 throw new UnsupportedError("Cannot sort immutable List.");
15924 } 16022 }
15925 16023
15926 int indexOf(SourceBuffer element, [int start = 0]) => 16024 int indexOf(SourceBuffer element, [int start = 0]) =>
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
16053 } 16151 }
16054 16152
16055 void addLast(SpeechGrammar value) { 16153 void addLast(SpeechGrammar value) {
16056 throw new UnsupportedError("Cannot add to immutable List."); 16154 throw new UnsupportedError("Cannot add to immutable List.");
16057 } 16155 }
16058 16156
16059 void addAll(Collection<SpeechGrammar> collection) { 16157 void addAll(Collection<SpeechGrammar> collection) {
16060 throw new UnsupportedError("Cannot add to immutable List."); 16158 throw new UnsupportedError("Cannot add to immutable List.");
16061 } 16159 }
16062 16160
16063 bool contains(SpeechGrammar element) => _Collections.contains(this, element); 16161 bool contains(SpeechGrammar element) => Collections.contains(this, element);
16064 16162
16065 void forEach(void f(SpeechGrammar element)) => _Collections.forEach(this, f); 16163 void forEach(void f(SpeechGrammar element)) => Collections.forEach(this, f);
16066 16164
16067 Collection map(f(SpeechGrammar element)) => _Collections.map(this, [], f); 16165 Collection map(f(SpeechGrammar element)) => Collections.map(this, [], f);
16068 16166
16069 Collection<SpeechGrammar> filter(bool f(SpeechGrammar element)) => 16167 Collection<SpeechGrammar> filter(bool f(SpeechGrammar element)) =>
16070 _Collections.filter(this, <SpeechGrammar>[], f); 16168 Collections.filter(this, <SpeechGrammar>[], f);
16071 16169
16072 bool every(bool f(SpeechGrammar element)) => _Collections.every(this, f); 16170 bool every(bool f(SpeechGrammar element)) => Collections.every(this, f);
16073 16171
16074 bool some(bool f(SpeechGrammar element)) => _Collections.some(this, f); 16172 bool some(bool f(SpeechGrammar element)) => Collections.some(this, f);
16075 16173
16076 bool get isEmpty => this.length == 0; 16174 bool get isEmpty => this.length == 0;
16077 16175
16078 // From List<SpeechGrammar>: 16176 // From List<SpeechGrammar>:
16079 16177
16080 void sort([Comparator<SpeechGrammar> compare = Comparable.compare]) { 16178 void sort([Comparator<SpeechGrammar> compare = Comparable.compare]) {
16081 throw new UnsupportedError("Cannot sort immutable List."); 16179 throw new UnsupportedError("Cannot sort immutable List.");
16082 } 16180 }
16083 16181
16084 int indexOf(SpeechGrammar element, [int start = 0]) => 16182 int indexOf(SpeechGrammar element, [int start = 0]) =>
(...skipping 1007 matching lines...) Expand 10 before | Expand all | Expand 10 after
17092 } 17190 }
17093 17191
17094 void addLast(TextTrackCue value) { 17192 void addLast(TextTrackCue value) {
17095 throw new UnsupportedError("Cannot add to immutable List."); 17193 throw new UnsupportedError("Cannot add to immutable List.");
17096 } 17194 }
17097 17195
17098 void addAll(Collection<TextTrackCue> collection) { 17196 void addAll(Collection<TextTrackCue> collection) {
17099 throw new UnsupportedError("Cannot add to immutable List."); 17197 throw new UnsupportedError("Cannot add to immutable List.");
17100 } 17198 }
17101 17199
17102 bool contains(TextTrackCue element) => _Collections.contains(this, element); 17200 bool contains(TextTrackCue element) => Collections.contains(this, element);
17103 17201
17104 void forEach(void f(TextTrackCue element)) => _Collections.forEach(this, f); 17202 void forEach(void f(TextTrackCue element)) => Collections.forEach(this, f);
17105 17203
17106 Collection map(f(TextTrackCue element)) => _Collections.map(this, [], f); 17204 Collection map(f(TextTrackCue element)) => Collections.map(this, [], f);
17107 17205
17108 Collection<TextTrackCue> filter(bool f(TextTrackCue element)) => 17206 Collection<TextTrackCue> filter(bool f(TextTrackCue element)) =>
17109 _Collections.filter(this, <TextTrackCue>[], f); 17207 Collections.filter(this, <TextTrackCue>[], f);
17110 17208
17111 bool every(bool f(TextTrackCue element)) => _Collections.every(this, f); 17209 bool every(bool f(TextTrackCue element)) => Collections.every(this, f);
17112 17210
17113 bool some(bool f(TextTrackCue element)) => _Collections.some(this, f); 17211 bool some(bool f(TextTrackCue element)) => Collections.some(this, f);
17114 17212
17115 bool get isEmpty => this.length == 0; 17213 bool get isEmpty => this.length == 0;
17116 17214
17117 // From List<TextTrackCue>: 17215 // From List<TextTrackCue>:
17118 17216
17119 void sort([Comparator<TextTrackCue> compare = Comparable.compare]) { 17217 void sort([Comparator<TextTrackCue> compare = Comparable.compare]) {
17120 throw new UnsupportedError("Cannot sort immutable List."); 17218 throw new UnsupportedError("Cannot sort immutable List.");
17121 } 17219 }
17122 17220
17123 int indexOf(TextTrackCue element, [int start = 0]) => 17221 int indexOf(TextTrackCue element, [int start = 0]) =>
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
17198 } 17296 }
17199 17297
17200 void addLast(TextTrack value) { 17298 void addLast(TextTrack value) {
17201 throw new UnsupportedError("Cannot add to immutable List."); 17299 throw new UnsupportedError("Cannot add to immutable List.");
17202 } 17300 }
17203 17301
17204 void addAll(Collection<TextTrack> collection) { 17302 void addAll(Collection<TextTrack> collection) {
17205 throw new UnsupportedError("Cannot add to immutable List."); 17303 throw new UnsupportedError("Cannot add to immutable List.");
17206 } 17304 }
17207 17305
17208 bool contains(TextTrack element) => _Collections.contains(this, element); 17306 bool contains(TextTrack element) => Collections.contains(this, element);
17209 17307
17210 void forEach(void f(TextTrack element)) => _Collections.forEach(this, f); 17308 void forEach(void f(TextTrack element)) => Collections.forEach(this, f);
17211 17309
17212 Collection map(f(TextTrack element)) => _Collections.map(this, [], f); 17310 Collection map(f(TextTrack element)) => Collections.map(this, [], f);
17213 17311
17214 Collection<TextTrack> filter(bool f(TextTrack element)) => 17312 Collection<TextTrack> filter(bool f(TextTrack element)) =>
17215 _Collections.filter(this, <TextTrack>[], f); 17313 Collections.filter(this, <TextTrack>[], f);
17216 17314
17217 bool every(bool f(TextTrack element)) => _Collections.every(this, f); 17315 bool every(bool f(TextTrack element)) => Collections.every(this, f);
17218 17316
17219 bool some(bool f(TextTrack element)) => _Collections.some(this, f); 17317 bool some(bool f(TextTrack element)) => Collections.some(this, f);
17220 17318
17221 bool get isEmpty => this.length == 0; 17319 bool get isEmpty => this.length == 0;
17222 17320
17223 // From List<TextTrack>: 17321 // From List<TextTrack>:
17224 17322
17225 void sort([Comparator<TextTrack> compare = Comparable.compare]) { 17323 void sort([Comparator<TextTrack> compare = Comparable.compare]) {
17226 throw new UnsupportedError("Cannot sort immutable List."); 17324 throw new UnsupportedError("Cannot sort immutable List.");
17227 } 17325 }
17228 17326
17229 int indexOf(TextTrack element, [int start = 0]) => 17327 int indexOf(TextTrack element, [int start = 0]) =>
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
17429 } 17527 }
17430 17528
17431 void addLast(Touch value) { 17529 void addLast(Touch value) {
17432 throw new UnsupportedError("Cannot add to immutable List."); 17530 throw new UnsupportedError("Cannot add to immutable List.");
17433 } 17531 }
17434 17532
17435 void addAll(Collection<Touch> collection) { 17533 void addAll(Collection<Touch> collection) {
17436 throw new UnsupportedError("Cannot add to immutable List."); 17534 throw new UnsupportedError("Cannot add to immutable List.");
17437 } 17535 }
17438 17536
17439 bool contains(Touch element) => _Collections.contains(this, element); 17537 bool contains(Touch element) => Collections.contains(this, element);
17440 17538
17441 void forEach(void f(Touch element)) => _Collections.forEach(this, f); 17539 void forEach(void f(Touch element)) => Collections.forEach(this, f);
17442 17540
17443 Collection map(f(Touch element)) => _Collections.map(this, [], f); 17541 Collection map(f(Touch element)) => Collections.map(this, [], f);
17444 17542
17445 Collection<Touch> filter(bool f(Touch element)) => 17543 Collection<Touch> filter(bool f(Touch element)) =>
17446 _Collections.filter(this, <Touch>[], f); 17544 Collections.filter(this, <Touch>[], f);
17447 17545
17448 bool every(bool f(Touch element)) => _Collections.every(this, f); 17546 bool every(bool f(Touch element)) => Collections.every(this, f);
17449 17547
17450 bool some(bool f(Touch element)) => _Collections.some(this, f); 17548 bool some(bool f(Touch element)) => Collections.some(this, f);
17451 17549
17452 bool get isEmpty => this.length == 0; 17550 bool get isEmpty => this.length == 0;
17453 17551
17454 // From List<Touch>: 17552 // From List<Touch>:
17455 17553
17456 void sort([Comparator<Touch> compare = Comparable.compare]) { 17554 void sort([Comparator<Touch> compare = Comparable.compare]) {
17457 throw new UnsupportedError("Cannot sort immutable List."); 17555 throw new UnsupportedError("Cannot sort immutable List.");
17458 } 17556 }
17459 17557
17460 int indexOf(Touch element, [int start = 0]) => 17558 int indexOf(Touch element, [int start = 0]) =>
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
17720 } 17818 }
17721 17819
17722 void addLast(int value) { 17820 void addLast(int value) {
17723 throw new UnsupportedError("Cannot add to immutable List."); 17821 throw new UnsupportedError("Cannot add to immutable List.");
17724 } 17822 }
17725 17823
17726 void addAll(Collection<int> collection) { 17824 void addAll(Collection<int> collection) {
17727 throw new UnsupportedError("Cannot add to immutable List."); 17825 throw new UnsupportedError("Cannot add to immutable List.");
17728 } 17826 }
17729 17827
17730 bool contains(int element) => _Collections.contains(this, element); 17828 bool contains(int element) => Collections.contains(this, element);
17731 17829
17732 void forEach(void f(int element)) => _Collections.forEach(this, f); 17830 void forEach(void f(int element)) => Collections.forEach(this, f);
17733 17831
17734 Collection map(f(int element)) => _Collections.map(this, [], f); 17832 Collection map(f(int element)) => Collections.map(this, [], f);
17735 17833
17736 Collection<int> filter(bool f(int element)) => 17834 Collection<int> filter(bool f(int element)) =>
17737 _Collections.filter(this, <int>[], f); 17835 Collections.filter(this, <int>[], f);
17738 17836
17739 bool every(bool f(int element)) => _Collections.every(this, f); 17837 bool every(bool f(int element)) => Collections.every(this, f);
17740 17838
17741 bool some(bool f(int element)) => _Collections.some(this, f); 17839 bool some(bool f(int element)) => Collections.some(this, f);
17742 17840
17743 bool get isEmpty => this.length == 0; 17841 bool get isEmpty => this.length == 0;
17744 17842
17745 // From List<int>: 17843 // From List<int>:
17746 17844
17747 void sort([Comparator<int> compare = Comparable.compare]) { 17845 void sort([Comparator<int> compare = Comparable.compare]) {
17748 throw new UnsupportedError("Cannot sort immutable List."); 17846 throw new UnsupportedError("Cannot sort immutable List.");
17749 } 17847 }
17750 17848
17751 int indexOf(int element, [int start = 0]) => 17849 int indexOf(int element, [int start = 0]) =>
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
17831 } 17929 }
17832 17930
17833 void addLast(int value) { 17931 void addLast(int value) {
17834 throw new UnsupportedError("Cannot add to immutable List."); 17932 throw new UnsupportedError("Cannot add to immutable List.");
17835 } 17933 }
17836 17934
17837 void addAll(Collection<int> collection) { 17935 void addAll(Collection<int> collection) {
17838 throw new UnsupportedError("Cannot add to immutable List."); 17936 throw new UnsupportedError("Cannot add to immutable List.");
17839 } 17937 }
17840 17938
17841 bool contains(int element) => _Collections.contains(this, element); 17939 bool contains(int element) => Collections.contains(this, element);
17842 17940
17843 void forEach(void f(int element)) => _Collections.forEach(this, f); 17941 void forEach(void f(int element)) => Collections.forEach(this, f);
17844 17942
17845 Collection map(f(int element)) => _Collections.map(this, [], f); 17943 Collection map(f(int element)) => Collections.map(this, [], f);
17846 17944
17847 Collection<int> filter(bool f(int element)) => 17945 Collection<int> filter(bool f(int element)) =>
17848 _Collections.filter(this, <int>[], f); 17946 Collections.filter(this, <int>[], f);
17849 17947
17850 bool every(bool f(int element)) => _Collections.every(this, f); 17948 bool every(bool f(int element)) => Collections.every(this, f);
17851 17949
17852 bool some(bool f(int element)) => _Collections.some(this, f); 17950 bool some(bool f(int element)) => Collections.some(this, f);
17853 17951
17854 bool get isEmpty => this.length == 0; 17952 bool get isEmpty => this.length == 0;
17855 17953
17856 // From List<int>: 17954 // From List<int>:
17857 17955
17858 void sort([Comparator<int> compare = Comparable.compare]) { 17956 void sort([Comparator<int> compare = Comparable.compare]) {
17859 throw new UnsupportedError("Cannot sort immutable List."); 17957 throw new UnsupportedError("Cannot sort immutable List.");
17860 } 17958 }
17861 17959
17862 int indexOf(int element, [int start = 0]) => 17960 int indexOf(int element, [int start = 0]) =>
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
17942 } 18040 }
17943 18041
17944 void addLast(int value) { 18042 void addLast(int value) {
17945 throw new UnsupportedError("Cannot add to immutable List."); 18043 throw new UnsupportedError("Cannot add to immutable List.");
17946 } 18044 }
17947 18045
17948 void addAll(Collection<int> collection) { 18046 void addAll(Collection<int> collection) {
17949 throw new UnsupportedError("Cannot add to immutable List."); 18047 throw new UnsupportedError("Cannot add to immutable List.");
17950 } 18048 }
17951 18049
17952 bool contains(int element) => _Collections.contains(this, element); 18050 bool contains(int element) => Collections.contains(this, element);
17953 18051
17954 void forEach(void f(int element)) => _Collections.forEach(this, f); 18052 void forEach(void f(int element)) => Collections.forEach(this, f);
17955 18053
17956 Collection map(f(int element)) => _Collections.map(this, [], f); 18054 Collection map(f(int element)) => Collections.map(this, [], f);
17957 18055
17958 Collection<int> filter(bool f(int element)) => 18056 Collection<int> filter(bool f(int element)) =>
17959 _Collections.filter(this, <int>[], f); 18057 Collections.filter(this, <int>[], f);
17960 18058
17961 bool every(bool f(int element)) => _Collections.every(this, f); 18059 bool every(bool f(int element)) => Collections.every(this, f);
17962 18060
17963 bool some(bool f(int element)) => _Collections.some(this, f); 18061 bool some(bool f(int element)) => Collections.some(this, f);
17964 18062
17965 bool get isEmpty => this.length == 0; 18063 bool get isEmpty => this.length == 0;
17966 18064
17967 // From List<int>: 18065 // From List<int>:
17968 18066
17969 void sort([Comparator<int> compare = Comparable.compare]) { 18067 void sort([Comparator<int> compare = Comparable.compare]) {
17970 throw new UnsupportedError("Cannot sort immutable List."); 18068 throw new UnsupportedError("Cannot sort immutable List.");
17971 } 18069 }
17972 18070
17973 int indexOf(int element, [int start = 0]) => 18071 int indexOf(int element, [int start = 0]) =>
(...skipping 1738 matching lines...) Expand 10 before | Expand all | Expand 10 after
19712 19810
19713 factory Worker(String scriptUrl) => _WorkerFactoryProvider.createWorker(script Url); 19811 factory Worker(String scriptUrl) => _WorkerFactoryProvider.createWorker(script Url);
19714 19812
19715 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev entTarget.dispatchEvent; @docsEditable true 19813 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev entTarget.dispatchEvent; @docsEditable true
19716 WorkerEvents get on => 19814 WorkerEvents get on =>
19717 new WorkerEvents(this); 19815 new WorkerEvents(this);
19718 19816
19719 /// @domName Worker.postMessage; @docsEditable true 19817 /// @domName Worker.postMessage; @docsEditable true
19720 void postMessage(/*SerializedScriptValue*/ message, [List messagePorts]) { 19818 void postMessage(/*SerializedScriptValue*/ message, [List messagePorts]) {
19721 if (?messagePorts) { 19819 if (?messagePorts) {
19722 var message_1 = _convertDartToNative_SerializedScriptValue(message); 19820 var message_1 = convertDartToNative_SerializedScriptValue(message);
19723 _postMessage_1(message_1, messagePorts); 19821 _postMessage_1(message_1, messagePorts);
19724 return; 19822 return;
19725 } 19823 }
19726 var message_2 = _convertDartToNative_SerializedScriptValue(message); 19824 var message_2 = convertDartToNative_SerializedScriptValue(message);
19727 _postMessage_2(message_2); 19825 _postMessage_2(message_2);
19728 return; 19826 return;
19729 } 19827 }
19730 @JSName('postMessage') 19828 @JSName('postMessage')
19731 void _postMessage_1(message, List messagePorts) native; 19829 void _postMessage_1(message, List messagePorts) native;
19732 @JSName('postMessage') 19830 @JSName('postMessage')
19733 void _postMessage_2(message) native; 19831 void _postMessage_2(message) native;
19734 19832
19735 /// @domName Worker.terminate; @docsEditable true 19833 /// @domName Worker.terminate; @docsEditable true
19736 void terminate() native; 19834 void terminate() native;
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
20135 } 20233 }
20136 20234
20137 void addLast(CSSRule value) { 20235 void addLast(CSSRule value) {
20138 throw new UnsupportedError("Cannot add to immutable List."); 20236 throw new UnsupportedError("Cannot add to immutable List.");
20139 } 20237 }
20140 20238
20141 void addAll(Collection<CSSRule> collection) { 20239 void addAll(Collection<CSSRule> collection) {
20142 throw new UnsupportedError("Cannot add to immutable List."); 20240 throw new UnsupportedError("Cannot add to immutable List.");
20143 } 20241 }
20144 20242
20145 bool contains(CSSRule element) => _Collections.contains(this, element); 20243 bool contains(CSSRule element) => Collections.contains(this, element);
20146 20244
20147 void forEach(void f(CSSRule element)) => _Collections.forEach(this, f); 20245 void forEach(void f(CSSRule element)) => Collections.forEach(this, f);
20148 20246
20149 Collection map(f(CSSRule element)) => _Collections.map(this, [], f); 20247 Collection map(f(CSSRule element)) => Collections.map(this, [], f);
20150 20248
20151 Collection<CSSRule> filter(bool f(CSSRule element)) => 20249 Collection<CSSRule> filter(bool f(CSSRule element)) =>
20152 _Collections.filter(this, <CSSRule>[], f); 20250 Collections.filter(this, <CSSRule>[], f);
20153 20251
20154 bool every(bool f(CSSRule element)) => _Collections.every(this, f); 20252 bool every(bool f(CSSRule element)) => Collections.every(this, f);
20155 20253
20156 bool some(bool f(CSSRule element)) => _Collections.some(this, f); 20254 bool some(bool f(CSSRule element)) => Collections.some(this, f);
20157 20255
20158 bool get isEmpty => this.length == 0; 20256 bool get isEmpty => this.length == 0;
20159 20257
20160 // From List<CSSRule>: 20258 // From List<CSSRule>:
20161 20259
20162 void sort([Comparator<CSSRule> compare = Comparable.compare]) { 20260 void sort([Comparator<CSSRule> compare = Comparable.compare]) {
20163 throw new UnsupportedError("Cannot sort immutable List."); 20261 throw new UnsupportedError("Cannot sort immutable List.");
20164 } 20262 }
20165 20263
20166 int indexOf(CSSRule element, [int start = 0]) => 20264 int indexOf(CSSRule element, [int start = 0]) =>
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
20234 } 20332 }
20235 20333
20236 void addLast(CSSValue value) { 20334 void addLast(CSSValue value) {
20237 throw new UnsupportedError("Cannot add to immutable List."); 20335 throw new UnsupportedError("Cannot add to immutable List.");
20238 } 20336 }
20239 20337
20240 void addAll(Collection<CSSValue> collection) { 20338 void addAll(Collection<CSSValue> collection) {
20241 throw new UnsupportedError("Cannot add to immutable List."); 20339 throw new UnsupportedError("Cannot add to immutable List.");
20242 } 20340 }
20243 20341
20244 bool contains(CSSValue element) => _Collections.contains(this, element); 20342 bool contains(CSSValue element) => Collections.contains(this, element);
20245 20343
20246 void forEach(void f(CSSValue element)) => _Collections.forEach(this, f); 20344 void forEach(void f(CSSValue element)) => Collections.forEach(this, f);
20247 20345
20248 Collection map(f(CSSValue element)) => _Collections.map(this, [], f); 20346 Collection map(f(CSSValue element)) => Collections.map(this, [], f);
20249 20347
20250 Collection<CSSValue> filter(bool f(CSSValue element)) => 20348 Collection<CSSValue> filter(bool f(CSSValue element)) =>
20251 _Collections.filter(this, <CSSValue>[], f); 20349 Collections.filter(this, <CSSValue>[], f);
20252 20350
20253 bool every(bool f(CSSValue element)) => _Collections.every(this, f); 20351 bool every(bool f(CSSValue element)) => Collections.every(this, f);
20254 20352
20255 bool some(bool f(CSSValue element)) => _Collections.some(this, f); 20353 bool some(bool f(CSSValue element)) => Collections.some(this, f);
20256 20354
20257 bool get isEmpty => this.length == 0; 20355 bool get isEmpty => this.length == 0;
20258 20356
20259 // From List<CSSValue>: 20357 // From List<CSSValue>:
20260 20358
20261 void sort([Comparator<CSSValue> compare = Comparable.compare]) { 20359 void sort([Comparator<CSSValue> compare = Comparable.compare]) {
20262 throw new UnsupportedError("Cannot sort immutable List."); 20360 throw new UnsupportedError("Cannot sort immutable List.");
20263 } 20361 }
20264 20362
20265 int indexOf(CSSValue element, [int start = 0]) => 20363 int indexOf(CSSValue element, [int start = 0]) =>
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
20333 } 20431 }
20334 20432
20335 void addLast(ClientRect value) { 20433 void addLast(ClientRect value) {
20336 throw new UnsupportedError("Cannot add to immutable List."); 20434 throw new UnsupportedError("Cannot add to immutable List.");
20337 } 20435 }
20338 20436
20339 void addAll(Collection<ClientRect> collection) { 20437 void addAll(Collection<ClientRect> collection) {
20340 throw new UnsupportedError("Cannot add to immutable List."); 20438 throw new UnsupportedError("Cannot add to immutable List.");
20341 } 20439 }
20342 20440
20343 bool contains(ClientRect element) => _Collections.contains(this, element); 20441 bool contains(ClientRect element) => Collections.contains(this, element);
20344 20442
20345 void forEach(void f(ClientRect element)) => _Collections.forEach(this, f); 20443 void forEach(void f(ClientRect element)) => Collections.forEach(this, f);
20346 20444
20347 Collection map(f(ClientRect element)) => _Collections.map(this, [], f); 20445 Collection map(f(ClientRect element)) => Collections.map(this, [], f);
20348 20446
20349 Collection<ClientRect> filter(bool f(ClientRect element)) => 20447 Collection<ClientRect> filter(bool f(ClientRect element)) =>
20350 _Collections.filter(this, <ClientRect>[], f); 20448 Collections.filter(this, <ClientRect>[], f);
20351 20449
20352 bool every(bool f(ClientRect element)) => _Collections.every(this, f); 20450 bool every(bool f(ClientRect element)) => Collections.every(this, f);
20353 20451
20354 bool some(bool f(ClientRect element)) => _Collections.some(this, f); 20452 bool some(bool f(ClientRect element)) => Collections.some(this, f);
20355 20453
20356 bool get isEmpty => this.length == 0; 20454 bool get isEmpty => this.length == 0;
20357 20455
20358 // From List<ClientRect>: 20456 // From List<ClientRect>:
20359 20457
20360 void sort([Comparator<ClientRect> compare = Comparable.compare]) { 20458 void sort([Comparator<ClientRect> compare = Comparable.compare]) {
20361 throw new UnsupportedError("Cannot sort immutable List."); 20459 throw new UnsupportedError("Cannot sort immutable List.");
20362 } 20460 }
20363 20461
20364 int indexOf(ClientRect element, [int start = 0]) => 20462 int indexOf(ClientRect element, [int start = 0]) =>
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
20443 void addLast(String value) { 20541 void addLast(String value) {
20444 throw new UnsupportedError("Cannot add to immutable List."); 20542 throw new UnsupportedError("Cannot add to immutable List.");
20445 } 20543 }
20446 20544
20447 void addAll(Collection<String> collection) { 20545 void addAll(Collection<String> collection) {
20448 throw new UnsupportedError("Cannot add to immutable List."); 20546 throw new UnsupportedError("Cannot add to immutable List.");
20449 } 20547 }
20450 20548
20451 // contains() defined by IDL. 20549 // contains() defined by IDL.
20452 20550
20453 void forEach(void f(String element)) => _Collections.forEach(this, f); 20551 void forEach(void f(String element)) => Collections.forEach(this, f);
20454 20552
20455 Collection map(f(String element)) => _Collections.map(this, [], f); 20553 Collection map(f(String element)) => Collections.map(this, [], f);
20456 20554
20457 Collection<String> filter(bool f(String element)) => 20555 Collection<String> filter(bool f(String element)) =>
20458 _Collections.filter(this, <String>[], f); 20556 Collections.filter(this, <String>[], f);
20459 20557
20460 bool every(bool f(String element)) => _Collections.every(this, f); 20558 bool every(bool f(String element)) => Collections.every(this, f);
20461 20559
20462 bool some(bool f(String element)) => _Collections.some(this, f); 20560 bool some(bool f(String element)) => Collections.some(this, f);
20463 20561
20464 bool get isEmpty => this.length == 0; 20562 bool get isEmpty => this.length == 0;
20465 20563
20466 // From List<String>: 20564 // From List<String>:
20467 20565
20468 void sort([Comparator<String> compare = Comparable.compare]) { 20566 void sort([Comparator<String> compare = Comparable.compare]) {
20469 throw new UnsupportedError("Cannot sort immutable List."); 20567 throw new UnsupportedError("Cannot sort immutable List.");
20470 } 20568 }
20471 20569
20472 int indexOf(String element, [int start = 0]) => 20570 int indexOf(String element, [int start = 0]) =>
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
20560 } 20658 }
20561 20659
20562 void addLast(Entry value) { 20660 void addLast(Entry value) {
20563 throw new UnsupportedError("Cannot add to immutable List."); 20661 throw new UnsupportedError("Cannot add to immutable List.");
20564 } 20662 }
20565 20663
20566 void addAll(Collection<Entry> collection) { 20664 void addAll(Collection<Entry> collection) {
20567 throw new UnsupportedError("Cannot add to immutable List."); 20665 throw new UnsupportedError("Cannot add to immutable List.");
20568 } 20666 }
20569 20667
20570 bool contains(Entry element) => _Collections.contains(this, element); 20668 bool contains(Entry element) => Collections.contains(this, element);
20571 20669
20572 void forEach(void f(Entry element)) => _Collections.forEach(this, f); 20670 void forEach(void f(Entry element)) => Collections.forEach(this, f);
20573 20671
20574 Collection map(f(Entry element)) => _Collections.map(this, [], f); 20672 Collection map(f(Entry element)) => Collections.map(this, [], f);
20575 20673
20576 Collection<Entry> filter(bool f(Entry element)) => 20674 Collection<Entry> filter(bool f(Entry element)) =>
20577 _Collections.filter(this, <Entry>[], f); 20675 Collections.filter(this, <Entry>[], f);
20578 20676
20579 bool every(bool f(Entry element)) => _Collections.every(this, f); 20677 bool every(bool f(Entry element)) => Collections.every(this, f);
20580 20678
20581 bool some(bool f(Entry element)) => _Collections.some(this, f); 20679 bool some(bool f(Entry element)) => Collections.some(this, f);
20582 20680
20583 bool get isEmpty => this.length == 0; 20681 bool get isEmpty => this.length == 0;
20584 20682
20585 // From List<Entry>: 20683 // From List<Entry>:
20586 20684
20587 void sort([Comparator<Entry> compare = Comparable.compare]) { 20685 void sort([Comparator<Entry> compare = Comparable.compare]) {
20588 throw new UnsupportedError("Cannot sort immutable List."); 20686 throw new UnsupportedError("Cannot sort immutable List.");
20589 } 20687 }
20590 20688
20591 int indexOf(Entry element, [int start = 0]) => 20689 int indexOf(Entry element, [int start = 0]) =>
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
20659 } 20757 }
20660 20758
20661 void addLast(EntrySync value) { 20759 void addLast(EntrySync value) {
20662 throw new UnsupportedError("Cannot add to immutable List."); 20760 throw new UnsupportedError("Cannot add to immutable List.");
20663 } 20761 }
20664 20762
20665 void addAll(Collection<EntrySync> collection) { 20763 void addAll(Collection<EntrySync> collection) {
20666 throw new UnsupportedError("Cannot add to immutable List."); 20764 throw new UnsupportedError("Cannot add to immutable List.");
20667 } 20765 }
20668 20766
20669 bool contains(EntrySync element) => _Collections.contains(this, element); 20767 bool contains(EntrySync element) => Collections.contains(this, element);
20670 20768
20671 void forEach(void f(EntrySync element)) => _Collections.forEach(this, f); 20769 void forEach(void f(EntrySync element)) => Collections.forEach(this, f);
20672 20770
20673 Collection map(f(EntrySync element)) => _Collections.map(this, [], f); 20771 Collection map(f(EntrySync element)) => Collections.map(this, [], f);
20674 20772
20675 Collection<EntrySync> filter(bool f(EntrySync element)) => 20773 Collection<EntrySync> filter(bool f(EntrySync element)) =>
20676 _Collections.filter(this, <EntrySync>[], f); 20774 Collections.filter(this, <EntrySync>[], f);
20677 20775
20678 bool every(bool f(EntrySync element)) => _Collections.every(this, f); 20776 bool every(bool f(EntrySync element)) => Collections.every(this, f);
20679 20777
20680 bool some(bool f(EntrySync element)) => _Collections.some(this, f); 20778 bool some(bool f(EntrySync element)) => Collections.some(this, f);
20681 20779
20682 bool get isEmpty => this.length == 0; 20780 bool get isEmpty => this.length == 0;
20683 20781
20684 // From List<EntrySync>: 20782 // From List<EntrySync>:
20685 20783
20686 void sort([Comparator<EntrySync> compare = Comparable.compare]) { 20784 void sort([Comparator<EntrySync> compare = Comparable.compare]) {
20687 throw new UnsupportedError("Cannot sort immutable List."); 20785 throw new UnsupportedError("Cannot sort immutable List.");
20688 } 20786 }
20689 20787
20690 int indexOf(EntrySync element, [int start = 0]) => 20788 int indexOf(EntrySync element, [int start = 0]) =>
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
20730 20828
20731 class _EventSourceFactoryProvider { 20829 class _EventSourceFactoryProvider {
20732 static EventSource createEventSource(String scriptUrl) => 20830 static EventSource createEventSource(String scriptUrl) =>
20733 JS('EventSource', 'new EventSource(#)', scriptUrl); 20831 JS('EventSource', 'new EventSource(#)', scriptUrl);
20734 } 20832 }
20735 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20833 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20736 // for details. All rights reserved. Use of this source code is governed by a 20834 // for details. All rights reserved. Use of this source code is governed by a
20737 // BSD-style license that can be found in the LICENSE file. 20835 // BSD-style license that can be found in the LICENSE file.
20738 20836
20739 20837
20740 /// @domName FileList; @docsEditable true
20741 class _FileList implements JavaScriptIndexingBehavior, List<File> native "*FileL ist" {
20742
20743 /// @domName FileList.length; @docsEditable true
20744 final int length;
20745
20746 File operator[](int index) => JS("File", "#[#]", this, index);
20747
20748 void operator[]=(int index, File value) {
20749 throw new UnsupportedError("Cannot assign element of immutable List.");
20750 }
20751 // -- start List<File> mixins.
20752 // File is the element type.
20753
20754 // From Iterable<File>:
20755
20756 Iterator<File> iterator() {
20757 // Note: NodeLists are not fixed size. And most probably length shouldn't
20758 // be cached in both iterator _and_ forEach method. For now caching it
20759 // for consistency.
20760 return new FixedSizeListIterator<File>(this);
20761 }
20762
20763 // From Collection<File>:
20764
20765 void add(File value) {
20766 throw new UnsupportedError("Cannot add to immutable List.");
20767 }
20768
20769 void addLast(File value) {
20770 throw new UnsupportedError("Cannot add to immutable List.");
20771 }
20772
20773 void addAll(Collection<File> collection) {
20774 throw new UnsupportedError("Cannot add to immutable List.");
20775 }
20776
20777 bool contains(File element) => _Collections.contains(this, element);
20778
20779 void forEach(void f(File element)) => _Collections.forEach(this, f);
20780
20781 Collection map(f(File element)) => _Collections.map(this, [], f);
20782
20783 Collection<File> filter(bool f(File element)) =>
20784 _Collections.filter(this, <File>[], f);
20785
20786 bool every(bool f(File element)) => _Collections.every(this, f);
20787
20788 bool some(bool f(File element)) => _Collections.some(this, f);
20789
20790 bool get isEmpty => this.length == 0;
20791
20792 // From List<File>:
20793
20794 void sort([Comparator<File> compare = Comparable.compare]) {
20795 throw new UnsupportedError("Cannot sort immutable List.");
20796 }
20797
20798 int indexOf(File element, [int start = 0]) =>
20799 _Lists.indexOf(this, element, start, this.length);
20800
20801 int lastIndexOf(File element, [int start]) {
20802 if (start == null) start = length - 1;
20803 return _Lists.lastIndexOf(this, element, start);
20804 }
20805
20806 File get first => this[0];
20807
20808 File get last => this[length - 1];
20809
20810 File removeLast() {
20811 throw new UnsupportedError("Cannot removeLast on immutable List.");
20812 }
20813
20814 void setRange(int start, int rangeLength, List<File> from, [int startFrom]) {
20815 throw new UnsupportedError("Cannot setRange on immutable List.");
20816 }
20817
20818 void removeRange(int start, int rangeLength) {
20819 throw new UnsupportedError("Cannot removeRange on immutable List.");
20820 }
20821
20822 void insertRange(int start, int rangeLength, [File initialValue]) {
20823 throw new UnsupportedError("Cannot insertRange on immutable List.");
20824 }
20825
20826 List<File> getRange(int start, int rangeLength) =>
20827 _Lists.getRange(this, start, rangeLength, <File>[]);
20828
20829 // -- end List<File> mixins.
20830
20831 /// @domName FileList.item; @docsEditable true
20832 File item(int index) native;
20833 }
20834 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20835 // for details. All rights reserved. Use of this source code is governed by a
20836 // BSD-style license that can be found in the LICENSE file.
20837
20838
20839 class _FileReaderFactoryProvider { 20838 class _FileReaderFactoryProvider {
20840 static FileReader createFileReader() => 20839 static FileReader createFileReader() =>
20841 JS('FileReader', 'new FileReader()' ); 20840 JS('FileReader', 'new FileReader()' );
20842 } 20841 }
20843 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20842 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20844 // for details. All rights reserved. Use of this source code is governed by a 20843 // for details. All rights reserved. Use of this source code is governed by a
20845 // BSD-style license that can be found in the LICENSE file. 20844 // BSD-style license that can be found in the LICENSE file.
20846 20845
20847 20846
20848 class _FileReaderSyncFactoryProvider { 20847 class _FileReaderSyncFactoryProvider {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
20895 } 20894 }
20896 20895
20897 void addLast(Gamepad value) { 20896 void addLast(Gamepad value) {
20898 throw new UnsupportedError("Cannot add to immutable List."); 20897 throw new UnsupportedError("Cannot add to immutable List.");
20899 } 20898 }
20900 20899
20901 void addAll(Collection<Gamepad> collection) { 20900 void addAll(Collection<Gamepad> collection) {
20902 throw new UnsupportedError("Cannot add to immutable List."); 20901 throw new UnsupportedError("Cannot add to immutable List.");
20903 } 20902 }
20904 20903
20905 bool contains(Gamepad element) => _Collections.contains(this, element); 20904 bool contains(Gamepad element) => Collections.contains(this, element);
20906 20905
20907 void forEach(void f(Gamepad element)) => _Collections.forEach(this, f); 20906 void forEach(void f(Gamepad element)) => Collections.forEach(this, f);
20908 20907
20909 Collection map(f(Gamepad element)) => _Collections.map(this, [], f); 20908 Collection map(f(Gamepad element)) => Collections.map(this, [], f);
20910 20909
20911 Collection<Gamepad> filter(bool f(Gamepad element)) => 20910 Collection<Gamepad> filter(bool f(Gamepad element)) =>
20912 _Collections.filter(this, <Gamepad>[], f); 20911 Collections.filter(this, <Gamepad>[], f);
20913 20912
20914 bool every(bool f(Gamepad element)) => _Collections.every(this, f); 20913 bool every(bool f(Gamepad element)) => Collections.every(this, f);
20915 20914
20916 bool some(bool f(Gamepad element)) => _Collections.some(this, f); 20915 bool some(bool f(Gamepad element)) => Collections.some(this, f);
20917 20916
20918 bool get isEmpty => this.length == 0; 20917 bool get isEmpty => this.length == 0;
20919 20918
20920 // From List<Gamepad>: 20919 // From List<Gamepad>:
20921 20920
20922 void sort([Comparator<Gamepad> compare = Comparable.compare]) { 20921 void sort([Comparator<Gamepad> compare = Comparable.compare]) {
20923 throw new UnsupportedError("Cannot sort immutable List."); 20922 throw new UnsupportedError("Cannot sort immutable List.");
20924 } 20923 }
20925 20924
20926 int indexOf(Gamepad element, [int start = 0]) => 20925 int indexOf(Gamepad element, [int start = 0]) =>
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
21047 } 21046 }
21048 21047
21049 void addLast(MediaStream value) { 21048 void addLast(MediaStream value) {
21050 throw new UnsupportedError("Cannot add to immutable List."); 21049 throw new UnsupportedError("Cannot add to immutable List.");
21051 } 21050 }
21052 21051
21053 void addAll(Collection<MediaStream> collection) { 21052 void addAll(Collection<MediaStream> collection) {
21054 throw new UnsupportedError("Cannot add to immutable List."); 21053 throw new UnsupportedError("Cannot add to immutable List.");
21055 } 21054 }
21056 21055
21057 bool contains(MediaStream element) => _Collections.contains(this, element); 21056 bool contains(MediaStream element) => Collections.contains(this, element);
21058 21057
21059 void forEach(void f(MediaStream element)) => _Collections.forEach(this, f); 21058 void forEach(void f(MediaStream element)) => Collections.forEach(this, f);
21060 21059
21061 Collection map(f(MediaStream element)) => _Collections.map(this, [], f); 21060 Collection map(f(MediaStream element)) => Collections.map(this, [], f);
21062 21061
21063 Collection<MediaStream> filter(bool f(MediaStream element)) => 21062 Collection<MediaStream> filter(bool f(MediaStream element)) =>
21064 _Collections.filter(this, <MediaStream>[], f); 21063 Collections.filter(this, <MediaStream>[], f);
21065 21064
21066 bool every(bool f(MediaStream element)) => _Collections.every(this, f); 21065 bool every(bool f(MediaStream element)) => Collections.every(this, f);
21067 21066
21068 bool some(bool f(MediaStream element)) => _Collections.some(this, f); 21067 bool some(bool f(MediaStream element)) => Collections.some(this, f);
21069 21068
21070 bool get isEmpty => this.length == 0; 21069 bool get isEmpty => this.length == 0;
21071 21070
21072 // From List<MediaStream>: 21071 // From List<MediaStream>:
21073 21072
21074 void sort([Comparator<MediaStream> compare = Comparable.compare]) { 21073 void sort([Comparator<MediaStream> compare = Comparable.compare]) {
21075 throw new UnsupportedError("Cannot sort immutable List."); 21074 throw new UnsupportedError("Cannot sort immutable List.");
21076 } 21075 }
21077 21076
21078 int indexOf(MediaStream element, [int start = 0]) => 21077 int indexOf(MediaStream element, [int start = 0]) =>
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
21299 } 21298 }
21300 21299
21301 void addLast(SpeechInputResult value) { 21300 void addLast(SpeechInputResult value) {
21302 throw new UnsupportedError("Cannot add to immutable List."); 21301 throw new UnsupportedError("Cannot add to immutable List.");
21303 } 21302 }
21304 21303
21305 void addAll(Collection<SpeechInputResult> collection) { 21304 void addAll(Collection<SpeechInputResult> collection) {
21306 throw new UnsupportedError("Cannot add to immutable List."); 21305 throw new UnsupportedError("Cannot add to immutable List.");
21307 } 21306 }
21308 21307
21309 bool contains(SpeechInputResult element) => _Collections.contains(this, elemen t); 21308 bool contains(SpeechInputResult element) => Collections.contains(this, element );
21310 21309
21311 void forEach(void f(SpeechInputResult element)) => _Collections.forEach(this, f); 21310 void forEach(void f(SpeechInputResult element)) => Collections.forEach(this, f );
21312 21311
21313 Collection map(f(SpeechInputResult element)) => _Collections.map(this, [], f); 21312 Collection map(f(SpeechInputResult element)) => Collections.map(this, [], f);
21314 21313
21315 Collection<SpeechInputResult> filter(bool f(SpeechInputResult element)) => 21314 Collection<SpeechInputResult> filter(bool f(SpeechInputResult element)) =>
21316 _Collections.filter(this, <SpeechInputResult>[], f); 21315 Collections.filter(this, <SpeechInputResult>[], f);
21317 21316
21318 bool every(bool f(SpeechInputResult element)) => _Collections.every(this, f); 21317 bool every(bool f(SpeechInputResult element)) => Collections.every(this, f);
21319 21318
21320 bool some(bool f(SpeechInputResult element)) => _Collections.some(this, f); 21319 bool some(bool f(SpeechInputResult element)) => Collections.some(this, f);
21321 21320
21322 bool get isEmpty => this.length == 0; 21321 bool get isEmpty => this.length == 0;
21323 21322
21324 // From List<SpeechInputResult>: 21323 // From List<SpeechInputResult>:
21325 21324
21326 void sort([Comparator<SpeechInputResult> compare = Comparable.compare]) { 21325 void sort([Comparator<SpeechInputResult> compare = Comparable.compare]) {
21327 throw new UnsupportedError("Cannot sort immutable List."); 21326 throw new UnsupportedError("Cannot sort immutable List.");
21328 } 21327 }
21329 21328
21330 int indexOf(SpeechInputResult element, [int start = 0]) => 21329 int indexOf(SpeechInputResult element, [int start = 0]) =>
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
21407 } 21406 }
21408 21407
21409 void addLast(SpeechRecognitionResult value) { 21408 void addLast(SpeechRecognitionResult value) {
21410 throw new UnsupportedError("Cannot add to immutable List."); 21409 throw new UnsupportedError("Cannot add to immutable List.");
21411 } 21410 }
21412 21411
21413 void addAll(Collection<SpeechRecognitionResult> collection) { 21412 void addAll(Collection<SpeechRecognitionResult> collection) {
21414 throw new UnsupportedError("Cannot add to immutable List."); 21413 throw new UnsupportedError("Cannot add to immutable List.");
21415 } 21414 }
21416 21415
21417 bool contains(SpeechRecognitionResult element) => _Collections.contains(this, element); 21416 bool contains(SpeechRecognitionResult element) => Collections.contains(this, e lement);
21418 21417
21419 void forEach(void f(SpeechRecognitionResult element)) => _Collections.forEach( this, f); 21418 void forEach(void f(SpeechRecognitionResult element)) => Collections.forEach(t his, f);
21420 21419
21421 Collection map(f(SpeechRecognitionResult element)) => _Collections.map(this, [ ], f); 21420 Collection map(f(SpeechRecognitionResult element)) => Collections.map(this, [] , f);
21422 21421
21423 Collection<SpeechRecognitionResult> filter(bool f(SpeechRecognitionResult elem ent)) => 21422 Collection<SpeechRecognitionResult> filter(bool f(SpeechRecognitionResult elem ent)) =>
21424 _Collections.filter(this, <SpeechRecognitionResult>[], f); 21423 Collections.filter(this, <SpeechRecognitionResult>[], f);
21425 21424
21426 bool every(bool f(SpeechRecognitionResult element)) => _Collections.every(this , f); 21425 bool every(bool f(SpeechRecognitionResult element)) => Collections.every(this, f);
21427 21426
21428 bool some(bool f(SpeechRecognitionResult element)) => _Collections.some(this, f); 21427 bool some(bool f(SpeechRecognitionResult element)) => Collections.some(this, f );
21429 21428
21430 bool get isEmpty => this.length == 0; 21429 bool get isEmpty => this.length == 0;
21431 21430
21432 // From List<SpeechRecognitionResult>: 21431 // From List<SpeechRecognitionResult>:
21433 21432
21434 void sort([Comparator<SpeechRecognitionResult> compare = Comparable.compare]) { 21433 void sort([Comparator<SpeechRecognitionResult> compare = Comparable.compare]) {
21435 throw new UnsupportedError("Cannot sort immutable List."); 21434 throw new UnsupportedError("Cannot sort immutable List.");
21436 } 21435 }
21437 21436
21438 int indexOf(SpeechRecognitionResult element, [int start = 0]) => 21437 int indexOf(SpeechRecognitionResult element, [int start = 0]) =>
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
21506 } 21505 }
21507 21506
21508 void addLast(StyleSheet value) { 21507 void addLast(StyleSheet value) {
21509 throw new UnsupportedError("Cannot add to immutable List."); 21508 throw new UnsupportedError("Cannot add to immutable List.");
21510 } 21509 }
21511 21510
21512 void addAll(Collection<StyleSheet> collection) { 21511 void addAll(Collection<StyleSheet> collection) {
21513 throw new UnsupportedError("Cannot add to immutable List."); 21512 throw new UnsupportedError("Cannot add to immutable List.");
21514 } 21513 }
21515 21514
21516 bool contains(StyleSheet element) => _Collections.contains(this, element); 21515 bool contains(StyleSheet element) => Collections.contains(this, element);
21517 21516
21518 void forEach(void f(StyleSheet element)) => _Collections.forEach(this, f); 21517 void forEach(void f(StyleSheet element)) => Collections.forEach(this, f);
21519 21518
21520 Collection map(f(StyleSheet element)) => _Collections.map(this, [], f); 21519 Collection map(f(StyleSheet element)) => Collections.map(this, [], f);
21521 21520
21522 Collection<StyleSheet> filter(bool f(StyleSheet element)) => 21521 Collection<StyleSheet> filter(bool f(StyleSheet element)) =>
21523 _Collections.filter(this, <StyleSheet>[], f); 21522 Collections.filter(this, <StyleSheet>[], f);
21524 21523
21525 bool every(bool f(StyleSheet element)) => _Collections.every(this, f); 21524 bool every(bool f(StyleSheet element)) => Collections.every(this, f);
21526 21525
21527 bool some(bool f(StyleSheet element)) => _Collections.some(this, f); 21526 bool some(bool f(StyleSheet element)) => Collections.some(this, f);
21528 21527
21529 bool get isEmpty => this.length == 0; 21528 bool get isEmpty => this.length == 0;
21530 21529
21531 // From List<StyleSheet>: 21530 // From List<StyleSheet>:
21532 21531
21533 void sort([Comparator<StyleSheet> compare = Comparable.compare]) { 21532 void sort([Comparator<StyleSheet> compare = Comparable.compare]) {
21534 throw new UnsupportedError("Cannot sort immutable List."); 21533 throw new UnsupportedError("Cannot sort immutable List.");
21535 } 21534 }
21536 21535
21537 int indexOf(StyleSheet element, [int start = 0]) => 21536 int indexOf(StyleSheet element, [int start = 0]) =>
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
21629 } 21628 }
21630 21629
21631 void addLast(Animation value) { 21630 void addLast(Animation value) {
21632 throw new UnsupportedError("Cannot add to immutable List."); 21631 throw new UnsupportedError("Cannot add to immutable List.");
21633 } 21632 }
21634 21633
21635 void addAll(Collection<Animation> collection) { 21634 void addAll(Collection<Animation> collection) {
21636 throw new UnsupportedError("Cannot add to immutable List."); 21635 throw new UnsupportedError("Cannot add to immutable List.");
21637 } 21636 }
21638 21637
21639 bool contains(Animation element) => _Collections.contains(this, element); 21638 bool contains(Animation element) => Collections.contains(this, element);
21640 21639
21641 void forEach(void f(Animation element)) => _Collections.forEach(this, f); 21640 void forEach(void f(Animation element)) => Collections.forEach(this, f);
21642 21641
21643 Collection map(f(Animation element)) => _Collections.map(this, [], f); 21642 Collection map(f(Animation element)) => Collections.map(this, [], f);
21644 21643
21645 Collection<Animation> filter(bool f(Animation element)) => 21644 Collection<Animation> filter(bool f(Animation element)) =>
21646 _Collections.filter(this, <Animation>[], f); 21645 Collections.filter(this, <Animation>[], f);
21647 21646
21648 bool every(bool f(Animation element)) => _Collections.every(this, f); 21647 bool every(bool f(Animation element)) => Collections.every(this, f);
21649 21648
21650 bool some(bool f(Animation element)) => _Collections.some(this, f); 21649 bool some(bool f(Animation element)) => Collections.some(this, f);
21651 21650
21652 bool get isEmpty => this.length == 0; 21651 bool get isEmpty => this.length == 0;
21653 21652
21654 // From List<Animation>: 21653 // From List<Animation>:
21655 21654
21656 void sort([Comparator<Animation> compare = Comparable.compare]) { 21655 void sort([Comparator<Animation> compare = Comparable.compare]) {
21657 throw new UnsupportedError("Cannot sort immutable List."); 21656 throw new UnsupportedError("Cannot sort immutable List.");
21658 } 21657 }
21659 21658
21660 int indexOf(Animation element, [int start = 0]) => 21659 int indexOf(Animation element, [int start = 0]) =>
(...skipping 1907 matching lines...) Expand 10 before | Expand all | Expand 10 after
23568 canceller = window.clearInterval; 23567 canceller = window.clearInterval;
23569 } else { 23568 } else {
23570 maker = window.setTimeout; 23569 maker = window.setTimeout;
23571 canceller = window.clearTimeout; 23570 canceller = window.clearTimeout;
23572 } 23571 }
23573 Timer timer; 23572 Timer timer;
23574 final int id = maker(() { callback(timer); }, milliSeconds); 23573 final int id = maker(() { callback(timer); }, milliSeconds);
23575 timer = new _Timer(() { canceller(id); }); 23574 timer = new _Timer(() { canceller(id); });
23576 return timer; 23575 return timer;
23577 }; 23576 };
23578 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
23579 // for details. All rights reserved. Use of this source code is governed by a
23580 // BSD-style license that can be found in the LICENSE file.
23581
23582
23583 /**
23584 * The [Collections] class implements static methods useful when
23585 * writing a class that implements [Collection] and the [iterator]
23586 * method.
23587 */
23588 class _Collections {
23589 static bool contains(Iterable<Object> iterable, Object element) {
23590 for (final e in iterable) {
23591 if (e == element) return true;
23592 }
23593 return false;
23594 }
23595
23596 static void forEach(Iterable<Object> iterable, void f(Object o)) {
23597 for (final e in iterable) {
23598 f(e);
23599 }
23600 }
23601
23602 static List map(Iterable<Object> source,
23603 List<Object> destination,
23604 f(o)) {
23605 for (final e in source) {
23606 destination.add(f(e));
23607 }
23608 return destination;
23609 }
23610
23611 static bool some(Iterable<Object> iterable, bool f(Object o)) {
23612 for (final e in iterable) {
23613 if (f(e)) return true;
23614 }
23615 return false;
23616 }
23617
23618 static bool every(Iterable<Object> iterable, bool f(Object o)) {
23619 for (final e in iterable) {
23620 if (!f(e)) return false;
23621 }
23622 return true;
23623 }
23624
23625 static List filter(Iterable<Object> source,
23626 List<Object> destination,
23627 bool f(o)) {
23628 for (final e in source) {
23629 if (f(e)) destination.add(e);
23630 }
23631 return destination;
23632 }
23633
23634 static bool isEmpty(Iterable<Object> iterable) {
23635 return !iterable.iterator().hasNext;
23636 }
23637 }
23638 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23577 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23639 // for details. All rights reserved. Use of this source code is governed by a 23578 // for details. All rights reserved. Use of this source code is governed by a
23640 // BSD-style license that can be found in the LICENSE file. 23579 // BSD-style license that can be found in the LICENSE file.
23641 23580
23642 23581
23643 class _HttpRequestUtils { 23582 class _HttpRequestUtils {
23644 23583
23645 // Helper for factory HttpRequest.get 23584 // Helper for factory HttpRequest.get
23646 static HttpRequest get(String url, 23585 static HttpRequest get(String url,
23647 onSuccess(HttpRequest request), 23586 onSuccess(HttpRequest request),
(...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after
24450 // with native names. 24389 // with native names.
24451 _convertDartToNative_ImageData(ImageData imageData) { 24390 _convertDartToNative_ImageData(ImageData imageData) {
24452 if (imageData is _TypedImageData) { 24391 if (imageData is _TypedImageData) {
24453 return JS('', '{data: #, height: #, width: #}', 24392 return JS('', '{data: #, height: #, width: #}',
24454 imageData.data, imageData.height, imageData.width); 24393 imageData.data, imageData.height, imageData.width);
24455 } 24394 }
24456 return imageData; 24395 return imageData;
24457 } 24396 }
24458 24397
24459 24398
24460 /// Converts a JavaScript object with properties into a Dart Map.
24461 /// Not suitable for nested objects.
24462 Map _convertNativeToDart_Dictionary(object) {
24463 if (object == null) return null;
24464 var dict = {};
24465 for (final key in JS('=List', 'Object.getOwnPropertyNames(#)', object)) {
24466 dict[key] = JS('var', '#[#]', object, key);
24467 }
24468 return dict;
24469 }
24470
24471 /// Converts a flat Dart map into a JavaScript object with properties.
24472 _convertDartToNative_Dictionary(Map dict) {
24473 if (dict == null) return null;
24474 var object = JS('var', '{}');
24475 dict.forEach((String key, value) {
24476 JS('void', '#[#] = #', object, key, value);
24477 });
24478 return object;
24479 }
24480
24481
24482 /**
24483 * Ensures that the input is a JavaScript Array.
24484 *
24485 * Creates a new JavaScript array if necessary, otherwise returns the original.
24486 */
24487 List _convertDartToNative_StringArray(List<String> input) {
24488 // TODO(sra). Implement this.
24489 return input;
24490 }
24491
24492
24493 // ----------------------------------------------------------------------------- 24399 // -----------------------------------------------------------------------------
24494 24400
24495 /** 24401 /**
24496 * Converts a native IDBKey into a Dart object. 24402 * Converts a native IDBKey into a Dart object.
24497 * 24403 *
24498 * May return the original input. May mutate the original input (but will be 24404 * May return the original input. May mutate the original input (but will be
24499 * idempotent if mutation occurs). It is assumed that this conversion happens 24405 * idempotent if mutation occurs). It is assumed that this conversion happens
24500 * on native IDBKeys on all paths that return IDBKeys from native DOM calls. 24406 * on native IDBKeys on all paths that return IDBKeys from native DOM calls.
24501 * 24407 *
24502 * If necessary, JavaScript Dates are converted into Dart Dates. 24408 * If necessary, JavaScript Dates are converted into Dart Dates.
24503 */ 24409 */
24504 _convertNativeToDart_IDBKey(nativeKey) { 24410 _convertNativeToDart_IDBKey(nativeKey) {
24505 containsDate(object) { 24411 containsDate(object) {
24506 if (_isJavaScriptDate(object)) return true; 24412 if (isJavaScriptDate(object)) return true;
24507 if (object is List) { 24413 if (object is List) {
24508 for (int i = 0; i < object.length; i++) { 24414 for (int i = 0; i < object.length; i++) {
24509 if (containsDate(object[i])) return true; 24415 if (containsDate(object[i])) return true;
24510 } 24416 }
24511 } 24417 }
24512 return false; // number, string. 24418 return false; // number, string.
24513 } 24419 }
24514 if (containsDate(nativeKey)) { 24420 if (containsDate(nativeKey)) {
24515 throw new UnimplementedError('IDBKey containing Date'); 24421 throw new UnimplementedError('IDBKey containing Date');
24516 } 24422 }
(...skipping 11 matching lines...) Expand all
24528 */ 24434 */
24529 _convertDartToNative_IDBKey(dartKey) { 24435 _convertDartToNative_IDBKey(dartKey) {
24530 // TODO: Implement. 24436 // TODO: Implement.
24531 return dartKey; 24437 return dartKey;
24532 } 24438 }
24533 24439
24534 24440
24535 24441
24536 /// May modify original. If so, action is idempotent. 24442 /// May modify original. If so, action is idempotent.
24537 _convertNativeToDart_IDBAny(object) { 24443 _convertNativeToDart_IDBAny(object) {
24538 return _convertNativeToDart_AcceptStructuredClone(object, mustCopy: false); 24444 return convertNativeToDart_AcceptStructuredClone(object, mustCopy: false);
24539 }
24540
24541 /// Converts a Dart value into a JavaScript SerializedScriptValue.
24542 _convertDartToNative_SerializedScriptValue(value) {
24543 return _convertDartToNative_PrepareForStructuredClone(value);
24544 }
24545
24546 /// Since the source object may be viewed via a JavaScript event listener the
24547 /// original may not be modified.
24548 _convertNativeToDart_SerializedScriptValue(object) {
24549 return _convertNativeToDart_AcceptStructuredClone(object, mustCopy: true);
24550 } 24445 }
24551 24446
24552 24447
24553 /**
24554 * Converts a Dart value into a JavaScript SerializedScriptValue. Returns the
24555 * original input or a functional 'copy'. Does not mutate the original.
24556 *
24557 * The main transformation is the translation of Dart Maps are converted to
24558 * JavaScript Objects.
24559 *
24560 * The algorithm is essentially a dry-run of the structured clone algorithm
24561 * described at
24562 * http://www.whatwg.org/specs/web-apps/current-work/multipage/common-dom-interf aces.html#structured-clone
24563 * https://www.khronos.org/registry/typedarray/specs/latest/#9
24564 *
24565 * Since the result of this function is expected to be passed only to JavaScript
24566 * operations that perform the structured clone algorithm which does not mutate
24567 * its output, the result may share structure with the input [value].
24568 */
24569 _convertDartToNative_PrepareForStructuredClone(value) {
24570
24571 // TODO(sra): Replace slots with identity hash table.
24572 var values = [];
24573 var copies = []; // initially 'null', 'true' during initial DFS, then a copy.
24574
24575 int findSlot(value) {
24576 int length = values.length;
24577 for (int i = 0; i < length; i++) {
24578 if (identical(values[i], value)) return i;
24579 }
24580 values.add(value);
24581 copies.add(null);
24582 return length;
24583 }
24584 readSlot(int i) => copies[i];
24585 writeSlot(int i, x) { copies[i] = x; }
24586 cleanupSlots() {} // Will be needed if we mark objects with a property.
24587
24588 // Returns the input, or a clone of the input.
24589 walk(e) {
24590 if (e == null) return e;
24591 if (e is bool) return e;
24592 if (e is num) return e;
24593 if (e is String) return e;
24594 if (e is Date) {
24595 // TODO(sra).
24596 throw new UnimplementedError('structured clone of Date');
24597 }
24598 if (e is RegExp) {
24599 // TODO(sra).
24600 throw new UnimplementedError('structured clone of RegExp');
24601 }
24602
24603 // The browser's internal structured cloning algorithm will copy certain
24604 // types of object, but it will copy only its own implementations and not
24605 // just any Dart implementations of the interface.
24606
24607 // TODO(sra): The JavaScript objects suitable for direct cloning by the
24608 // structured clone algorithm could be tagged with an private interface.
24609
24610 if (e is File) return e;
24611 if (e is Blob) return e;
24612 if (e is _FileList) return e;
24613
24614 // TODO(sra): Firefox: How to convert _TypedImageData on the other end?
24615 if (e is ImageData) return e;
24616 if (e is ArrayBuffer) return e;
24617
24618 if (e is ArrayBufferView) return e;
24619
24620 if (e is Map) {
24621 var slot = findSlot(e);
24622 var copy = readSlot(slot);
24623 if (copy != null) return copy;
24624 copy = JS('var', '{}');
24625 writeSlot(slot, copy);
24626 e.forEach((key, value) {
24627 JS('void', '#[#] = #', copy, key, walk(value));
24628 });
24629 return copy;
24630 }
24631
24632 if (e is List) {
24633 // Since a JavaScript Array is an instance of Dart List it is possible to
24634 // avoid making a copy of the list if there is no need to copy anything
24635 // reachable from the array. We defer creating a new array until a cycle
24636 // is detected or a subgraph was copied.
24637 int length = e.length;
24638 var slot = findSlot(e);
24639 var copy = readSlot(slot);
24640 if (copy != null) {
24641 if (true == copy) { // Cycle, so commit to making a copy.
24642 copy = JS('=List', 'new Array(#)', length);
24643 writeSlot(slot, copy);
24644 }
24645 return copy;
24646 }
24647
24648 int i = 0;
24649
24650 if (_isJavaScriptArray(e) &&
24651 // We have to copy immutable lists, otherwise the structured clone
24652 // algorithm will copy the .immutable$list marker property, making the
24653 // list immutable when received!
24654 !_isImmutableJavaScriptArray(e)) {
24655 writeSlot(slot, true); // Deferred copy.
24656 for ( ; i < length; i++) {
24657 var element = e[i];
24658 var elementCopy = walk(element);
24659 if (!identical(elementCopy, element)) {
24660 copy = readSlot(slot); // Cyclic reference may have created it.
24661 if (true == copy) {
24662 copy = JS('=List', 'new Array(#)', length);
24663 writeSlot(slot, copy);
24664 }
24665 for (int j = 0; j < i; j++) {
24666 copy[j] = e[j];
24667 }
24668 copy[i] = elementCopy;
24669 i++;
24670 break;
24671 }
24672 }
24673 if (copy == null) {
24674 copy = e;
24675 writeSlot(slot, copy);
24676 }
24677 } else {
24678 // Not a JavaScript Array. We are forced to make a copy.
24679 copy = JS('=List', 'new Array(#)', length);
24680 writeSlot(slot, copy);
24681 }
24682
24683 for ( ; i < length; i++) {
24684 copy[i] = walk(e[i]);
24685 }
24686 return copy;
24687 }
24688
24689 throw new UnimplementedError('structured clone of other type');
24690 }
24691
24692 var copy = walk(value);
24693 cleanupSlots();
24694 return copy;
24695 }
24696
24697 /**
24698 * Converts a native value into a Dart object.
24699 *
24700 * If [mustCopy] is [:false:], may return the original input. May mutate the
24701 * original input (but will be idempotent if mutation occurs). It is assumed
24702 * that this conversion happens on native serializable script values such values
24703 * from native DOM calls.
24704 *
24705 * [object] is the result of a structured clone operation.
24706 *
24707 * If necessary, JavaScript Dates are converted into Dart Dates.
24708 *
24709 * If [mustCopy] is [:true:], the entire object is copied and the original input
24710 * is not mutated. This should be the case where Dart and JavaScript code can
24711 * access the value, for example, via multiple event listeners for
24712 * MessageEvents. Mutating the object to make it more 'Dart-like' would corrupt
24713 * the value as seen from the JavaScript listeners.
24714 */
24715 _convertNativeToDart_AcceptStructuredClone(object, {mustCopy = false}) {
24716
24717 // TODO(sra): Replace slots with identity hash table that works on non-dart
24718 // objects.
24719 var values = [];
24720 var copies = [];
24721
24722 int findSlot(value) {
24723 int length = values.length;
24724 for (int i = 0; i < length; i++) {
24725 if (identical(values[i], value)) return i;
24726 }
24727 values.add(value);
24728 copies.add(null);
24729 return length;
24730 }
24731 readSlot(int i) => copies[i];
24732 writeSlot(int i, x) { copies[i] = x; }
24733
24734 walk(e) {
24735 if (e == null) return e;
24736 if (e is bool) return e;
24737 if (e is num) return e;
24738 if (e is String) return e;
24739
24740 if (_isJavaScriptDate(e)) {
24741 // TODO(sra).
24742 throw new UnimplementedError('structured clone of Date');
24743 }
24744
24745 if (_isJavaScriptRegExp(e)) {
24746 // TODO(sra).
24747 throw new UnimplementedError('structured clone of RegExp');
24748 }
24749
24750 if (_isJavaScriptSimpleObject(e)) {
24751 // TODO(sra): If mustCopy is false, swizzle the prototype for one of a Map
24752 // implementation that uses the properies as storage.
24753 var slot = findSlot(e);
24754 var copy = readSlot(slot);
24755 if (copy != null) return copy;
24756 copy = {};
24757
24758 writeSlot(slot, copy);
24759 for (final key in JS('=List', 'Object.keys(#)', e)) {
24760 copy[key] = walk(JS('var', '#[#]', e, key));
24761 }
24762 return copy;
24763 }
24764
24765 if (_isJavaScriptArray(e)) {
24766 var slot = findSlot(e);
24767 var copy = readSlot(slot);
24768 if (copy != null) return copy;
24769
24770 int length = e.length;
24771 // Since a JavaScript Array is an instance of Dart List, we can modify it
24772 // in-place unless we must copy.
24773 copy = mustCopy ? JS('=List', 'new Array(#)', length) : e;
24774 writeSlot(slot, copy);
24775
24776 for (int i = 0; i < length; i++) {
24777 copy[i] = walk(e[i]);
24778 }
24779 return copy;
24780 }
24781
24782 // Assume anything else is already a valid Dart object, either by having
24783 // already been processed, or e.g. a clonable native class.
24784 return e;
24785 }
24786
24787 var copy = walk(object);
24788 return copy;
24789 }
24790
24791
24792 bool _isJavaScriptDate(value) => JS('bool', '# instanceof Date', value);
24793 bool _isJavaScriptRegExp(value) => JS('bool', '# instanceof RegExp', value);
24794 bool _isJavaScriptArray(value) => JS('bool', '# instanceof Array', value);
24795 bool _isJavaScriptSimpleObject(value) =>
24796 JS('bool', 'Object.getPrototypeOf(#) === Object.prototype', value);
24797 bool _isImmutableJavaScriptArray(value) =>
24798 JS('bool', r'!!(#.immutable$list)', value);
24799
24800
24801
24802 const String _serializedScriptValue =
24803 'num|String|bool|'
24804 '=List|=Object|'
24805 'Blob|File|ArrayBuffer|ArrayBufferView'
24806 // TODO(sra): Add Date, RegExp.
24807 ;
24808 const _annotation_Creates_SerializedScriptValue =
24809 const Creates(_serializedScriptValue);
24810 const _annotation_Returns_SerializedScriptValue =
24811 const Returns(_serializedScriptValue);
24812
24813 const String _idbKey = '=List|=Object|num|String'; // TODO(sra): Add Date. 24448 const String _idbKey = '=List|=Object|num|String'; // TODO(sra): Add Date.
24814 const _annotation_Creates_IDBKey = const Creates(_idbKey); 24449 const _annotation_Creates_IDBKey = const Creates(_idbKey);
24815 const _annotation_Returns_IDBKey = const Returns(_idbKey); 24450 const _annotation_Returns_IDBKey = const Returns(_idbKey);
24816 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 24451 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24817 // for details. All rights reserved. Use of this source code is governed by a 24452 // for details. All rights reserved. Use of this source code is governed by a
24818 // BSD-style license that can be found in the LICENSE file. 24453 // BSD-style license that can be found in the LICENSE file.
24819 24454
24820 24455
24821 // TODO(vsm): Unify with Dartium version. 24456 // TODO(vsm): Unify with Dartium version.
24822 class _DOMWindowCrossFrame implements Window { 24457 class _DOMWindowCrossFrame implements Window {
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after
25444 if (length < 0) throw new ArgumentError('length'); 25079 if (length < 0) throw new ArgumentError('length');
25445 if (start < 0) throw new RangeError.value(start); 25080 if (start < 0) throw new RangeError.value(start);
25446 int end = start + length; 25081 int end = start + length;
25447 if (end > a.length) throw new RangeError.value(end); 25082 if (end > a.length) throw new RangeError.value(end);
25448 for (int i = start; i < end; i++) { 25083 for (int i = start; i < end; i++) {
25449 accumulator.add(a[i]); 25084 accumulator.add(a[i]);
25450 } 25085 }
25451 return accumulator; 25086 return accumulator;
25452 } 25087 }
25453 } 25088 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/libraries.dart ('k') | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698