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

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: Fixes to allow dart:html_common to be included in Dartium snapshots. 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
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 4743 matching lines...) Expand 10 before | Expand all | Expand 10 after
4756 /// @domName Clipboard; @docsEditable true 4757 /// @domName Clipboard; @docsEditable true
4757 class Clipboard native "*Clipboard" { 4758 class Clipboard native "*Clipboard" {
4758 4759
4759 /// @domName Clipboard.dropEffect; @docsEditable true 4760 /// @domName Clipboard.dropEffect; @docsEditable true
4760 String dropEffect; 4761 String dropEffect;
4761 4762
4762 /// @domName Clipboard.effectAllowed; @docsEditable true 4763 /// @domName Clipboard.effectAllowed; @docsEditable true
4763 String effectAllowed; 4764 String effectAllowed;
4764 4765
4765 /// @domName Clipboard.files; @docsEditable true 4766 /// @domName Clipboard.files; @docsEditable true
4766 @Returns('_FileList') @Creates('_FileList') 4767 final FileList files;
4767 final List<File> files;
4768 4768
4769 /// @domName Clipboard.items; @docsEditable true 4769 /// @domName Clipboard.items; @docsEditable true
4770 final DataTransferItemList items; 4770 final DataTransferItemList items;
4771 4771
4772 /// @domName Clipboard.types; @docsEditable true 4772 /// @domName Clipboard.types; @docsEditable true
4773 final List types; 4773 final List types;
4774 4774
4775 /// @domName Clipboard.clearData; @docsEditable true 4775 /// @domName Clipboard.clearData; @docsEditable true
4776 void clearData([String type]) native; 4776 void clearData([String type]) native;
4777 4777
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
5259 } 5259 }
5260 5260
5261 void addLast(DOMMimeType value) { 5261 void addLast(DOMMimeType value) {
5262 throw new UnsupportedError("Cannot add to immutable List."); 5262 throw new UnsupportedError("Cannot add to immutable List.");
5263 } 5263 }
5264 5264
5265 void addAll(Collection<DOMMimeType> collection) { 5265 void addAll(Collection<DOMMimeType> collection) {
5266 throw new UnsupportedError("Cannot add to immutable List."); 5266 throw new UnsupportedError("Cannot add to immutable List.");
5267 } 5267 }
5268 5268
5269 bool contains(DOMMimeType element) => _Collections.contains(this, element); 5269 bool contains(DOMMimeType element) => Collections.contains(this, element);
5270 5270
5271 void forEach(void f(DOMMimeType element)) => _Collections.forEach(this, f); 5271 void forEach(void f(DOMMimeType element)) => Collections.forEach(this, f);
5272 5272
5273 Collection map(f(DOMMimeType element)) => _Collections.map(this, [], f); 5273 Collection map(f(DOMMimeType element)) => Collections.map(this, [], f);
5274 5274
5275 Collection<DOMMimeType> filter(bool f(DOMMimeType element)) => 5275 Collection<DOMMimeType> filter(bool f(DOMMimeType element)) =>
5276 _Collections.filter(this, <DOMMimeType>[], f); 5276 Collections.filter(this, <DOMMimeType>[], f);
5277 5277
5278 bool every(bool f(DOMMimeType element)) => _Collections.every(this, f); 5278 bool every(bool f(DOMMimeType element)) => Collections.every(this, f);
5279 5279
5280 bool some(bool f(DOMMimeType element)) => _Collections.some(this, f); 5280 bool some(bool f(DOMMimeType element)) => Collections.some(this, f);
5281 5281
5282 bool get isEmpty => this.length == 0; 5282 bool get isEmpty => this.length == 0;
5283 5283
5284 // From List<DOMMimeType>: 5284 // From List<DOMMimeType>:
5285 5285
5286 void sort([Comparator<DOMMimeType> compare = Comparable.compare]) { 5286 void sort([Comparator<DOMMimeType> compare = Comparable.compare]) {
5287 throw new UnsupportedError("Cannot sort immutable List."); 5287 throw new UnsupportedError("Cannot sort immutable List.");
5288 } 5288 }
5289 5289
5290 int indexOf(DOMMimeType element, [int start = 0]) => 5290 int indexOf(DOMMimeType element, [int start = 0]) =>
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
5400 } 5400 }
5401 5401
5402 void addLast(DOMPlugin value) { 5402 void addLast(DOMPlugin value) {
5403 throw new UnsupportedError("Cannot add to immutable List."); 5403 throw new UnsupportedError("Cannot add to immutable List.");
5404 } 5404 }
5405 5405
5406 void addAll(Collection<DOMPlugin> collection) { 5406 void addAll(Collection<DOMPlugin> collection) {
5407 throw new UnsupportedError("Cannot add to immutable List."); 5407 throw new UnsupportedError("Cannot add to immutable List.");
5408 } 5408 }
5409 5409
5410 bool contains(DOMPlugin element) => _Collections.contains(this, element); 5410 bool contains(DOMPlugin element) => Collections.contains(this, element);
5411 5411
5412 void forEach(void f(DOMPlugin element)) => _Collections.forEach(this, f); 5412 void forEach(void f(DOMPlugin element)) => Collections.forEach(this, f);
5413 5413
5414 Collection map(f(DOMPlugin element)) => _Collections.map(this, [], f); 5414 Collection map(f(DOMPlugin element)) => Collections.map(this, [], f);
5415 5415
5416 Collection<DOMPlugin> filter(bool f(DOMPlugin element)) => 5416 Collection<DOMPlugin> filter(bool f(DOMPlugin element)) =>
5417 _Collections.filter(this, <DOMPlugin>[], f); 5417 Collections.filter(this, <DOMPlugin>[], f);
5418 5418
5419 bool every(bool f(DOMPlugin element)) => _Collections.every(this, f); 5419 bool every(bool f(DOMPlugin element)) => Collections.every(this, f);
5420 5420
5421 bool some(bool f(DOMPlugin element)) => _Collections.some(this, f); 5421 bool some(bool f(DOMPlugin element)) => Collections.some(this, f);
5422 5422
5423 bool get isEmpty => this.length == 0; 5423 bool get isEmpty => this.length == 0;
5424 5424
5425 // From List<DOMPlugin>: 5425 // From List<DOMPlugin>:
5426 5426
5427 void sort([Comparator<DOMPlugin> compare = Comparable.compare]) { 5427 void sort([Comparator<DOMPlugin> compare = Comparable.compare]) {
5428 throw new UnsupportedError("Cannot sort immutable List."); 5428 throw new UnsupportedError("Cannot sort immutable List.");
5429 } 5429 }
5430 5430
5431 int indexOf(DOMPlugin element, [int start = 0]) => 5431 int indexOf(DOMPlugin element, [int start = 0]) =>
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
5779 /// @domName DedicatedWorkerContext; @docsEditable true 5779 /// @domName DedicatedWorkerContext; @docsEditable true
5780 class DedicatedWorkerContext extends WorkerContext native "*DedicatedWorkerConte xt" { 5780 class DedicatedWorkerContext extends WorkerContext native "*DedicatedWorkerConte xt" {
5781 5781
5782 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev entTarget.dispatchEvent; @docsEditable true 5782 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev entTarget.dispatchEvent; @docsEditable true
5783 DedicatedWorkerContextEvents get on => 5783 DedicatedWorkerContextEvents get on =>
5784 new DedicatedWorkerContextEvents(this); 5784 new DedicatedWorkerContextEvents(this);
5785 5785
5786 /// @domName DedicatedWorkerContext.postMessage; @docsEditable true 5786 /// @domName DedicatedWorkerContext.postMessage; @docsEditable true
5787 void postMessage(/*any*/ message, [List messagePorts]) { 5787 void postMessage(/*any*/ message, [List messagePorts]) {
5788 if (?messagePorts) { 5788 if (?messagePorts) {
5789 var message_1 = _convertDartToNative_SerializedScriptValue(message); 5789 var message_1 = convertDartToNative_SerializedScriptValue(message);
5790 _postMessage_1(message_1, messagePorts); 5790 _postMessage_1(message_1, messagePorts);
5791 return; 5791 return;
5792 } 5792 }
5793 var message_2 = _convertDartToNative_SerializedScriptValue(message); 5793 var message_2 = convertDartToNative_SerializedScriptValue(message);
5794 _postMessage_2(message_2); 5794 _postMessage_2(message_2);
5795 return; 5795 return;
5796 } 5796 }
5797 void _postMessage_1(message, List messagePorts) native "postMessage"; 5797 void _postMessage_1(message, List messagePorts) native "postMessage";
5798 void _postMessage_2(message) native "postMessage"; 5798 void _postMessage_2(message) native "postMessage";
5799 } 5799 }
5800 5800
5801 class DedicatedWorkerContextEvents extends WorkerContextEvents { 5801 class DedicatedWorkerContextEvents extends WorkerContextEvents {
5802 DedicatedWorkerContextEvents(EventTarget _ptr) : super(_ptr); 5802 DedicatedWorkerContextEvents(EventTarget _ptr) : super(_ptr);
5803 5803
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
5868 5868
5869 /// @domName DirectoryEntry; @docsEditable true 5869 /// @domName DirectoryEntry; @docsEditable true
5870 class DirectoryEntry extends Entry native "*DirectoryEntry" { 5870 class DirectoryEntry extends Entry native "*DirectoryEntry" {
5871 5871
5872 /// @domName DirectoryEntry.createReader; @docsEditable true 5872 /// @domName DirectoryEntry.createReader; @docsEditable true
5873 DirectoryReader createReader() native; 5873 DirectoryReader createReader() native;
5874 5874
5875 /// @domName DirectoryEntry.getDirectory; @docsEditable true 5875 /// @domName DirectoryEntry.getDirectory; @docsEditable true
5876 void getDirectory(String path, {Map options, EntryCallback successCallback, Er rorCallback errorCallback}) { 5876 void getDirectory(String path, {Map options, EntryCallback successCallback, Er rorCallback errorCallback}) {
5877 if (?errorCallback) { 5877 if (?errorCallback) {
5878 var options_1 = _convertDartToNative_Dictionary(options); 5878 var options_1 = convertDartToNative_Dictionary(options);
5879 _getDirectory_1(path, options_1, successCallback, errorCallback); 5879 _getDirectory_1(path, options_1, successCallback, errorCallback);
5880 return; 5880 return;
5881 } 5881 }
5882 if (?successCallback) { 5882 if (?successCallback) {
5883 var options_2 = _convertDartToNative_Dictionary(options); 5883 var options_2 = convertDartToNative_Dictionary(options);
5884 _getDirectory_2(path, options_2, successCallback); 5884 _getDirectory_2(path, options_2, successCallback);
5885 return; 5885 return;
5886 } 5886 }
5887 if (?options) { 5887 if (?options) {
5888 var options_3 = _convertDartToNative_Dictionary(options); 5888 var options_3 = convertDartToNative_Dictionary(options);
5889 _getDirectory_3(path, options_3); 5889 _getDirectory_3(path, options_3);
5890 return; 5890 return;
5891 } 5891 }
5892 _getDirectory_4(path); 5892 _getDirectory_4(path);
5893 return; 5893 return;
5894 } 5894 }
5895 void _getDirectory_1(path, options, EntryCallback successCallback, ErrorCallba ck errorCallback) native "getDirectory"; 5895 void _getDirectory_1(path, options, EntryCallback successCallback, ErrorCallba ck errorCallback) native "getDirectory";
5896 void _getDirectory_2(path, options, EntryCallback successCallback) native "get Directory"; 5896 void _getDirectory_2(path, options, EntryCallback successCallback) native "get Directory";
5897 void _getDirectory_3(path, options) native "getDirectory"; 5897 void _getDirectory_3(path, options) native "getDirectory";
5898 void _getDirectory_4(path) native "getDirectory"; 5898 void _getDirectory_4(path) native "getDirectory";
5899 5899
5900 /// @domName DirectoryEntry.getFile; @docsEditable true 5900 /// @domName DirectoryEntry.getFile; @docsEditable true
5901 void getFile(String path, {Map options, EntryCallback successCallback, ErrorCa llback errorCallback}) { 5901 void getFile(String path, {Map options, EntryCallback successCallback, ErrorCa llback errorCallback}) {
5902 if (?errorCallback) { 5902 if (?errorCallback) {
5903 var options_1 = _convertDartToNative_Dictionary(options); 5903 var options_1 = convertDartToNative_Dictionary(options);
5904 _getFile_1(path, options_1, successCallback, errorCallback); 5904 _getFile_1(path, options_1, successCallback, errorCallback);
5905 return; 5905 return;
5906 } 5906 }
5907 if (?successCallback) { 5907 if (?successCallback) {
5908 var options_2 = _convertDartToNative_Dictionary(options); 5908 var options_2 = convertDartToNative_Dictionary(options);
5909 _getFile_2(path, options_2, successCallback); 5909 _getFile_2(path, options_2, successCallback);
5910 return; 5910 return;
5911 } 5911 }
5912 if (?options) { 5912 if (?options) {
5913 var options_3 = _convertDartToNative_Dictionary(options); 5913 var options_3 = convertDartToNative_Dictionary(options);
5914 _getFile_3(path, options_3); 5914 _getFile_3(path, options_3);
5915 return; 5915 return;
5916 } 5916 }
5917 _getFile_4(path); 5917 _getFile_4(path);
5918 return; 5918 return;
5919 } 5919 }
5920 void _getFile_1(path, options, EntryCallback successCallback, ErrorCallback er rorCallback) native "getFile"; 5920 void _getFile_1(path, options, EntryCallback successCallback, ErrorCallback er rorCallback) native "getFile";
5921 void _getFile_2(path, options, EntryCallback successCallback) native "getFile" ; 5921 void _getFile_2(path, options, EntryCallback successCallback) native "getFile" ;
5922 void _getFile_3(path, options) native "getFile"; 5922 void _getFile_3(path, options) native "getFile";
5923 void _getFile_4(path) native "getFile"; 5923 void _getFile_4(path) native "getFile";
5924 5924
5925 /// @domName DirectoryEntry.removeRecursively; @docsEditable true 5925 /// @domName DirectoryEntry.removeRecursively; @docsEditable true
5926 void removeRecursively(VoidCallback successCallback, [ErrorCallback errorCallb ack]) native; 5926 void removeRecursively(VoidCallback successCallback, [ErrorCallback errorCallb ack]) native;
5927 } 5927 }
5928 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5928 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5929 // for details. All rights reserved. Use of this source code is governed by a 5929 // for details. All rights reserved. Use of this source code is governed by a
5930 // BSD-style license that can be found in the LICENSE file. 5930 // BSD-style license that can be found in the LICENSE file.
5931 5931
5932 5932
5933 /// @domName DirectoryEntrySync; @docsEditable true 5933 /// @domName DirectoryEntrySync; @docsEditable true
5934 class DirectoryEntrySync extends EntrySync native "*DirectoryEntrySync" { 5934 class DirectoryEntrySync extends EntrySync native "*DirectoryEntrySync" {
5935 5935
5936 /// @domName DirectoryEntrySync.createReader; @docsEditable true 5936 /// @domName DirectoryEntrySync.createReader; @docsEditable true
5937 DirectoryReaderSync createReader() native; 5937 DirectoryReaderSync createReader() native;
5938 5938
5939 /// @domName DirectoryEntrySync.getDirectory; @docsEditable true 5939 /// @domName DirectoryEntrySync.getDirectory; @docsEditable true
5940 DirectoryEntrySync getDirectory(String path, Map flags) { 5940 DirectoryEntrySync getDirectory(String path, Map flags) {
5941 var flags_1 = _convertDartToNative_Dictionary(flags); 5941 var flags_1 = convertDartToNative_Dictionary(flags);
5942 return _getDirectory_1(path, flags_1); 5942 return _getDirectory_1(path, flags_1);
5943 } 5943 }
5944 DirectoryEntrySync _getDirectory_1(path, flags) native "getDirectory"; 5944 DirectoryEntrySync _getDirectory_1(path, flags) native "getDirectory";
5945 5945
5946 /// @domName DirectoryEntrySync.getFile; @docsEditable true 5946 /// @domName DirectoryEntrySync.getFile; @docsEditable true
5947 FileEntrySync getFile(String path, Map flags) { 5947 FileEntrySync getFile(String path, Map flags) {
5948 var flags_1 = _convertDartToNative_Dictionary(flags); 5948 var flags_1 = convertDartToNative_Dictionary(flags);
5949 return _getFile_1(path, flags_1); 5949 return _getFile_1(path, flags_1);
5950 } 5950 }
5951 FileEntrySync _getFile_1(path, flags) native "getFile"; 5951 FileEntrySync _getFile_1(path, flags) native "getFile";
5952 5952
5953 /// @domName DirectoryEntrySync.removeRecursively; @docsEditable true 5953 /// @domName DirectoryEntrySync.removeRecursively; @docsEditable true
5954 void removeRecursively() native; 5954 void removeRecursively() native;
5955 } 5955 }
5956 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5956 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5957 // for details. All rights reserved. Use of this source code is governed by a 5957 // for details. All rights reserved. Use of this source code is governed by a
5958 // BSD-style license that can be found in the LICENSE file. 5958 // BSD-style license that can be found in the LICENSE file.
(...skipping 2084 matching lines...) Expand 10 before | Expand all | Expand 10 after
8043 final String name; 8043 final String name;
8044 8044
8045 /// @domName FileException.toString; @docsEditable true 8045 /// @domName FileException.toString; @docsEditable true
8046 String toString() native; 8046 String toString() native;
8047 } 8047 }
8048 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 8048 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8049 // for details. All rights reserved. Use of this source code is governed by a 8049 // for details. All rights reserved. Use of this source code is governed by a
8050 // BSD-style license that can be found in the LICENSE file. 8050 // BSD-style license that can be found in the LICENSE file.
8051 8051
8052 8052
8053 /// @domName FileList; @docsEditable true
8054 class FileList implements JavaScriptIndexingBehavior, List<File> native "*FileLi st" {
8055
8056 /// @domName FileList.length; @docsEditable true
8057 final int length;
8058
8059 File operator[](int index) => JS("File", "#[#]", this, index);
8060
8061 void operator[]=(int index, File value) {
8062 throw new UnsupportedError("Cannot assign element of immutable List.");
8063 }
8064 // -- start List<File> mixins.
8065 // File is the element type.
8066
8067 // From Iterable<File>:
8068
8069 Iterator<File> iterator() {
8070 // Note: NodeLists are not fixed size. And most probably length shouldn't
8071 // be cached in both iterator _and_ forEach method. For now caching it
8072 // for consistency.
8073 return new FixedSizeListIterator<File>(this);
8074 }
8075
8076 // From Collection<File>:
8077
8078 void add(File value) {
8079 throw new UnsupportedError("Cannot add to immutable List.");
8080 }
8081
8082 void addLast(File value) {
8083 throw new UnsupportedError("Cannot add to immutable List.");
8084 }
8085
8086 void addAll(Collection<File> collection) {
8087 throw new UnsupportedError("Cannot add to immutable List.");
8088 }
8089
8090 bool contains(File element) => Collections.contains(this, element);
8091
8092 void forEach(void f(File element)) => Collections.forEach(this, f);
8093
8094 Collection map(f(File element)) => Collections.map(this, [], f);
8095
8096 Collection<File> filter(bool f(File element)) =>
8097 Collections.filter(this, <File>[], f);
8098
8099 bool every(bool f(File element)) => Collections.every(this, f);
8100
8101 bool some(bool f(File element)) => Collections.some(this, f);
8102
8103 bool get isEmpty => this.length == 0;
8104
8105 // From List<File>:
8106
8107 void sort([Comparator<File> compare = Comparable.compare]) {
8108 throw new UnsupportedError("Cannot sort immutable List.");
8109 }
8110
8111 int indexOf(File element, [int start = 0]) =>
8112 _Lists.indexOf(this, element, start, this.length);
8113
8114 int lastIndexOf(File element, [int start]) {
8115 if (start == null) start = length - 1;
8116 return _Lists.lastIndexOf(this, element, start);
8117 }
8118
8119 File get first => this[0];
8120
8121 File get last => this[length - 1];
8122
8123 File removeLast() {
8124 throw new UnsupportedError("Cannot removeLast on immutable List.");
8125 }
8126
8127 void setRange(int start, int rangeLength, List<File> from, [int startFrom]) {
8128 throw new UnsupportedError("Cannot setRange on immutable List.");
8129 }
8130
8131 void removeRange(int start, int rangeLength) {
8132 throw new UnsupportedError("Cannot removeRange on immutable List.");
8133 }
8134
8135 void insertRange(int start, int rangeLength, [File initialValue]) {
8136 throw new UnsupportedError("Cannot insertRange on immutable List.");
8137 }
8138
8139 List<File> getRange(int start, int rangeLength) =>
8140 _Lists.getRange(this, start, rangeLength, <File>[]);
8141
8142 // -- end List<File> mixins.
8143
8144 /// @domName FileList.item; @docsEditable true
8145 File item(int index) native;
8146 }
8147 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8148 // for details. All rights reserved. Use of this source code is governed by a
8149 // BSD-style license that can be found in the LICENSE file.
8150
8151
8053 /// @domName FileReader; @docsEditable true 8152 /// @domName FileReader; @docsEditable true
8054 class FileReader extends EventTarget native "*FileReader" { 8153 class FileReader extends EventTarget native "*FileReader" {
8055 8154
8056 factory FileReader() => _FileReaderFactoryProvider.createFileReader(); 8155 factory FileReader() => _FileReaderFactoryProvider.createFileReader();
8057 8156
8058 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev entTarget.dispatchEvent; @docsEditable true 8157 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev entTarget.dispatchEvent; @docsEditable true
8059 FileReaderEvents get on => 8158 FileReaderEvents get on =>
8060 new FileReaderEvents(this); 8159 new FileReaderEvents(this);
8061 8160
8062 static const int DONE = 2; 8161 static const int DONE = 2;
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
8286 } 8385 }
8287 8386
8288 void addLast(num value) { 8387 void addLast(num value) {
8289 throw new UnsupportedError("Cannot add to immutable List."); 8388 throw new UnsupportedError("Cannot add to immutable List.");
8290 } 8389 }
8291 8390
8292 void addAll(Collection<num> collection) { 8391 void addAll(Collection<num> collection) {
8293 throw new UnsupportedError("Cannot add to immutable List."); 8392 throw new UnsupportedError("Cannot add to immutable List.");
8294 } 8393 }
8295 8394
8296 bool contains(num element) => _Collections.contains(this, element); 8395 bool contains(num element) => Collections.contains(this, element);
8297 8396
8298 void forEach(void f(num element)) => _Collections.forEach(this, f); 8397 void forEach(void f(num element)) => Collections.forEach(this, f);
8299 8398
8300 Collection map(f(num element)) => _Collections.map(this, [], f); 8399 Collection map(f(num element)) => Collections.map(this, [], f);
8301 8400
8302 Collection<num> filter(bool f(num element)) => 8401 Collection<num> filter(bool f(num element)) =>
8303 _Collections.filter(this, <num>[], f); 8402 Collections.filter(this, <num>[], f);
8304 8403
8305 bool every(bool f(num element)) => _Collections.every(this, f); 8404 bool every(bool f(num element)) => Collections.every(this, f);
8306 8405
8307 bool some(bool f(num element)) => _Collections.some(this, f); 8406 bool some(bool f(num element)) => Collections.some(this, f);
8308 8407
8309 bool get isEmpty => this.length == 0; 8408 bool get isEmpty => this.length == 0;
8310 8409
8311 // From List<num>: 8410 // From List<num>:
8312 8411
8313 void sort([Comparator<num> compare = Comparable.compare]) { 8412 void sort([Comparator<num> compare = Comparable.compare]) {
8314 throw new UnsupportedError("Cannot sort immutable List."); 8413 throw new UnsupportedError("Cannot sort immutable List.");
8315 } 8414 }
8316 8415
8317 int indexOf(num element, [int start = 0]) => 8416 int indexOf(num element, [int start = 0]) =>
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
8396 } 8495 }
8397 8496
8398 void addLast(num value) { 8497 void addLast(num value) {
8399 throw new UnsupportedError("Cannot add to immutable List."); 8498 throw new UnsupportedError("Cannot add to immutable List.");
8400 } 8499 }
8401 8500
8402 void addAll(Collection<num> collection) { 8501 void addAll(Collection<num> collection) {
8403 throw new UnsupportedError("Cannot add to immutable List."); 8502 throw new UnsupportedError("Cannot add to immutable List.");
8404 } 8503 }
8405 8504
8406 bool contains(num element) => _Collections.contains(this, element); 8505 bool contains(num element) => Collections.contains(this, element);
8407 8506
8408 void forEach(void f(num element)) => _Collections.forEach(this, f); 8507 void forEach(void f(num element)) => Collections.forEach(this, f);
8409 8508
8410 Collection map(f(num element)) => _Collections.map(this, [], f); 8509 Collection map(f(num element)) => Collections.map(this, [], f);
8411 8510
8412 Collection<num> filter(bool f(num element)) => 8511 Collection<num> filter(bool f(num element)) =>
8413 _Collections.filter(this, <num>[], f); 8512 Collections.filter(this, <num>[], f);
8414 8513
8415 bool every(bool f(num element)) => _Collections.every(this, f); 8514 bool every(bool f(num element)) => Collections.every(this, f);
8416 8515
8417 bool some(bool f(num element)) => _Collections.some(this, f); 8516 bool some(bool f(num element)) => Collections.some(this, f);
8418 8517
8419 bool get isEmpty => this.length == 0; 8518 bool get isEmpty => this.length == 0;
8420 8519
8421 // From List<num>: 8520 // From List<num>:
8422 8521
8423 void sort([Comparator<num> compare = Comparable.compare]) { 8522 void sort([Comparator<num> compare = Comparable.compare]) {
8424 throw new UnsupportedError("Cannot sort immutable List."); 8523 throw new UnsupportedError("Cannot sort immutable List.");
8425 } 8524 }
8426 8525
8427 int indexOf(num element, [int start = 0]) => 8526 int indexOf(num element, [int start = 0]) =>
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
8751 } 8850 }
8752 8851
8753 void addLast(Node value) { 8852 void addLast(Node value) {
8754 throw new UnsupportedError("Cannot add to immutable List."); 8853 throw new UnsupportedError("Cannot add to immutable List.");
8755 } 8854 }
8756 8855
8757 void addAll(Collection<Node> collection) { 8856 void addAll(Collection<Node> collection) {
8758 throw new UnsupportedError("Cannot add to immutable List."); 8857 throw new UnsupportedError("Cannot add to immutable List.");
8759 } 8858 }
8760 8859
8761 bool contains(Node element) => _Collections.contains(this, element); 8860 bool contains(Node element) => Collections.contains(this, element);
8762 8861
8763 void forEach(void f(Node element)) => _Collections.forEach(this, f); 8862 void forEach(void f(Node element)) => Collections.forEach(this, f);
8764 8863
8765 Collection map(f(Node element)) => _Collections.map(this, [], f); 8864 Collection map(f(Node element)) => Collections.map(this, [], f);
8766 8865
8767 Collection<Node> filter(bool f(Node element)) => 8866 Collection<Node> filter(bool f(Node element)) =>
8768 _Collections.filter(this, <Node>[], f); 8867 Collections.filter(this, <Node>[], f);
8769 8868
8770 bool every(bool f(Node element)) => _Collections.every(this, f); 8869 bool every(bool f(Node element)) => Collections.every(this, f);
8771 8870
8772 bool some(bool f(Node element)) => _Collections.some(this, f); 8871 bool some(bool f(Node element)) => Collections.some(this, f);
8773 8872
8774 bool get isEmpty => this.length == 0; 8873 bool get isEmpty => this.length == 0;
8775 8874
8776 // From List<Node>: 8875 // From List<Node>:
8777 8876
8778 void sort([Comparator<Node> compare = Comparable.compare]) { 8877 void sort([Comparator<Node> compare = Comparable.compare]) {
8779 throw new UnsupportedError("Cannot sort immutable List."); 8878 throw new UnsupportedError("Cannot sort immutable List.");
8780 } 8879 }
8781 8880
8782 int indexOf(Node element, [int start = 0]) => 8881 int indexOf(Node element, [int start = 0]) =>
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
8857 } 8956 }
8858 8957
8859 void addLast(Node value) { 8958 void addLast(Node value) {
8860 throw new UnsupportedError("Cannot add to immutable List."); 8959 throw new UnsupportedError("Cannot add to immutable List.");
8861 } 8960 }
8862 8961
8863 void addAll(Collection<Node> collection) { 8962 void addAll(Collection<Node> collection) {
8864 throw new UnsupportedError("Cannot add to immutable List."); 8963 throw new UnsupportedError("Cannot add to immutable List.");
8865 } 8964 }
8866 8965
8867 bool contains(Node element) => _Collections.contains(this, element); 8966 bool contains(Node element) => Collections.contains(this, element);
8868 8967
8869 void forEach(void f(Node element)) => _Collections.forEach(this, f); 8968 void forEach(void f(Node element)) => Collections.forEach(this, f);
8870 8969
8871 Collection map(f(Node element)) => _Collections.map(this, [], f); 8970 Collection map(f(Node element)) => Collections.map(this, [], f);
8872 8971
8873 Collection<Node> filter(bool f(Node element)) => 8972 Collection<Node> filter(bool f(Node element)) =>
8874 _Collections.filter(this, <Node>[], f); 8973 Collections.filter(this, <Node>[], f);
8875 8974
8876 bool every(bool f(Node element)) => _Collections.every(this, f); 8975 bool every(bool f(Node element)) => Collections.every(this, f);
8877 8976
8878 bool some(bool f(Node element)) => _Collections.some(this, f); 8977 bool some(bool f(Node element)) => Collections.some(this, f);
8879 8978
8880 bool get isEmpty => this.length == 0; 8979 bool get isEmpty => this.length == 0;
8881 8980
8882 // From List<Node>: 8981 // From List<Node>:
8883 8982
8884 void sort([Comparator<Node> compare = Comparable.compare]) { 8983 void sort([Comparator<Node> compare = Comparable.compare]) {
8885 throw new UnsupportedError("Cannot sort immutable List."); 8984 throw new UnsupportedError("Cannot sort immutable List.");
8886 } 8985 }
8887 8986
8888 int indexOf(Node element, [int start = 0]) => 8987 int indexOf(Node element, [int start = 0]) =>
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
9330 return; 9429 return;
9331 } 9430 }
9332 void _continueFunction_1(key) native "continue"; 9431 void _continueFunction_1(key) native "continue";
9333 void _continueFunction_2() native "continue"; 9432 void _continueFunction_2() native "continue";
9334 9433
9335 /// @domName IDBCursor.delete; @docsEditable true 9434 /// @domName IDBCursor.delete; @docsEditable true
9336 IDBRequest delete() native; 9435 IDBRequest delete() native;
9337 9436
9338 /// @domName IDBCursor.update; @docsEditable true 9437 /// @domName IDBCursor.update; @docsEditable true
9339 IDBRequest update(/*any*/ value) { 9438 IDBRequest update(/*any*/ value) {
9340 var value_1 = _convertDartToNative_SerializedScriptValue(value); 9439 var value_1 = convertDartToNative_SerializedScriptValue(value);
9341 return _update_1(value_1); 9440 return _update_1(value_1);
9342 } 9441 }
9343 IDBRequest _update_1(value) native "update"; 9442 IDBRequest _update_1(value) native "update";
9344 } 9443 }
9345 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9444 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9346 // for details. All rights reserved. Use of this source code is governed by a 9445 // for details. All rights reserved. Use of this source code is governed by a
9347 // BSD-style license that can be found in the LICENSE file. 9446 // BSD-style license that can be found in the LICENSE file.
9348 9447
9349 9448
9350 /// @domName IDBCursorWithValue; @docsEditable true 9449 /// @domName IDBCursorWithValue; @docsEditable true
9351 class IDBCursorWithValue extends IDBCursor native "*IDBCursorWithValue" { 9450 class IDBCursorWithValue extends IDBCursor native "*IDBCursorWithValue" {
9352 9451
9353 /// @domName IDBCursorWithValue.value; @docsEditable true 9452 /// @domName IDBCursorWithValue.value; @docsEditable true
9354 @_annotation_Creates_SerializedScriptValue @_annotation_Returns_SerializedScri ptValue 9453 @annotation_Creates_SerializedScriptValue @annotation_Returns_SerializedScript Value
9355 final Object value; 9454 final Object value;
9356 } 9455 }
9357 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9456 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9358 // for details. All rights reserved. Use of this source code is governed by a 9457 // for details. All rights reserved. Use of this source code is governed by a
9359 // BSD-style license that can be found in the LICENSE file. 9458 // BSD-style license that can be found in the LICENSE file.
9360 9459
9361 9460
9362 /// @domName IDBDatabase 9461 /// @domName IDBDatabase
9363 class IDBDatabase extends EventTarget native "*IDBDatabase" { 9462 class IDBDatabase extends EventTarget native "*IDBDatabase" {
9364 9463
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
9420 9519
9421 /// @domName IDBDatabase.addEventListener; @docsEditable true 9520 /// @domName IDBDatabase.addEventListener; @docsEditable true
9422 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 9521 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
9423 9522
9424 /// @domName IDBDatabase.close; @docsEditable true 9523 /// @domName IDBDatabase.close; @docsEditable true
9425 void close() native; 9524 void close() native;
9426 9525
9427 /// @domName IDBDatabase.createObjectStore; @docsEditable true 9526 /// @domName IDBDatabase.createObjectStore; @docsEditable true
9428 IDBObjectStore createObjectStore(String name, [Map options]) { 9527 IDBObjectStore createObjectStore(String name, [Map options]) {
9429 if (?options) { 9528 if (?options) {
9430 var options_1 = _convertDartToNative_Dictionary(options); 9529 var options_1 = convertDartToNative_Dictionary(options);
9431 return _createObjectStore_1(name, options_1); 9530 return _createObjectStore_1(name, options_1);
9432 } 9531 }
9433 return _createObjectStore_2(name); 9532 return _createObjectStore_2(name);
9434 } 9533 }
9435 IDBObjectStore _createObjectStore_1(name, options) native "createObjectStore"; 9534 IDBObjectStore _createObjectStore_1(name, options) native "createObjectStore";
9436 IDBObjectStore _createObjectStore_2(name) native "createObjectStore"; 9535 IDBObjectStore _createObjectStore_2(name) native "createObjectStore";
9437 9536
9438 /// @domName IDBDatabase.deleteObjectStore; @docsEditable true 9537 /// @domName IDBDatabase.deleteObjectStore; @docsEditable true
9439 void deleteObjectStore(String name) native; 9538 void deleteObjectStore(String name) native;
9440 9539
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
9578 IDBRequest get(key) { 9677 IDBRequest get(key) {
9579 if ((?key && (key is IDBKeyRange || key == null))) { 9678 if ((?key && (key is IDBKeyRange || key == null))) {
9580 return _get_1(key); 9679 return _get_1(key);
9581 } 9680 }
9582 if (?key) { 9681 if (?key) {
9583 var key_1 = _convertDartToNative_IDBKey(key); 9682 var key_1 = _convertDartToNative_IDBKey(key);
9584 return _get_2(key_1); 9683 return _get_2(key_1);
9585 } 9684 }
9586 throw new ArgumentError("Incorrect number or type of arguments"); 9685 throw new ArgumentError("Incorrect number or type of arguments");
9587 } 9686 }
9588 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_SerializedS criptValue 9687 @Returns('IDBRequest') @Creates('IDBRequest') @annotation_Creates_SerializedSc riptValue
9589 IDBRequest _get_1(IDBKeyRange key) native "get"; 9688 IDBRequest _get_1(IDBKeyRange key) native "get";
9590 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_SerializedS criptValue 9689 @Returns('IDBRequest') @Creates('IDBRequest') @annotation_Creates_SerializedSc riptValue
9591 IDBRequest _get_2(key) native "get"; 9690 IDBRequest _get_2(key) native "get";
9592 9691
9593 /// @domName IDBIndex.getKey; @docsEditable true 9692 /// @domName IDBIndex.getKey; @docsEditable true
9594 IDBRequest getKey(key) { 9693 IDBRequest getKey(key) {
9595 if ((?key && (key is IDBKeyRange || key == null))) { 9694 if ((?key && (key is IDBKeyRange || key == null))) {
9596 return _getKey_1(key); 9695 return _getKey_1(key);
9597 } 9696 }
9598 if (?key) { 9697 if (?key) {
9599 var key_1 = _convertDartToNative_IDBKey(key); 9698 var key_1 = _convertDartToNative_IDBKey(key);
9600 return _getKey_2(key_1); 9699 return _getKey_2(key_1);
9601 } 9700 }
9602 throw new ArgumentError("Incorrect number or type of arguments"); 9701 throw new ArgumentError("Incorrect number or type of arguments");
9603 } 9702 }
9604 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_SerializedS criptValue @Creates('IDBObjectStore') 9703 @Returns('IDBRequest') @Creates('IDBRequest') @annotation_Creates_SerializedSc riptValue @Creates('IDBObjectStore')
9605 IDBRequest _getKey_1(IDBKeyRange key) native "getKey"; 9704 IDBRequest _getKey_1(IDBKeyRange key) native "getKey";
9606 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_SerializedS criptValue @Creates('IDBObjectStore') 9705 @Returns('IDBRequest') @Creates('IDBRequest') @annotation_Creates_SerializedSc riptValue @Creates('IDBObjectStore')
9607 IDBRequest _getKey_2(key) native "getKey"; 9706 IDBRequest _getKey_2(key) native "getKey";
9608 9707
9609 /// @domName IDBIndex.openCursor; @docsEditable true 9708 /// @domName IDBIndex.openCursor; @docsEditable true
9610 IDBRequest openCursor([key_OR_range, String direction]) { 9709 IDBRequest openCursor([key_OR_range, String direction]) {
9611 if (!?key_OR_range && 9710 if (!?key_OR_range &&
9612 !?direction) { 9711 !?direction) {
9613 return _openCursor_1(); 9712 return _openCursor_1();
9614 } 9713 }
9615 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null)) && 9714 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null)) &&
9616 !?direction) { 9715 !?direction) {
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
9804 9903
9805 /// @domName IDBObjectStore.name; @docsEditable true 9904 /// @domName IDBObjectStore.name; @docsEditable true
9806 final String name; 9905 final String name;
9807 9906
9808 /// @domName IDBObjectStore.transaction; @docsEditable true 9907 /// @domName IDBObjectStore.transaction; @docsEditable true
9809 final IDBTransaction transaction; 9908 final IDBTransaction transaction;
9810 9909
9811 /// @domName IDBObjectStore.add; @docsEditable true 9910 /// @domName IDBObjectStore.add; @docsEditable true
9812 IDBRequest add(/*any*/ value, [/*IDBKey*/ key]) { 9911 IDBRequest add(/*any*/ value, [/*IDBKey*/ key]) {
9813 if (?key) { 9912 if (?key) {
9814 var value_1 = _convertDartToNative_SerializedScriptValue(value); 9913 var value_1 = convertDartToNative_SerializedScriptValue(value);
9815 var key_2 = _convertDartToNative_IDBKey(key); 9914 var key_2 = _convertDartToNative_IDBKey(key);
9816 return _add_1(value_1, key_2); 9915 return _add_1(value_1, key_2);
9817 } 9916 }
9818 var value_3 = _convertDartToNative_SerializedScriptValue(value); 9917 var value_3 = convertDartToNative_SerializedScriptValue(value);
9819 return _add_2(value_3); 9918 return _add_2(value_3);
9820 } 9919 }
9821 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_IDBKey 9920 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_IDBKey
9822 IDBRequest _add_1(value, key) native "add"; 9921 IDBRequest _add_1(value, key) native "add";
9823 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_IDBKey 9922 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_IDBKey
9824 IDBRequest _add_2(value) native "add"; 9923 IDBRequest _add_2(value) native "add";
9825 9924
9826 /// @domName IDBObjectStore.clear; @docsEditable true 9925 /// @domName IDBObjectStore.clear; @docsEditable true
9827 IDBRequest clear() native; 9926 IDBRequest clear() native;
9828 9927
(...skipping 12 matching lines...) Expand all
9841 throw new ArgumentError("Incorrect number or type of arguments"); 9940 throw new ArgumentError("Incorrect number or type of arguments");
9842 } 9941 }
9843 IDBRequest _count_1() native "count"; 9942 IDBRequest _count_1() native "count";
9844 IDBRequest _count_2(IDBKeyRange range) native "count"; 9943 IDBRequest _count_2(IDBKeyRange range) native "count";
9845 IDBRequest _count_3(key) native "count"; 9944 IDBRequest _count_3(key) native "count";
9846 9945
9847 /// @domName IDBObjectStore.createIndex; @docsEditable true 9946 /// @domName IDBObjectStore.createIndex; @docsEditable true
9848 IDBIndex createIndex(String name, keyPath, [Map options]) { 9947 IDBIndex createIndex(String name, keyPath, [Map options]) {
9849 if ((?keyPath && (keyPath is List<String> || keyPath == null)) && 9948 if ((?keyPath && (keyPath is List<String> || keyPath == null)) &&
9850 !?options) { 9949 !?options) {
9851 List keyPath_1 = _convertDartToNative_StringArray(keyPath); 9950 List keyPath_1 = convertDartToNative_StringArray(keyPath);
9852 return _createIndex_1(name, keyPath_1); 9951 return _createIndex_1(name, keyPath_1);
9853 } 9952 }
9854 if ((?keyPath && (keyPath is List<String> || keyPath == null))) { 9953 if ((?keyPath && (keyPath is List<String> || keyPath == null))) {
9855 List keyPath_2 = _convertDartToNative_StringArray(keyPath); 9954 List keyPath_2 = convertDartToNative_StringArray(keyPath);
9856 var options_3 = _convertDartToNative_Dictionary(options); 9955 var options_3 = convertDartToNative_Dictionary(options);
9857 return _createIndex_2(name, keyPath_2, options_3); 9956 return _createIndex_2(name, keyPath_2, options_3);
9858 } 9957 }
9859 if ((?keyPath && (keyPath is String || keyPath == null)) && 9958 if ((?keyPath && (keyPath is String || keyPath == null)) &&
9860 !?options) { 9959 !?options) {
9861 return _createIndex_3(name, keyPath); 9960 return _createIndex_3(name, keyPath);
9862 } 9961 }
9863 if ((?keyPath && (keyPath is String || keyPath == null))) { 9962 if ((?keyPath && (keyPath is String || keyPath == null))) {
9864 var options_4 = _convertDartToNative_Dictionary(options); 9963 var options_4 = convertDartToNative_Dictionary(options);
9865 return _createIndex_4(name, keyPath, options_4); 9964 return _createIndex_4(name, keyPath, options_4);
9866 } 9965 }
9867 throw new ArgumentError("Incorrect number or type of arguments"); 9966 throw new ArgumentError("Incorrect number or type of arguments");
9868 } 9967 }
9869 IDBIndex _createIndex_1(name, List keyPath) native "createIndex"; 9968 IDBIndex _createIndex_1(name, List keyPath) native "createIndex";
9870 IDBIndex _createIndex_2(name, List keyPath, options) native "createIndex"; 9969 IDBIndex _createIndex_2(name, List keyPath, options) native "createIndex";
9871 IDBIndex _createIndex_3(name, String keyPath) native "createIndex"; 9970 IDBIndex _createIndex_3(name, String keyPath) native "createIndex";
9872 IDBIndex _createIndex_4(name, String keyPath, options) native "createIndex"; 9971 IDBIndex _createIndex_4(name, String keyPath, options) native "createIndex";
9873 9972
9874 /// @domName IDBObjectStore.delete; @docsEditable true 9973 /// @domName IDBObjectStore.delete; @docsEditable true
(...skipping 17 matching lines...) Expand all
9892 IDBRequest getObject(key) { 9991 IDBRequest getObject(key) {
9893 if ((?key && (key is IDBKeyRange || key == null))) { 9992 if ((?key && (key is IDBKeyRange || key == null))) {
9894 return _getObject_1(key); 9993 return _getObject_1(key);
9895 } 9994 }
9896 if (?key) { 9995 if (?key) {
9897 var key_1 = _convertDartToNative_IDBKey(key); 9996 var key_1 = _convertDartToNative_IDBKey(key);
9898 return _getObject_2(key_1); 9997 return _getObject_2(key_1);
9899 } 9998 }
9900 throw new ArgumentError("Incorrect number or type of arguments"); 9999 throw new ArgumentError("Incorrect number or type of arguments");
9901 } 10000 }
9902 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_SerializedS criptValue 10001 @Returns('IDBRequest') @Creates('IDBRequest') @annotation_Creates_SerializedSc riptValue
9903 IDBRequest _getObject_1(IDBKeyRange key) native "get"; 10002 IDBRequest _getObject_1(IDBKeyRange key) native "get";
9904 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_SerializedS criptValue 10003 @Returns('IDBRequest') @Creates('IDBRequest') @annotation_Creates_SerializedSc riptValue
9905 IDBRequest _getObject_2(key) native "get"; 10004 IDBRequest _getObject_2(key) native "get";
9906 10005
9907 /// @domName IDBObjectStore.index; @docsEditable true 10006 /// @domName IDBObjectStore.index; @docsEditable true
9908 IDBIndex index(String name) native; 10007 IDBIndex index(String name) native;
9909 10008
9910 /// @domName IDBObjectStore.openCursor; @docsEditable true 10009 /// @domName IDBObjectStore.openCursor; @docsEditable true
9911 IDBRequest openCursor([key_OR_range, String direction]) { 10010 IDBRequest openCursor([key_OR_range, String direction]) {
9912 if (!?key_OR_range && 10011 if (!?key_OR_range &&
9913 !?direction) { 10012 !?direction) {
9914 return _openCursor_1(); 10013 return _openCursor_1();
(...skipping 23 matching lines...) Expand all
9938 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') 10037 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor')
9939 IDBRequest _openCursor_3(IDBKeyRange range, direction) native "openCursor"; 10038 IDBRequest _openCursor_3(IDBKeyRange range, direction) native "openCursor";
9940 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') 10039 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor')
9941 IDBRequest _openCursor_4(key) native "openCursor"; 10040 IDBRequest _openCursor_4(key) native "openCursor";
9942 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') 10041 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor')
9943 IDBRequest _openCursor_5(key, direction) native "openCursor"; 10042 IDBRequest _openCursor_5(key, direction) native "openCursor";
9944 10043
9945 /// @domName IDBObjectStore.put; @docsEditable true 10044 /// @domName IDBObjectStore.put; @docsEditable true
9946 IDBRequest put(/*any*/ value, [/*IDBKey*/ key]) { 10045 IDBRequest put(/*any*/ value, [/*IDBKey*/ key]) {
9947 if (?key) { 10046 if (?key) {
9948 var value_1 = _convertDartToNative_SerializedScriptValue(value); 10047 var value_1 = convertDartToNative_SerializedScriptValue(value);
9949 var key_2 = _convertDartToNative_IDBKey(key); 10048 var key_2 = _convertDartToNative_IDBKey(key);
9950 return _put_1(value_1, key_2); 10049 return _put_1(value_1, key_2);
9951 } 10050 }
9952 var value_3 = _convertDartToNative_SerializedScriptValue(value); 10051 var value_3 = convertDartToNative_SerializedScriptValue(value);
9953 return _put_2(value_3); 10052 return _put_2(value_3);
9954 } 10053 }
9955 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_IDBKey 10054 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_IDBKey
9956 IDBRequest _put_1(value, key) native "put"; 10055 IDBRequest _put_1(value, key) native "put";
9957 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_IDBKey 10056 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_IDBKey
9958 IDBRequest _put_2(value) native "put"; 10057 IDBRequest _put_2(value) native "put";
9959 } 10058 }
9960 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10059 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9961 // for details. All rights reserved. Use of this source code is governed by a 10060 // for details. All rights reserved. Use of this source code is governed by a
9962 // BSD-style license that can be found in the LICENSE file. 10061 // BSD-style license that can be found in the LICENSE file.
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
10330 /// @domName HTMLInputElement.defaultValue; @docsEditable true 10429 /// @domName HTMLInputElement.defaultValue; @docsEditable true
10331 String defaultValue; 10430 String defaultValue;
10332 10431
10333 /// @domName HTMLInputElement.dirName; @docsEditable true 10432 /// @domName HTMLInputElement.dirName; @docsEditable true
10334 String dirName; 10433 String dirName;
10335 10434
10336 /// @domName HTMLInputElement.disabled; @docsEditable true 10435 /// @domName HTMLInputElement.disabled; @docsEditable true
10337 bool disabled; 10436 bool disabled;
10338 10437
10339 /// @domName HTMLInputElement.files; @docsEditable true 10438 /// @domName HTMLInputElement.files; @docsEditable true
10340 @Returns('_FileList') @Creates('_FileList') 10439 FileList files;
10341 List<File> files;
10342 10440
10343 /// @domName HTMLInputElement.form; @docsEditable true 10441 /// @domName HTMLInputElement.form; @docsEditable true
10344 final FormElement form; 10442 final FormElement form;
10345 10443
10346 /// @domName HTMLInputElement.formAction; @docsEditable true 10444 /// @domName HTMLInputElement.formAction; @docsEditable true
10347 String formAction; 10445 String formAction;
10348 10446
10349 /// @domName HTMLInputElement.formEnctype; @docsEditable true 10447 /// @domName HTMLInputElement.formEnctype; @docsEditable true
10350 String formEnctype; 10448 String formEnctype;
10351 10449
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
10529 } 10627 }
10530 10628
10531 void addLast(int value) { 10629 void addLast(int value) {
10532 throw new UnsupportedError("Cannot add to immutable List."); 10630 throw new UnsupportedError("Cannot add to immutable List.");
10533 } 10631 }
10534 10632
10535 void addAll(Collection<int> collection) { 10633 void addAll(Collection<int> collection) {
10536 throw new UnsupportedError("Cannot add to immutable List."); 10634 throw new UnsupportedError("Cannot add to immutable List.");
10537 } 10635 }
10538 10636
10539 bool contains(int element) => _Collections.contains(this, element); 10637 bool contains(int element) => Collections.contains(this, element);
10540 10638
10541 void forEach(void f(int element)) => _Collections.forEach(this, f); 10639 void forEach(void f(int element)) => Collections.forEach(this, f);
10542 10640
10543 Collection map(f(int element)) => _Collections.map(this, [], f); 10641 Collection map(f(int element)) => Collections.map(this, [], f);
10544 10642
10545 Collection<int> filter(bool f(int element)) => 10643 Collection<int> filter(bool f(int element)) =>
10546 _Collections.filter(this, <int>[], f); 10644 Collections.filter(this, <int>[], f);
10547 10645
10548 bool every(bool f(int element)) => _Collections.every(this, f); 10646 bool every(bool f(int element)) => Collections.every(this, f);
10549 10647
10550 bool some(bool f(int element)) => _Collections.some(this, f); 10648 bool some(bool f(int element)) => Collections.some(this, f);
10551 10649
10552 bool get isEmpty => this.length == 0; 10650 bool get isEmpty => this.length == 0;
10553 10651
10554 // From List<int>: 10652 // From List<int>:
10555 10653
10556 void sort([Comparator<int> compare = Comparable.compare]) { 10654 void sort([Comparator<int> compare = Comparable.compare]) {
10557 throw new UnsupportedError("Cannot sort immutable List."); 10655 throw new UnsupportedError("Cannot sort immutable List.");
10558 } 10656 }
10559 10657
10560 int indexOf(int element, [int start = 0]) => 10658 int indexOf(int element, [int start = 0]) =>
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
10639 } 10737 }
10640 10738
10641 void addLast(int value) { 10739 void addLast(int value) {
10642 throw new UnsupportedError("Cannot add to immutable List."); 10740 throw new UnsupportedError("Cannot add to immutable List.");
10643 } 10741 }
10644 10742
10645 void addAll(Collection<int> collection) { 10743 void addAll(Collection<int> collection) {
10646 throw new UnsupportedError("Cannot add to immutable List."); 10744 throw new UnsupportedError("Cannot add to immutable List.");
10647 } 10745 }
10648 10746
10649 bool contains(int element) => _Collections.contains(this, element); 10747 bool contains(int element) => Collections.contains(this, element);
10650 10748
10651 void forEach(void f(int element)) => _Collections.forEach(this, f); 10749 void forEach(void f(int element)) => Collections.forEach(this, f);
10652 10750
10653 Collection map(f(int element)) => _Collections.map(this, [], f); 10751 Collection map(f(int element)) => Collections.map(this, [], f);
10654 10752
10655 Collection<int> filter(bool f(int element)) => 10753 Collection<int> filter(bool f(int element)) =>
10656 _Collections.filter(this, <int>[], f); 10754 Collections.filter(this, <int>[], f);
10657 10755
10658 bool every(bool f(int element)) => _Collections.every(this, f); 10756 bool every(bool f(int element)) => Collections.every(this, f);
10659 10757
10660 bool some(bool f(int element)) => _Collections.some(this, f); 10758 bool some(bool f(int element)) => Collections.some(this, f);
10661 10759
10662 bool get isEmpty => this.length == 0; 10760 bool get isEmpty => this.length == 0;
10663 10761
10664 // From List<int>: 10762 // From List<int>:
10665 10763
10666 void sort([Comparator<int> compare = Comparable.compare]) { 10764 void sort([Comparator<int> compare = Comparable.compare]) {
10667 throw new UnsupportedError("Cannot sort immutable List."); 10765 throw new UnsupportedError("Cannot sort immutable List.");
10668 } 10766 }
10669 10767
10670 int indexOf(int element, [int start = 0]) => 10768 int indexOf(int element, [int start = 0]) =>
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
10749 } 10847 }
10750 10848
10751 void addLast(int value) { 10849 void addLast(int value) {
10752 throw new UnsupportedError("Cannot add to immutable List."); 10850 throw new UnsupportedError("Cannot add to immutable List.");
10753 } 10851 }
10754 10852
10755 void addAll(Collection<int> collection) { 10853 void addAll(Collection<int> collection) {
10756 throw new UnsupportedError("Cannot add to immutable List."); 10854 throw new UnsupportedError("Cannot add to immutable List.");
10757 } 10855 }
10758 10856
10759 bool contains(int element) => _Collections.contains(this, element); 10857 bool contains(int element) => Collections.contains(this, element);
10760 10858
10761 void forEach(void f(int element)) => _Collections.forEach(this, f); 10859 void forEach(void f(int element)) => Collections.forEach(this, f);
10762 10860
10763 Collection map(f(int element)) => _Collections.map(this, [], f); 10861 Collection map(f(int element)) => Collections.map(this, [], f);
10764 10862
10765 Collection<int> filter(bool f(int element)) => 10863 Collection<int> filter(bool f(int element)) =>
10766 _Collections.filter(this, <int>[], f); 10864 Collections.filter(this, <int>[], f);
10767 10865
10768 bool every(bool f(int element)) => _Collections.every(this, f); 10866 bool every(bool f(int element)) => Collections.every(this, f);
10769 10867
10770 bool some(bool f(int element)) => _Collections.some(this, f); 10868 bool some(bool f(int element)) => Collections.some(this, f);
10771 10869
10772 bool get isEmpty => this.length == 0; 10870 bool get isEmpty => this.length == 0;
10773 10871
10774 // From List<int>: 10872 // From List<int>:
10775 10873
10776 void sort([Comparator<int> compare = Comparable.compare]) { 10874 void sort([Comparator<int> compare = Comparable.compare]) {
10777 throw new UnsupportedError("Cannot sort immutable List."); 10875 throw new UnsupportedError("Cannot sort immutable List.");
10778 } 10876 }
10779 10877
10780 int indexOf(int element, [int start = 0]) => 10878 int indexOf(int element, [int start = 0]) =>
(...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after
11511 void moveTo(num x, num y) native; 11609 void moveTo(num x, num y) native;
11512 11610
11513 /// @domName DOMWindow.openDatabase; @docsEditable true 11611 /// @domName DOMWindow.openDatabase; @docsEditable true
11514 @Creates('Database') @Creates('DatabaseSync') 11612 @Creates('Database') @Creates('DatabaseSync')
11515 Database openDatabase(String name, String version, String displayName, int est imatedSize, [DatabaseCallback creationCallback]) native; 11613 Database openDatabase(String name, String version, String displayName, int est imatedSize, [DatabaseCallback creationCallback]) native;
11516 11614
11517 /// @domName Window.postMessage; @docsEditable true 11615 /// @domName Window.postMessage; @docsEditable true
11518 void postMessage(/*SerializedScriptValue*/ message, String targetOrigin, [List messagePorts]) { 11616 void postMessage(/*SerializedScriptValue*/ message, String targetOrigin, [List messagePorts]) {
11519 if (?message && 11617 if (?message &&
11520 !?messagePorts) { 11618 !?messagePorts) {
11521 var message_1 = _convertDartToNative_SerializedScriptValue(message); 11619 var message_1 = convertDartToNative_SerializedScriptValue(message);
11522 _postMessage_1(message_1, targetOrigin); 11620 _postMessage_1(message_1, targetOrigin);
11523 return; 11621 return;
11524 } 11622 }
11525 if (?message) { 11623 if (?message) {
11526 var message_2 = _convertDartToNative_SerializedScriptValue(message); 11624 var message_2 = convertDartToNative_SerializedScriptValue(message);
11527 _postMessage_2(message_2, targetOrigin, messagePorts); 11625 _postMessage_2(message_2, targetOrigin, messagePorts);
11528 return; 11626 return;
11529 } 11627 }
11530 throw new ArgumentError("Incorrect number or type of arguments"); 11628 throw new ArgumentError("Incorrect number or type of arguments");
11531 } 11629 }
11532 void _postMessage_1(message, targetOrigin) native "postMessage"; 11630 void _postMessage_1(message, targetOrigin) native "postMessage";
11533 void _postMessage_2(message, targetOrigin, List messagePorts) native "postMess age"; 11631 void _postMessage_2(message, targetOrigin, List messagePorts) native "postMess age";
11534 11632
11535 /// @domName Window.print; @docsEditable true 11633 /// @domName Window.print; @docsEditable true
11536 void print() native; 11634 void print() native;
(...skipping 885 matching lines...) Expand 10 before | Expand all | Expand 10 after
12422 } 12520 }
12423 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12521 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12424 // for details. All rights reserved. Use of this source code is governed by a 12522 // for details. All rights reserved. Use of this source code is governed by a
12425 // BSD-style license that can be found in the LICENSE file. 12523 // BSD-style license that can be found in the LICENSE file.
12426 12524
12427 12525
12428 /// @domName MessageEvent; @docsEditable true 12526 /// @domName MessageEvent; @docsEditable true
12429 class MessageEvent extends Event native "*MessageEvent" { 12527 class MessageEvent extends Event native "*MessageEvent" {
12430 12528
12431 /// @domName MessageEvent.data; @docsEditable true 12529 /// @domName MessageEvent.data; @docsEditable true
12432 dynamic get data => _convertNativeToDart_SerializedScriptValue(this._data); 12530 dynamic get data => convertNativeToDart_SerializedScriptValue(this._data);
12433 dynamic get _data => JS("dynamic", "#.data", this); 12531 dynamic get _data => JS("dynamic", "#.data", this);
12434 12532
12435 /// @domName MessageEvent.lastEventId; @docsEditable true 12533 /// @domName MessageEvent.lastEventId; @docsEditable true
12436 final String lastEventId; 12534 final String lastEventId;
12437 12535
12438 /// @domName MessageEvent.origin; @docsEditable true 12536 /// @domName MessageEvent.origin; @docsEditable true
12439 final String origin; 12537 final String origin;
12440 12538
12441 /// @domName MessageEvent.ports; @docsEditable true 12539 /// @domName MessageEvent.ports; @docsEditable true
12442 @Creates('=List') 12540 @Creates('=List')
(...skipping 26 matching lines...) Expand all
12469 12567
12470 /// @domName MessagePort.close; @docsEditable true 12568 /// @domName MessagePort.close; @docsEditable true
12471 void close() native; 12569 void close() native;
12472 12570
12473 /// @domName MessagePort.dispatchEvent; @docsEditable true 12571 /// @domName MessagePort.dispatchEvent; @docsEditable true
12474 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; 12572 bool $dom_dispatchEvent(Event evt) native "dispatchEvent";
12475 12573
12476 /// @domName MessagePort.postMessage; @docsEditable true 12574 /// @domName MessagePort.postMessage; @docsEditable true
12477 void postMessage(/*any*/ message, [List messagePorts]) { 12575 void postMessage(/*any*/ message, [List messagePorts]) {
12478 if (?messagePorts) { 12576 if (?messagePorts) {
12479 var message_1 = _convertDartToNative_SerializedScriptValue(message); 12577 var message_1 = convertDartToNative_SerializedScriptValue(message);
12480 _postMessage_1(message_1, messagePorts); 12578 _postMessage_1(message_1, messagePorts);
12481 return; 12579 return;
12482 } 12580 }
12483 var message_2 = _convertDartToNative_SerializedScriptValue(message); 12581 var message_2 = convertDartToNative_SerializedScriptValue(message);
12484 _postMessage_2(message_2); 12582 _postMessage_2(message_2);
12485 return; 12583 return;
12486 } 12584 }
12487 void _postMessage_1(message, List messagePorts) native "postMessage"; 12585 void _postMessage_1(message, List messagePorts) native "postMessage";
12488 void _postMessage_2(message) native "postMessage"; 12586 void _postMessage_2(message) native "postMessage";
12489 12587
12490 /// @domName MessagePort.removeEventListener; @docsEditable true 12588 /// @domName MessagePort.removeEventListener; @docsEditable true
12491 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 12589 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
12492 12590
12493 /// @domName MessagePort.start; @docsEditable true 12591 /// @domName MessagePort.start; @docsEditable true
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
12742 /// @domName MutationObserver 12840 /// @domName MutationObserver
12743 class MutationObserver native "*MutationObserver" { 12841 class MutationObserver native "*MutationObserver" {
12744 12842
12745 factory MutationObserver(MutationCallback callback) => _MutationObserverFactor yProvider.createMutationObserver(callback); 12843 factory MutationObserver(MutationCallback callback) => _MutationObserverFactor yProvider.createMutationObserver(callback);
12746 12844
12747 /// @domName MutationObserver.disconnect; @docsEditable true 12845 /// @domName MutationObserver.disconnect; @docsEditable true
12748 void disconnect() native; 12846 void disconnect() native;
12749 12847
12750 /// @domName MutationObserver._observe; @docsEditable true 12848 /// @domName MutationObserver._observe; @docsEditable true
12751 void _observe(Node target, Map options) { 12849 void _observe(Node target, Map options) {
12752 var options_1 = _convertDartToNative_Dictionary(options); 12850 var options_1 = convertDartToNative_Dictionary(options);
12753 __observe_1(target, options_1); 12851 __observe_1(target, options_1);
12754 return; 12852 return;
12755 } 12853 }
12756 void __observe_1(Node target, options) native "observe"; 12854 void __observe_1(Node target, options) native "observe";
12757 12855
12758 /// @domName MutationObserver.takeRecords; @docsEditable true 12856 /// @domName MutationObserver.takeRecords; @docsEditable true
12759 List<MutationRecord> takeRecords() native; 12857 List<MutationRecord> takeRecords() native;
12760 12858
12761 void observe(Node target, 12859 void observe(Node target,
12762 {Map options, 12860 {Map options,
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
12891 } 12989 }
12892 12990
12893 void addLast(Node value) { 12991 void addLast(Node value) {
12894 throw new UnsupportedError("Cannot add to immutable List."); 12992 throw new UnsupportedError("Cannot add to immutable List.");
12895 } 12993 }
12896 12994
12897 void addAll(Collection<Node> collection) { 12995 void addAll(Collection<Node> collection) {
12898 throw new UnsupportedError("Cannot add to immutable List."); 12996 throw new UnsupportedError("Cannot add to immutable List.");
12899 } 12997 }
12900 12998
12901 bool contains(Node element) => _Collections.contains(this, element); 12999 bool contains(Node element) => Collections.contains(this, element);
12902 13000
12903 void forEach(void f(Node element)) => _Collections.forEach(this, f); 13001 void forEach(void f(Node element)) => Collections.forEach(this, f);
12904 13002
12905 Collection map(f(Node element)) => _Collections.map(this, [], f); 13003 Collection map(f(Node element)) => Collections.map(this, [], f);
12906 13004
12907 Collection<Node> filter(bool f(Node element)) => 13005 Collection<Node> filter(bool f(Node element)) =>
12908 _Collections.filter(this, <Node>[], f); 13006 Collections.filter(this, <Node>[], f);
12909 13007
12910 bool every(bool f(Node element)) => _Collections.every(this, f); 13008 bool every(bool f(Node element)) => Collections.every(this, f);
12911 13009
12912 bool some(bool f(Node element)) => _Collections.some(this, f); 13010 bool some(bool f(Node element)) => Collections.some(this, f);
12913 13011
12914 bool get isEmpty => this.length == 0; 13012 bool get isEmpty => this.length == 0;
12915 13013
12916 // From List<Node>: 13014 // From List<Node>:
12917 13015
12918 void sort([Comparator<Node> compare = Comparable.compare]) { 13016 void sort([Comparator<Node> compare = Comparable.compare]) {
12919 throw new UnsupportedError("Cannot sort immutable List."); 13017 throw new UnsupportedError("Cannot sort immutable List.");
12920 } 13018 }
12921 13019
12922 int indexOf(Node element, [int start = 0]) => 13020 int indexOf(Node element, [int start = 0]) =>
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
13035 /// @domName Navigator.javaEnabled; @docsEditable true 13133 /// @domName Navigator.javaEnabled; @docsEditable true
13036 bool javaEnabled() native; 13134 bool javaEnabled() native;
13037 13135
13038 /// @domName Navigator.webkitGetGamepads; @docsEditable true 13136 /// @domName Navigator.webkitGetGamepads; @docsEditable true
13039 @Returns('_GamepadList') @Creates('_GamepadList') 13137 @Returns('_GamepadList') @Creates('_GamepadList')
13040 List<Gamepad> webkitGetGamepads() native; 13138 List<Gamepad> webkitGetGamepads() native;
13041 13139
13042 /// @domName Navigator.webkitGetUserMedia; @docsEditable true 13140 /// @domName Navigator.webkitGetUserMedia; @docsEditable true
13043 void webkitGetUserMedia(Map options, NavigatorUserMediaSuccessCallback success Callback, [NavigatorUserMediaErrorCallback errorCallback]) { 13141 void webkitGetUserMedia(Map options, NavigatorUserMediaSuccessCallback success Callback, [NavigatorUserMediaErrorCallback errorCallback]) {
13044 if (?errorCallback) { 13142 if (?errorCallback) {
13045 var options_1 = _convertDartToNative_Dictionary(options); 13143 var options_1 = convertDartToNative_Dictionary(options);
13046 _webkitGetUserMedia_1(options_1, successCallback, errorCallback); 13144 _webkitGetUserMedia_1(options_1, successCallback, errorCallback);
13047 return; 13145 return;
13048 } 13146 }
13049 var options_2 = _convertDartToNative_Dictionary(options); 13147 var options_2 = convertDartToNative_Dictionary(options);
13050 _webkitGetUserMedia_2(options_2, successCallback); 13148 _webkitGetUserMedia_2(options_2, successCallback);
13051 return; 13149 return;
13052 } 13150 }
13053 void _webkitGetUserMedia_1(options, NavigatorUserMediaSuccessCallback successC allback, NavigatorUserMediaErrorCallback errorCallback) native "webkitGetUserMed ia"; 13151 void _webkitGetUserMedia_1(options, NavigatorUserMediaSuccessCallback successC allback, NavigatorUserMediaErrorCallback errorCallback) native "webkitGetUserMed ia";
13054 void _webkitGetUserMedia_2(options, NavigatorUserMediaSuccessCallback successC allback) native "webkitGetUserMedia"; 13152 void _webkitGetUserMedia_2(options, NavigatorUserMediaSuccessCallback successC allback) native "webkitGetUserMedia";
13055 } 13153 }
13056 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13154 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13057 // for details. All rights reserved. Use of this source code is governed by a 13155 // for details. All rights reserved. Use of this source code is governed by a
13058 // BSD-style license that can be found in the LICENSE file. 13156 // BSD-style license that can be found in the LICENSE file.
13059 13157
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
13129 } 13227 }
13130 13228
13131 void operator []=(int index, Node value) { 13229 void operator []=(int index, Node value) {
13132 _this.$dom_replaceChild(value, this[index]); 13230 _this.$dom_replaceChild(value, this[index]);
13133 } 13231 }
13134 13232
13135 Iterator<Node> iterator() => _this.$dom_childNodes.iterator(); 13233 Iterator<Node> iterator() => _this.$dom_childNodes.iterator();
13136 13234
13137 // TODO(jacobr): We can implement these methods much more efficiently by 13235 // TODO(jacobr): We can implement these methods much more efficiently by
13138 // looking up the nodeList only once instead of once per iteration. 13236 // looking up the nodeList only once instead of once per iteration.
13139 bool contains(Node element) => _Collections.contains(this, element); 13237 bool contains(Node element) => Collections.contains(this, element);
13140 13238
13141 void forEach(void f(Node element)) => _Collections.forEach(this, f); 13239 void forEach(void f(Node element)) => Collections.forEach(this, f);
13142 13240
13143 Collection map(f(Node element)) => _Collections.map(this, [], f); 13241 Collection map(f(Node element)) => Collections.map(this, [], f);
13144 13242
13145 Collection<Node> filter(bool f(Node element)) => 13243 Collection<Node> filter(bool f(Node element)) =>
13146 _Collections.filter(this, <Node>[], f); 13244 Collections.filter(this, <Node>[], f);
13147 13245
13148 bool every(bool f(Node element)) => _Collections.every(this, f); 13246 bool every(bool f(Node element)) => Collections.every(this, f);
13149 13247
13150 bool some(bool f(Node element)) => _Collections.some(this, f); 13248 bool some(bool f(Node element)) => Collections.some(this, f);
13151 13249
13152 bool get isEmpty => this.length == 0; 13250 bool get isEmpty => this.length == 0;
13153 13251
13154 // From List<Node>: 13252 // From List<Node>:
13155 13253
13156 // TODO(jacobr): this could be implemented for child node lists. 13254 // TODO(jacobr): this could be implemented for child node lists.
13157 // The exception we throw here is misleading. 13255 // The exception we throw here is misleading.
13158 void sort([Comparator<Node> compare = Comparable.compare]) { 13256 void sort([Comparator<Node> compare = Comparable.compare]) {
13159 throw new UnsupportedError("Cannot sort immutable List."); 13257 throw new UnsupportedError("Cannot sort immutable List.");
13160 } 13258 }
(...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after
13926 /// @domName PeerConnection00.remoteStreams; @docsEditable true 14024 /// @domName PeerConnection00.remoteStreams; @docsEditable true
13927 @Returns('_MediaStreamList') @Creates('_MediaStreamList') 14025 @Returns('_MediaStreamList') @Creates('_MediaStreamList')
13928 final List<MediaStream> remoteStreams; 14026 final List<MediaStream> remoteStreams;
13929 14027
13930 /// @domName PeerConnection00.addEventListener; @docsEditable true 14028 /// @domName PeerConnection00.addEventListener; @docsEditable true
13931 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 14029 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
13932 14030
13933 /// @domName PeerConnection00.addStream; @docsEditable true 14031 /// @domName PeerConnection00.addStream; @docsEditable true
13934 void addStream(MediaStream stream, [Map mediaStreamHints]) { 14032 void addStream(MediaStream stream, [Map mediaStreamHints]) {
13935 if (?mediaStreamHints) { 14033 if (?mediaStreamHints) {
13936 var mediaStreamHints_1 = _convertDartToNative_Dictionary(mediaStreamHints) ; 14034 var mediaStreamHints_1 = convertDartToNative_Dictionary(mediaStreamHints);
13937 _addStream_1(stream, mediaStreamHints_1); 14035 _addStream_1(stream, mediaStreamHints_1);
13938 return; 14036 return;
13939 } 14037 }
13940 _addStream_2(stream); 14038 _addStream_2(stream);
13941 return; 14039 return;
13942 } 14040 }
13943 void _addStream_1(MediaStream stream, mediaStreamHints) native "addStream"; 14041 void _addStream_1(MediaStream stream, mediaStreamHints) native "addStream";
13944 void _addStream_2(MediaStream stream) native "addStream"; 14042 void _addStream_2(MediaStream stream) native "addStream";
13945 14043
13946 /// @domName PeerConnection00.close; @docsEditable true 14044 /// @domName PeerConnection00.close; @docsEditable true
13947 void close() native; 14045 void close() native;
13948 14046
13949 /// @domName PeerConnection00.createAnswer; @docsEditable true 14047 /// @domName PeerConnection00.createAnswer; @docsEditable true
13950 SessionDescription createAnswer(String offer, [Map mediaHints]) { 14048 SessionDescription createAnswer(String offer, [Map mediaHints]) {
13951 if (?mediaHints) { 14049 if (?mediaHints) {
13952 var mediaHints_1 = _convertDartToNative_Dictionary(mediaHints); 14050 var mediaHints_1 = convertDartToNative_Dictionary(mediaHints);
13953 return _createAnswer_1(offer, mediaHints_1); 14051 return _createAnswer_1(offer, mediaHints_1);
13954 } 14052 }
13955 return _createAnswer_2(offer); 14053 return _createAnswer_2(offer);
13956 } 14054 }
13957 SessionDescription _createAnswer_1(offer, mediaHints) native "createAnswer"; 14055 SessionDescription _createAnswer_1(offer, mediaHints) native "createAnswer";
13958 SessionDescription _createAnswer_2(offer) native "createAnswer"; 14056 SessionDescription _createAnswer_2(offer) native "createAnswer";
13959 14057
13960 /// @domName PeerConnection00.createOffer; @docsEditable true 14058 /// @domName PeerConnection00.createOffer; @docsEditable true
13961 SessionDescription createOffer([Map mediaHints]) { 14059 SessionDescription createOffer([Map mediaHints]) {
13962 if (?mediaHints) { 14060 if (?mediaHints) {
13963 var mediaHints_1 = _convertDartToNative_Dictionary(mediaHints); 14061 var mediaHints_1 = convertDartToNative_Dictionary(mediaHints);
13964 return _createOffer_1(mediaHints_1); 14062 return _createOffer_1(mediaHints_1);
13965 } 14063 }
13966 return _createOffer_2(); 14064 return _createOffer_2();
13967 } 14065 }
13968 SessionDescription _createOffer_1(mediaHints) native "createOffer"; 14066 SessionDescription _createOffer_1(mediaHints) native "createOffer";
13969 SessionDescription _createOffer_2() native "createOffer"; 14067 SessionDescription _createOffer_2() native "createOffer";
13970 14068
13971 /// @domName PeerConnection00.dispatchEvent; @docsEditable true 14069 /// @domName PeerConnection00.dispatchEvent; @docsEditable true
13972 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; 14070 bool $dom_dispatchEvent(Event event) native "dispatchEvent";
13973 14071
13974 /// @domName PeerConnection00.processIceMessage; @docsEditable true 14072 /// @domName PeerConnection00.processIceMessage; @docsEditable true
13975 void processIceMessage(IceCandidate candidate) native; 14073 void processIceMessage(IceCandidate candidate) native;
13976 14074
13977 /// @domName PeerConnection00.removeEventListener; @docsEditable true 14075 /// @domName PeerConnection00.removeEventListener; @docsEditable true
13978 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 14076 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
13979 14077
13980 /// @domName PeerConnection00.removeStream; @docsEditable true 14078 /// @domName PeerConnection00.removeStream; @docsEditable true
13981 void removeStream(MediaStream stream) native; 14079 void removeStream(MediaStream stream) native;
13982 14080
13983 /// @domName PeerConnection00.setLocalDescription; @docsEditable true 14081 /// @domName PeerConnection00.setLocalDescription; @docsEditable true
13984 void setLocalDescription(int action, SessionDescription desc) native; 14082 void setLocalDescription(int action, SessionDescription desc) native;
13985 14083
13986 /// @domName PeerConnection00.setRemoteDescription; @docsEditable true 14084 /// @domName PeerConnection00.setRemoteDescription; @docsEditable true
13987 void setRemoteDescription(int action, SessionDescription desc) native; 14085 void setRemoteDescription(int action, SessionDescription desc) native;
13988 14086
13989 /// @domName PeerConnection00.startIce; @docsEditable true 14087 /// @domName PeerConnection00.startIce; @docsEditable true
13990 void startIce([Map iceOptions]) { 14088 void startIce([Map iceOptions]) {
13991 if (?iceOptions) { 14089 if (?iceOptions) {
13992 var iceOptions_1 = _convertDartToNative_Dictionary(iceOptions); 14090 var iceOptions_1 = convertDartToNative_Dictionary(iceOptions);
13993 _startIce_1(iceOptions_1); 14091 _startIce_1(iceOptions_1);
13994 return; 14092 return;
13995 } 14093 }
13996 _startIce_2(); 14094 _startIce_2();
13997 return; 14095 return;
13998 } 14096 }
13999 void _startIce_1(iceOptions) native "startIce"; 14097 void _startIce_1(iceOptions) native "startIce";
14000 void _startIce_2() native "startIce"; 14098 void _startIce_2() native "startIce";
14001 } 14099 }
14002 14100
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
14146 } 14244 }
14147 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14245 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14148 // for details. All rights reserved. Use of this source code is governed by a 14246 // for details. All rights reserved. Use of this source code is governed by a
14149 // BSD-style license that can be found in the LICENSE file. 14247 // BSD-style license that can be found in the LICENSE file.
14150 14248
14151 14249
14152 /// @domName PopStateEvent; @docsEditable true 14250 /// @domName PopStateEvent; @docsEditable true
14153 class PopStateEvent extends Event native "*PopStateEvent" { 14251 class PopStateEvent extends Event native "*PopStateEvent" {
14154 14252
14155 /// @domName PopStateEvent.state; @docsEditable true 14253 /// @domName PopStateEvent.state; @docsEditable true
14156 dynamic get state => _convertNativeToDart_SerializedScriptValue(this._state); 14254 dynamic get state => convertNativeToDart_SerializedScriptValue(this._state);
14157 dynamic get _state => JS("dynamic", "#.state", this); 14255 dynamic get _state => JS("dynamic", "#.state", this);
14158 } 14256 }
14159 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14257 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14160 // for details. All rights reserved. Use of this source code is governed by a 14258 // for details. All rights reserved. Use of this source code is governed by a
14161 // BSD-style license that can be found in the LICENSE file. 14259 // BSD-style license that can be found in the LICENSE file.
14162 14260
14163 // WARNING: Do not edit - generated code. 14261 // WARNING: Do not edit - generated code.
14164 14262
14165 14263
14166 typedef void PositionCallback(Geoposition position); 14264 typedef void PositionCallback(Geoposition position);
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
14437 14535
14438 /// @domName RTCPeerConnection.addEventListener; @docsEditable true 14536 /// @domName RTCPeerConnection.addEventListener; @docsEditable true
14439 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 14537 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
14440 14538
14441 /// @domName RTCPeerConnection.addIceCandidate; @docsEditable true 14539 /// @domName RTCPeerConnection.addIceCandidate; @docsEditable true
14442 void addIceCandidate(RTCIceCandidate candidate) native; 14540 void addIceCandidate(RTCIceCandidate candidate) native;
14443 14541
14444 /// @domName RTCPeerConnection.addStream; @docsEditable true 14542 /// @domName RTCPeerConnection.addStream; @docsEditable true
14445 void addStream(MediaStream stream, [Map mediaConstraints]) { 14543 void addStream(MediaStream stream, [Map mediaConstraints]) {
14446 if (?mediaConstraints) { 14544 if (?mediaConstraints) {
14447 var mediaConstraints_1 = _convertDartToNative_Dictionary(mediaConstraints) ; 14545 var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints);
14448 _addStream_1(stream, mediaConstraints_1); 14546 _addStream_1(stream, mediaConstraints_1);
14449 return; 14547 return;
14450 } 14548 }
14451 _addStream_2(stream); 14549 _addStream_2(stream);
14452 return; 14550 return;
14453 } 14551 }
14454 void _addStream_1(MediaStream stream, mediaConstraints) native "addStream"; 14552 void _addStream_1(MediaStream stream, mediaConstraints) native "addStream";
14455 void _addStream_2(MediaStream stream) native "addStream"; 14553 void _addStream_2(MediaStream stream) native "addStream";
14456 14554
14457 /// @domName RTCPeerConnection.close; @docsEditable true 14555 /// @domName RTCPeerConnection.close; @docsEditable true
14458 void close() native; 14556 void close() native;
14459 14557
14460 /// @domName RTCPeerConnection.createAnswer; @docsEditable true 14558 /// @domName RTCPeerConnection.createAnswer; @docsEditable true
14461 void createAnswer(RTCSessionDescriptionCallback successCallback, [RTCErrorCall back failureCallback, Map mediaConstraints]) { 14559 void createAnswer(RTCSessionDescriptionCallback successCallback, [RTCErrorCall back failureCallback, Map mediaConstraints]) {
14462 if (?mediaConstraints) { 14560 if (?mediaConstraints) {
14463 var mediaConstraints_1 = _convertDartToNative_Dictionary(mediaConstraints) ; 14561 var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints);
14464 _createAnswer_1(successCallback, failureCallback, mediaConstraints_1); 14562 _createAnswer_1(successCallback, failureCallback, mediaConstraints_1);
14465 return; 14563 return;
14466 } 14564 }
14467 _createAnswer_2(successCallback, failureCallback); 14565 _createAnswer_2(successCallback, failureCallback);
14468 return; 14566 return;
14469 } 14567 }
14470 void _createAnswer_1(RTCSessionDescriptionCallback successCallback, RTCErrorCa llback failureCallback, mediaConstraints) native "createAnswer"; 14568 void _createAnswer_1(RTCSessionDescriptionCallback successCallback, RTCErrorCa llback failureCallback, mediaConstraints) native "createAnswer";
14471 void _createAnswer_2(RTCSessionDescriptionCallback successCallback, RTCErrorCa llback failureCallback) native "createAnswer"; 14569 void _createAnswer_2(RTCSessionDescriptionCallback successCallback, RTCErrorCa llback failureCallback) native "createAnswer";
14472 14570
14473 /// @domName RTCPeerConnection.createDataChannel; @docsEditable true 14571 /// @domName RTCPeerConnection.createDataChannel; @docsEditable true
14474 RTCDataChannel createDataChannel(String label, [Map options]) { 14572 RTCDataChannel createDataChannel(String label, [Map options]) {
14475 if (?options) { 14573 if (?options) {
14476 var options_1 = _convertDartToNative_Dictionary(options); 14574 var options_1 = convertDartToNative_Dictionary(options);
14477 return _createDataChannel_1(label, options_1); 14575 return _createDataChannel_1(label, options_1);
14478 } 14576 }
14479 return _createDataChannel_2(label); 14577 return _createDataChannel_2(label);
14480 } 14578 }
14481 RTCDataChannel _createDataChannel_1(label, options) native "createDataChannel" ; 14579 RTCDataChannel _createDataChannel_1(label, options) native "createDataChannel" ;
14482 RTCDataChannel _createDataChannel_2(label) native "createDataChannel"; 14580 RTCDataChannel _createDataChannel_2(label) native "createDataChannel";
14483 14581
14484 /// @domName RTCPeerConnection.createOffer; @docsEditable true 14582 /// @domName RTCPeerConnection.createOffer; @docsEditable true
14485 void createOffer(RTCSessionDescriptionCallback successCallback, [RTCErrorCallb ack failureCallback, Map mediaConstraints]) { 14583 void createOffer(RTCSessionDescriptionCallback successCallback, [RTCErrorCallb ack failureCallback, Map mediaConstraints]) {
14486 if (?mediaConstraints) { 14584 if (?mediaConstraints) {
14487 var mediaConstraints_1 = _convertDartToNative_Dictionary(mediaConstraints) ; 14585 var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints);
14488 _createOffer_1(successCallback, failureCallback, mediaConstraints_1); 14586 _createOffer_1(successCallback, failureCallback, mediaConstraints_1);
14489 return; 14587 return;
14490 } 14588 }
14491 _createOffer_2(successCallback, failureCallback); 14589 _createOffer_2(successCallback, failureCallback);
14492 return; 14590 return;
14493 } 14591 }
14494 void _createOffer_1(RTCSessionDescriptionCallback successCallback, RTCErrorCal lback failureCallback, mediaConstraints) native "createOffer"; 14592 void _createOffer_1(RTCSessionDescriptionCallback successCallback, RTCErrorCal lback failureCallback, mediaConstraints) native "createOffer";
14495 void _createOffer_2(RTCSessionDescriptionCallback successCallback, RTCErrorCal lback failureCallback) native "createOffer"; 14593 void _createOffer_2(RTCSessionDescriptionCallback successCallback, RTCErrorCal lback failureCallback) native "createOffer";
14496 14594
14497 /// @domName RTCPeerConnection.dispatchEvent; @docsEditable true 14595 /// @domName RTCPeerConnection.dispatchEvent; @docsEditable true
(...skipping 10 matching lines...) Expand all
14508 14606
14509 /// @domName RTCPeerConnection.setLocalDescription; @docsEditable true 14607 /// @domName RTCPeerConnection.setLocalDescription; @docsEditable true
14510 void setLocalDescription(RTCSessionDescription description, [VoidCallback succ essCallback, RTCErrorCallback failureCallback]) native; 14608 void setLocalDescription(RTCSessionDescription description, [VoidCallback succ essCallback, RTCErrorCallback failureCallback]) native;
14511 14609
14512 /// @domName RTCPeerConnection.setRemoteDescription; @docsEditable true 14610 /// @domName RTCPeerConnection.setRemoteDescription; @docsEditable true
14513 void setRemoteDescription(RTCSessionDescription description, [VoidCallback suc cessCallback, RTCErrorCallback failureCallback]) native; 14611 void setRemoteDescription(RTCSessionDescription description, [VoidCallback suc cessCallback, RTCErrorCallback failureCallback]) native;
14514 14612
14515 /// @domName RTCPeerConnection.updateIce; @docsEditable true 14613 /// @domName RTCPeerConnection.updateIce; @docsEditable true
14516 void updateIce([Map configuration, Map mediaConstraints]) { 14614 void updateIce([Map configuration, Map mediaConstraints]) {
14517 if (?mediaConstraints) { 14615 if (?mediaConstraints) {
14518 var configuration_1 = _convertDartToNative_Dictionary(configuration); 14616 var configuration_1 = convertDartToNative_Dictionary(configuration);
14519 var mediaConstraints_2 = _convertDartToNative_Dictionary(mediaConstraints) ; 14617 var mediaConstraints_2 = convertDartToNative_Dictionary(mediaConstraints);
14520 _updateIce_1(configuration_1, mediaConstraints_2); 14618 _updateIce_1(configuration_1, mediaConstraints_2);
14521 return; 14619 return;
14522 } 14620 }
14523 if (?configuration) { 14621 if (?configuration) {
14524 var configuration_3 = _convertDartToNative_Dictionary(configuration); 14622 var configuration_3 = convertDartToNative_Dictionary(configuration);
14525 _updateIce_2(configuration_3); 14623 _updateIce_2(configuration_3);
14526 return; 14624 return;
14527 } 14625 }
14528 _updateIce_3(); 14626 _updateIce_3();
14529 return; 14627 return;
14530 } 14628 }
14531 void _updateIce_1(configuration, mediaConstraints) native "updateIce"; 14629 void _updateIce_1(configuration, mediaConstraints) native "updateIce";
14532 void _updateIce_2(configuration) native "updateIce"; 14630 void _updateIce_2(configuration) native "updateIce";
14533 void _updateIce_3() native "updateIce"; 14631 void _updateIce_3() native "updateIce";
14534 } 14632 }
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
14914 } 15012 }
14915 15013
14916 void addLast(Map value) { 15014 void addLast(Map value) {
14917 throw new UnsupportedError("Cannot add to immutable List."); 15015 throw new UnsupportedError("Cannot add to immutable List.");
14918 } 15016 }
14919 15017
14920 void addAll(Collection<Map> collection) { 15018 void addAll(Collection<Map> collection) {
14921 throw new UnsupportedError("Cannot add to immutable List."); 15019 throw new UnsupportedError("Cannot add to immutable List.");
14922 } 15020 }
14923 15021
14924 bool contains(Map element) => _Collections.contains(this, element); 15022 bool contains(Map element) => Collections.contains(this, element);
14925 15023
14926 void forEach(void f(Map element)) => _Collections.forEach(this, f); 15024 void forEach(void f(Map element)) => Collections.forEach(this, f);
14927 15025
14928 Collection map(f(Map element)) => _Collections.map(this, [], f); 15026 Collection map(f(Map element)) => Collections.map(this, [], f);
14929 15027
14930 Collection<Map> filter(bool f(Map element)) => 15028 Collection<Map> filter(bool f(Map element)) =>
14931 _Collections.filter(this, <Map>[], f); 15029 Collections.filter(this, <Map>[], f);
14932 15030
14933 bool every(bool f(Map element)) => _Collections.every(this, f); 15031 bool every(bool f(Map element)) => Collections.every(this, f);
14934 15032
14935 bool some(bool f(Map element)) => _Collections.some(this, f); 15033 bool some(bool f(Map element)) => Collections.some(this, f);
14936 15034
14937 bool get isEmpty => this.length == 0; 15035 bool get isEmpty => this.length == 0;
14938 15036
14939 // From List<Map>: 15037 // From List<Map>:
14940 15038
14941 void sort([Comparator<Map> compare = Comparable.compare]) { 15039 void sort([Comparator<Map> compare = Comparable.compare]) {
14942 throw new UnsupportedError("Cannot sort immutable List."); 15040 throw new UnsupportedError("Cannot sort immutable List.");
14943 } 15041 }
14944 15042
14945 int indexOf(Map element, [int start = 0]) => 15043 int indexOf(Map element, [int start = 0]) =>
(...skipping 24 matching lines...) Expand all
14970 throw new UnsupportedError("Cannot insertRange on immutable List."); 15068 throw new UnsupportedError("Cannot insertRange on immutable List.");
14971 } 15069 }
14972 15070
14973 List<Map> getRange(int start, int rangeLength) => 15071 List<Map> getRange(int start, int rangeLength) =>
14974 _Lists.getRange(this, start, rangeLength, <Map>[]); 15072 _Lists.getRange(this, start, rangeLength, <Map>[]);
14975 15073
14976 // -- end List<Map> mixins. 15074 // -- end List<Map> mixins.
14977 15075
14978 /// @domName SQLResultSetRowList.item; @docsEditable true 15076 /// @domName SQLResultSetRowList.item; @docsEditable true
14979 Map item(int index) { 15077 Map item(int index) {
14980 return _convertNativeToDart_Dictionary(_item_1(index)); 15078 return convertNativeToDart_Dictionary(_item_1(index));
14981 } 15079 }
14982 @Creates('=Object') 15080 @Creates('=Object')
14983 _item_1(index) native "item"; 15081 _item_1(index) native "item";
14984 } 15082 }
14985 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15083 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14986 // for details. All rights reserved. Use of this source code is governed by a 15084 // for details. All rights reserved. Use of this source code is governed by a
14987 // BSD-style license that can be found in the LICENSE file. 15085 // BSD-style license that can be found in the LICENSE file.
14988 15086
14989 // WARNING: Do not edit - generated code. 15087 // WARNING: Do not edit - generated code.
14990 15088
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
15416 } 15514 }
15417 15515
15418 void addLast(SourceBuffer value) { 15516 void addLast(SourceBuffer value) {
15419 throw new UnsupportedError("Cannot add to immutable List."); 15517 throw new UnsupportedError("Cannot add to immutable List.");
15420 } 15518 }
15421 15519
15422 void addAll(Collection<SourceBuffer> collection) { 15520 void addAll(Collection<SourceBuffer> collection) {
15423 throw new UnsupportedError("Cannot add to immutable List."); 15521 throw new UnsupportedError("Cannot add to immutable List.");
15424 } 15522 }
15425 15523
15426 bool contains(SourceBuffer element) => _Collections.contains(this, element); 15524 bool contains(SourceBuffer element) => Collections.contains(this, element);
15427 15525
15428 void forEach(void f(SourceBuffer element)) => _Collections.forEach(this, f); 15526 void forEach(void f(SourceBuffer element)) => Collections.forEach(this, f);
15429 15527
15430 Collection map(f(SourceBuffer element)) => _Collections.map(this, [], f); 15528 Collection map(f(SourceBuffer element)) => Collections.map(this, [], f);
15431 15529
15432 Collection<SourceBuffer> filter(bool f(SourceBuffer element)) => 15530 Collection<SourceBuffer> filter(bool f(SourceBuffer element)) =>
15433 _Collections.filter(this, <SourceBuffer>[], f); 15531 Collections.filter(this, <SourceBuffer>[], f);
15434 15532
15435 bool every(bool f(SourceBuffer element)) => _Collections.every(this, f); 15533 bool every(bool f(SourceBuffer element)) => Collections.every(this, f);
15436 15534
15437 bool some(bool f(SourceBuffer element)) => _Collections.some(this, f); 15535 bool some(bool f(SourceBuffer element)) => Collections.some(this, f);
15438 15536
15439 bool get isEmpty => this.length == 0; 15537 bool get isEmpty => this.length == 0;
15440 15538
15441 // From List<SourceBuffer>: 15539 // From List<SourceBuffer>:
15442 15540
15443 void sort([Comparator<SourceBuffer> compare = Comparable.compare]) { 15541 void sort([Comparator<SourceBuffer> compare = Comparable.compare]) {
15444 throw new UnsupportedError("Cannot sort immutable List."); 15542 throw new UnsupportedError("Cannot sort immutable List.");
15445 } 15543 }
15446 15544
15447 int indexOf(SourceBuffer element, [int start = 0]) => 15545 int indexOf(SourceBuffer element, [int start = 0]) =>
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
15571 } 15669 }
15572 15670
15573 void addLast(SpeechGrammar value) { 15671 void addLast(SpeechGrammar value) {
15574 throw new UnsupportedError("Cannot add to immutable List."); 15672 throw new UnsupportedError("Cannot add to immutable List.");
15575 } 15673 }
15576 15674
15577 void addAll(Collection<SpeechGrammar> collection) { 15675 void addAll(Collection<SpeechGrammar> collection) {
15578 throw new UnsupportedError("Cannot add to immutable List."); 15676 throw new UnsupportedError("Cannot add to immutable List.");
15579 } 15677 }
15580 15678
15581 bool contains(SpeechGrammar element) => _Collections.contains(this, element); 15679 bool contains(SpeechGrammar element) => Collections.contains(this, element);
15582 15680
15583 void forEach(void f(SpeechGrammar element)) => _Collections.forEach(this, f); 15681 void forEach(void f(SpeechGrammar element)) => Collections.forEach(this, f);
15584 15682
15585 Collection map(f(SpeechGrammar element)) => _Collections.map(this, [], f); 15683 Collection map(f(SpeechGrammar element)) => Collections.map(this, [], f);
15586 15684
15587 Collection<SpeechGrammar> filter(bool f(SpeechGrammar element)) => 15685 Collection<SpeechGrammar> filter(bool f(SpeechGrammar element)) =>
15588 _Collections.filter(this, <SpeechGrammar>[], f); 15686 Collections.filter(this, <SpeechGrammar>[], f);
15589 15687
15590 bool every(bool f(SpeechGrammar element)) => _Collections.every(this, f); 15688 bool every(bool f(SpeechGrammar element)) => Collections.every(this, f);
15591 15689
15592 bool some(bool f(SpeechGrammar element)) => _Collections.some(this, f); 15690 bool some(bool f(SpeechGrammar element)) => Collections.some(this, f);
15593 15691
15594 bool get isEmpty => this.length == 0; 15692 bool get isEmpty => this.length == 0;
15595 15693
15596 // From List<SpeechGrammar>: 15694 // From List<SpeechGrammar>:
15597 15695
15598 void sort([Comparator<SpeechGrammar> compare = Comparable.compare]) { 15696 void sort([Comparator<SpeechGrammar> compare = Comparable.compare]) {
15599 throw new UnsupportedError("Cannot sort immutable List."); 15697 throw new UnsupportedError("Cannot sort immutable List.");
15600 } 15698 }
15601 15699
15602 int indexOf(SpeechGrammar element, [int start = 0]) => 15700 int indexOf(SpeechGrammar element, [int start = 0]) =>
(...skipping 989 matching lines...) Expand 10 before | Expand all | Expand 10 after
16592 } 16690 }
16593 16691
16594 void addLast(TextTrackCue value) { 16692 void addLast(TextTrackCue value) {
16595 throw new UnsupportedError("Cannot add to immutable List."); 16693 throw new UnsupportedError("Cannot add to immutable List.");
16596 } 16694 }
16597 16695
16598 void addAll(Collection<TextTrackCue> collection) { 16696 void addAll(Collection<TextTrackCue> collection) {
16599 throw new UnsupportedError("Cannot add to immutable List."); 16697 throw new UnsupportedError("Cannot add to immutable List.");
16600 } 16698 }
16601 16699
16602 bool contains(TextTrackCue element) => _Collections.contains(this, element); 16700 bool contains(TextTrackCue element) => Collections.contains(this, element);
16603 16701
16604 void forEach(void f(TextTrackCue element)) => _Collections.forEach(this, f); 16702 void forEach(void f(TextTrackCue element)) => Collections.forEach(this, f);
16605 16703
16606 Collection map(f(TextTrackCue element)) => _Collections.map(this, [], f); 16704 Collection map(f(TextTrackCue element)) => Collections.map(this, [], f);
16607 16705
16608 Collection<TextTrackCue> filter(bool f(TextTrackCue element)) => 16706 Collection<TextTrackCue> filter(bool f(TextTrackCue element)) =>
16609 _Collections.filter(this, <TextTrackCue>[], f); 16707 Collections.filter(this, <TextTrackCue>[], f);
16610 16708
16611 bool every(bool f(TextTrackCue element)) => _Collections.every(this, f); 16709 bool every(bool f(TextTrackCue element)) => Collections.every(this, f);
16612 16710
16613 bool some(bool f(TextTrackCue element)) => _Collections.some(this, f); 16711 bool some(bool f(TextTrackCue element)) => Collections.some(this, f);
16614 16712
16615 bool get isEmpty => this.length == 0; 16713 bool get isEmpty => this.length == 0;
16616 16714
16617 // From List<TextTrackCue>: 16715 // From List<TextTrackCue>:
16618 16716
16619 void sort([Comparator<TextTrackCue> compare = Comparable.compare]) { 16717 void sort([Comparator<TextTrackCue> compare = Comparable.compare]) {
16620 throw new UnsupportedError("Cannot sort immutable List."); 16718 throw new UnsupportedError("Cannot sort immutable List.");
16621 } 16719 }
16622 16720
16623 int indexOf(TextTrackCue element, [int start = 0]) => 16721 int indexOf(TextTrackCue element, [int start = 0]) =>
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
16698 } 16796 }
16699 16797
16700 void addLast(TextTrack value) { 16798 void addLast(TextTrack value) {
16701 throw new UnsupportedError("Cannot add to immutable List."); 16799 throw new UnsupportedError("Cannot add to immutable List.");
16702 } 16800 }
16703 16801
16704 void addAll(Collection<TextTrack> collection) { 16802 void addAll(Collection<TextTrack> collection) {
16705 throw new UnsupportedError("Cannot add to immutable List."); 16803 throw new UnsupportedError("Cannot add to immutable List.");
16706 } 16804 }
16707 16805
16708 bool contains(TextTrack element) => _Collections.contains(this, element); 16806 bool contains(TextTrack element) => Collections.contains(this, element);
16709 16807
16710 void forEach(void f(TextTrack element)) => _Collections.forEach(this, f); 16808 void forEach(void f(TextTrack element)) => Collections.forEach(this, f);
16711 16809
16712 Collection map(f(TextTrack element)) => _Collections.map(this, [], f); 16810 Collection map(f(TextTrack element)) => Collections.map(this, [], f);
16713 16811
16714 Collection<TextTrack> filter(bool f(TextTrack element)) => 16812 Collection<TextTrack> filter(bool f(TextTrack element)) =>
16715 _Collections.filter(this, <TextTrack>[], f); 16813 Collections.filter(this, <TextTrack>[], f);
16716 16814
16717 bool every(bool f(TextTrack element)) => _Collections.every(this, f); 16815 bool every(bool f(TextTrack element)) => Collections.every(this, f);
16718 16816
16719 bool some(bool f(TextTrack element)) => _Collections.some(this, f); 16817 bool some(bool f(TextTrack element)) => Collections.some(this, f);
16720 16818
16721 bool get isEmpty => this.length == 0; 16819 bool get isEmpty => this.length == 0;
16722 16820
16723 // From List<TextTrack>: 16821 // From List<TextTrack>:
16724 16822
16725 void sort([Comparator<TextTrack> compare = Comparable.compare]) { 16823 void sort([Comparator<TextTrack> compare = Comparable.compare]) {
16726 throw new UnsupportedError("Cannot sort immutable List."); 16824 throw new UnsupportedError("Cannot sort immutable List.");
16727 } 16825 }
16728 16826
16729 int indexOf(TextTrack element, [int start = 0]) => 16827 int indexOf(TextTrack element, [int start = 0]) =>
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
16924 } 17022 }
16925 17023
16926 void addLast(Touch value) { 17024 void addLast(Touch value) {
16927 throw new UnsupportedError("Cannot add to immutable List."); 17025 throw new UnsupportedError("Cannot add to immutable List.");
16928 } 17026 }
16929 17027
16930 void addAll(Collection<Touch> collection) { 17028 void addAll(Collection<Touch> collection) {
16931 throw new UnsupportedError("Cannot add to immutable List."); 17029 throw new UnsupportedError("Cannot add to immutable List.");
16932 } 17030 }
16933 17031
16934 bool contains(Touch element) => _Collections.contains(this, element); 17032 bool contains(Touch element) => Collections.contains(this, element);
16935 17033
16936 void forEach(void f(Touch element)) => _Collections.forEach(this, f); 17034 void forEach(void f(Touch element)) => Collections.forEach(this, f);
16937 17035
16938 Collection map(f(Touch element)) => _Collections.map(this, [], f); 17036 Collection map(f(Touch element)) => Collections.map(this, [], f);
16939 17037
16940 Collection<Touch> filter(bool f(Touch element)) => 17038 Collection<Touch> filter(bool f(Touch element)) =>
16941 _Collections.filter(this, <Touch>[], f); 17039 Collections.filter(this, <Touch>[], f);
16942 17040
16943 bool every(bool f(Touch element)) => _Collections.every(this, f); 17041 bool every(bool f(Touch element)) => Collections.every(this, f);
16944 17042
16945 bool some(bool f(Touch element)) => _Collections.some(this, f); 17043 bool some(bool f(Touch element)) => Collections.some(this, f);
16946 17044
16947 bool get isEmpty => this.length == 0; 17045 bool get isEmpty => this.length == 0;
16948 17046
16949 // From List<Touch>: 17047 // From List<Touch>:
16950 17048
16951 void sort([Comparator<Touch> compare = Comparable.compare]) { 17049 void sort([Comparator<Touch> compare = Comparable.compare]) {
16952 throw new UnsupportedError("Cannot sort immutable List."); 17050 throw new UnsupportedError("Cannot sort immutable List.");
16953 } 17051 }
16954 17052
16955 int indexOf(Touch element, [int start = 0]) => 17053 int indexOf(Touch element, [int start = 0]) =>
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
17214 } 17312 }
17215 17313
17216 void addLast(int value) { 17314 void addLast(int value) {
17217 throw new UnsupportedError("Cannot add to immutable List."); 17315 throw new UnsupportedError("Cannot add to immutable List.");
17218 } 17316 }
17219 17317
17220 void addAll(Collection<int> collection) { 17318 void addAll(Collection<int> collection) {
17221 throw new UnsupportedError("Cannot add to immutable List."); 17319 throw new UnsupportedError("Cannot add to immutable List.");
17222 } 17320 }
17223 17321
17224 bool contains(int element) => _Collections.contains(this, element); 17322 bool contains(int element) => Collections.contains(this, element);
17225 17323
17226 void forEach(void f(int element)) => _Collections.forEach(this, f); 17324 void forEach(void f(int element)) => Collections.forEach(this, f);
17227 17325
17228 Collection map(f(int element)) => _Collections.map(this, [], f); 17326 Collection map(f(int element)) => Collections.map(this, [], f);
17229 17327
17230 Collection<int> filter(bool f(int element)) => 17328 Collection<int> filter(bool f(int element)) =>
17231 _Collections.filter(this, <int>[], f); 17329 Collections.filter(this, <int>[], f);
17232 17330
17233 bool every(bool f(int element)) => _Collections.every(this, f); 17331 bool every(bool f(int element)) => Collections.every(this, f);
17234 17332
17235 bool some(bool f(int element)) => _Collections.some(this, f); 17333 bool some(bool f(int element)) => Collections.some(this, f);
17236 17334
17237 bool get isEmpty => this.length == 0; 17335 bool get isEmpty => this.length == 0;
17238 17336
17239 // From List<int>: 17337 // From List<int>:
17240 17338
17241 void sort([Comparator<int> compare = Comparable.compare]) { 17339 void sort([Comparator<int> compare = Comparable.compare]) {
17242 throw new UnsupportedError("Cannot sort immutable List."); 17340 throw new UnsupportedError("Cannot sort immutable List.");
17243 } 17341 }
17244 17342
17245 int indexOf(int element, [int start = 0]) => 17343 int indexOf(int element, [int start = 0]) =>
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
17324 } 17422 }
17325 17423
17326 void addLast(int value) { 17424 void addLast(int value) {
17327 throw new UnsupportedError("Cannot add to immutable List."); 17425 throw new UnsupportedError("Cannot add to immutable List.");
17328 } 17426 }
17329 17427
17330 void addAll(Collection<int> collection) { 17428 void addAll(Collection<int> collection) {
17331 throw new UnsupportedError("Cannot add to immutable List."); 17429 throw new UnsupportedError("Cannot add to immutable List.");
17332 } 17430 }
17333 17431
17334 bool contains(int element) => _Collections.contains(this, element); 17432 bool contains(int element) => Collections.contains(this, element);
17335 17433
17336 void forEach(void f(int element)) => _Collections.forEach(this, f); 17434 void forEach(void f(int element)) => Collections.forEach(this, f);
17337 17435
17338 Collection map(f(int element)) => _Collections.map(this, [], f); 17436 Collection map(f(int element)) => Collections.map(this, [], f);
17339 17437
17340 Collection<int> filter(bool f(int element)) => 17438 Collection<int> filter(bool f(int element)) =>
17341 _Collections.filter(this, <int>[], f); 17439 Collections.filter(this, <int>[], f);
17342 17440
17343 bool every(bool f(int element)) => _Collections.every(this, f); 17441 bool every(bool f(int element)) => Collections.every(this, f);
17344 17442
17345 bool some(bool f(int element)) => _Collections.some(this, f); 17443 bool some(bool f(int element)) => Collections.some(this, f);
17346 17444
17347 bool get isEmpty => this.length == 0; 17445 bool get isEmpty => this.length == 0;
17348 17446
17349 // From List<int>: 17447 // From List<int>:
17350 17448
17351 void sort([Comparator<int> compare = Comparable.compare]) { 17449 void sort([Comparator<int> compare = Comparable.compare]) {
17352 throw new UnsupportedError("Cannot sort immutable List."); 17450 throw new UnsupportedError("Cannot sort immutable List.");
17353 } 17451 }
17354 17452
17355 int indexOf(int element, [int start = 0]) => 17453 int indexOf(int element, [int start = 0]) =>
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
17434 } 17532 }
17435 17533
17436 void addLast(int value) { 17534 void addLast(int value) {
17437 throw new UnsupportedError("Cannot add to immutable List."); 17535 throw new UnsupportedError("Cannot add to immutable List.");
17438 } 17536 }
17439 17537
17440 void addAll(Collection<int> collection) { 17538 void addAll(Collection<int> collection) {
17441 throw new UnsupportedError("Cannot add to immutable List."); 17539 throw new UnsupportedError("Cannot add to immutable List.");
17442 } 17540 }
17443 17541
17444 bool contains(int element) => _Collections.contains(this, element); 17542 bool contains(int element) => Collections.contains(this, element);
17445 17543
17446 void forEach(void f(int element)) => _Collections.forEach(this, f); 17544 void forEach(void f(int element)) => Collections.forEach(this, f);
17447 17545
17448 Collection map(f(int element)) => _Collections.map(this, [], f); 17546 Collection map(f(int element)) => Collections.map(this, [], f);
17449 17547
17450 Collection<int> filter(bool f(int element)) => 17548 Collection<int> filter(bool f(int element)) =>
17451 _Collections.filter(this, <int>[], f); 17549 Collections.filter(this, <int>[], f);
17452 17550
17453 bool every(bool f(int element)) => _Collections.every(this, f); 17551 bool every(bool f(int element)) => Collections.every(this, f);
17454 17552
17455 bool some(bool f(int element)) => _Collections.some(this, f); 17553 bool some(bool f(int element)) => Collections.some(this, f);
17456 17554
17457 bool get isEmpty => this.length == 0; 17555 bool get isEmpty => this.length == 0;
17458 17556
17459 // From List<int>: 17557 // From List<int>:
17460 17558
17461 void sort([Comparator<int> compare = Comparable.compare]) { 17559 void sort([Comparator<int> compare = Comparable.compare]) {
17462 throw new UnsupportedError("Cannot sort immutable List."); 17560 throw new UnsupportedError("Cannot sort immutable List.");
17463 } 17561 }
17464 17562
17465 int indexOf(int element, [int start = 0]) => 17563 int indexOf(int element, [int start = 0]) =>
(...skipping 1719 matching lines...) Expand 10 before | Expand all | Expand 10 after
19185 19283
19186 factory Worker(String scriptUrl) => _WorkerFactoryProvider.createWorker(script Url); 19284 factory Worker(String scriptUrl) => _WorkerFactoryProvider.createWorker(script Url);
19187 19285
19188 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev entTarget.dispatchEvent; @docsEditable true 19286 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev entTarget.dispatchEvent; @docsEditable true
19189 WorkerEvents get on => 19287 WorkerEvents get on =>
19190 new WorkerEvents(this); 19288 new WorkerEvents(this);
19191 19289
19192 /// @domName Worker.postMessage; @docsEditable true 19290 /// @domName Worker.postMessage; @docsEditable true
19193 void postMessage(/*SerializedScriptValue*/ message, [List messagePorts]) { 19291 void postMessage(/*SerializedScriptValue*/ message, [List messagePorts]) {
19194 if (?messagePorts) { 19292 if (?messagePorts) {
19195 var message_1 = _convertDartToNative_SerializedScriptValue(message); 19293 var message_1 = convertDartToNative_SerializedScriptValue(message);
19196 _postMessage_1(message_1, messagePorts); 19294 _postMessage_1(message_1, messagePorts);
19197 return; 19295 return;
19198 } 19296 }
19199 var message_2 = _convertDartToNative_SerializedScriptValue(message); 19297 var message_2 = convertDartToNative_SerializedScriptValue(message);
19200 _postMessage_2(message_2); 19298 _postMessage_2(message_2);
19201 return; 19299 return;
19202 } 19300 }
19203 void _postMessage_1(message, List messagePorts) native "postMessage"; 19301 void _postMessage_1(message, List messagePorts) native "postMessage";
19204 void _postMessage_2(message) native "postMessage"; 19302 void _postMessage_2(message) native "postMessage";
19205 19303
19206 /// @domName Worker.terminate; @docsEditable true 19304 /// @domName Worker.terminate; @docsEditable true
19207 void terminate() native; 19305 void terminate() native;
19208 } 19306 }
19209 19307
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
19600 } 19698 }
19601 19699
19602 void addLast(CSSRule value) { 19700 void addLast(CSSRule value) {
19603 throw new UnsupportedError("Cannot add to immutable List."); 19701 throw new UnsupportedError("Cannot add to immutable List.");
19604 } 19702 }
19605 19703
19606 void addAll(Collection<CSSRule> collection) { 19704 void addAll(Collection<CSSRule> collection) {
19607 throw new UnsupportedError("Cannot add to immutable List."); 19705 throw new UnsupportedError("Cannot add to immutable List.");
19608 } 19706 }
19609 19707
19610 bool contains(CSSRule element) => _Collections.contains(this, element); 19708 bool contains(CSSRule element) => Collections.contains(this, element);
19611 19709
19612 void forEach(void f(CSSRule element)) => _Collections.forEach(this, f); 19710 void forEach(void f(CSSRule element)) => Collections.forEach(this, f);
19613 19711
19614 Collection map(f(CSSRule element)) => _Collections.map(this, [], f); 19712 Collection map(f(CSSRule element)) => Collections.map(this, [], f);
19615 19713
19616 Collection<CSSRule> filter(bool f(CSSRule element)) => 19714 Collection<CSSRule> filter(bool f(CSSRule element)) =>
19617 _Collections.filter(this, <CSSRule>[], f); 19715 Collections.filter(this, <CSSRule>[], f);
19618 19716
19619 bool every(bool f(CSSRule element)) => _Collections.every(this, f); 19717 bool every(bool f(CSSRule element)) => Collections.every(this, f);
19620 19718
19621 bool some(bool f(CSSRule element)) => _Collections.some(this, f); 19719 bool some(bool f(CSSRule element)) => Collections.some(this, f);
19622 19720
19623 bool get isEmpty => this.length == 0; 19721 bool get isEmpty => this.length == 0;
19624 19722
19625 // From List<CSSRule>: 19723 // From List<CSSRule>:
19626 19724
19627 void sort([Comparator<CSSRule> compare = Comparable.compare]) { 19725 void sort([Comparator<CSSRule> compare = Comparable.compare]) {
19628 throw new UnsupportedError("Cannot sort immutable List."); 19726 throw new UnsupportedError("Cannot sort immutable List.");
19629 } 19727 }
19630 19728
19631 int indexOf(CSSRule element, [int start = 0]) => 19729 int indexOf(CSSRule element, [int start = 0]) =>
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
19699 } 19797 }
19700 19798
19701 void addLast(CSSValue value) { 19799 void addLast(CSSValue value) {
19702 throw new UnsupportedError("Cannot add to immutable List."); 19800 throw new UnsupportedError("Cannot add to immutable List.");
19703 } 19801 }
19704 19802
19705 void addAll(Collection<CSSValue> collection) { 19803 void addAll(Collection<CSSValue> collection) {
19706 throw new UnsupportedError("Cannot add to immutable List."); 19804 throw new UnsupportedError("Cannot add to immutable List.");
19707 } 19805 }
19708 19806
19709 bool contains(CSSValue element) => _Collections.contains(this, element); 19807 bool contains(CSSValue element) => Collections.contains(this, element);
19710 19808
19711 void forEach(void f(CSSValue element)) => _Collections.forEach(this, f); 19809 void forEach(void f(CSSValue element)) => Collections.forEach(this, f);
19712 19810
19713 Collection map(f(CSSValue element)) => _Collections.map(this, [], f); 19811 Collection map(f(CSSValue element)) => Collections.map(this, [], f);
19714 19812
19715 Collection<CSSValue> filter(bool f(CSSValue element)) => 19813 Collection<CSSValue> filter(bool f(CSSValue element)) =>
19716 _Collections.filter(this, <CSSValue>[], f); 19814 Collections.filter(this, <CSSValue>[], f);
19717 19815
19718 bool every(bool f(CSSValue element)) => _Collections.every(this, f); 19816 bool every(bool f(CSSValue element)) => Collections.every(this, f);
19719 19817
19720 bool some(bool f(CSSValue element)) => _Collections.some(this, f); 19818 bool some(bool f(CSSValue element)) => Collections.some(this, f);
19721 19819
19722 bool get isEmpty => this.length == 0; 19820 bool get isEmpty => this.length == 0;
19723 19821
19724 // From List<CSSValue>: 19822 // From List<CSSValue>:
19725 19823
19726 void sort([Comparator<CSSValue> compare = Comparable.compare]) { 19824 void sort([Comparator<CSSValue> compare = Comparable.compare]) {
19727 throw new UnsupportedError("Cannot sort immutable List."); 19825 throw new UnsupportedError("Cannot sort immutable List.");
19728 } 19826 }
19729 19827
19730 int indexOf(CSSValue element, [int start = 0]) => 19828 int indexOf(CSSValue element, [int start = 0]) =>
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
19798 } 19896 }
19799 19897
19800 void addLast(ClientRect value) { 19898 void addLast(ClientRect value) {
19801 throw new UnsupportedError("Cannot add to immutable List."); 19899 throw new UnsupportedError("Cannot add to immutable List.");
19802 } 19900 }
19803 19901
19804 void addAll(Collection<ClientRect> collection) { 19902 void addAll(Collection<ClientRect> collection) {
19805 throw new UnsupportedError("Cannot add to immutable List."); 19903 throw new UnsupportedError("Cannot add to immutable List.");
19806 } 19904 }
19807 19905
19808 bool contains(ClientRect element) => _Collections.contains(this, element); 19906 bool contains(ClientRect element) => Collections.contains(this, element);
19809 19907
19810 void forEach(void f(ClientRect element)) => _Collections.forEach(this, f); 19908 void forEach(void f(ClientRect element)) => Collections.forEach(this, f);
19811 19909
19812 Collection map(f(ClientRect element)) => _Collections.map(this, [], f); 19910 Collection map(f(ClientRect element)) => Collections.map(this, [], f);
19813 19911
19814 Collection<ClientRect> filter(bool f(ClientRect element)) => 19912 Collection<ClientRect> filter(bool f(ClientRect element)) =>
19815 _Collections.filter(this, <ClientRect>[], f); 19913 Collections.filter(this, <ClientRect>[], f);
19816 19914
19817 bool every(bool f(ClientRect element)) => _Collections.every(this, f); 19915 bool every(bool f(ClientRect element)) => Collections.every(this, f);
19818 19916
19819 bool some(bool f(ClientRect element)) => _Collections.some(this, f); 19917 bool some(bool f(ClientRect element)) => Collections.some(this, f);
19820 19918
19821 bool get isEmpty => this.length == 0; 19919 bool get isEmpty => this.length == 0;
19822 19920
19823 // From List<ClientRect>: 19921 // From List<ClientRect>:
19824 19922
19825 void sort([Comparator<ClientRect> compare = Comparable.compare]) { 19923 void sort([Comparator<ClientRect> compare = Comparable.compare]) {
19826 throw new UnsupportedError("Cannot sort immutable List."); 19924 throw new UnsupportedError("Cannot sort immutable List.");
19827 } 19925 }
19828 19926
19829 int indexOf(ClientRect element, [int start = 0]) => 19927 int indexOf(ClientRect element, [int start = 0]) =>
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
19908 void addLast(String value) { 20006 void addLast(String value) {
19909 throw new UnsupportedError("Cannot add to immutable List."); 20007 throw new UnsupportedError("Cannot add to immutable List.");
19910 } 20008 }
19911 20009
19912 void addAll(Collection<String> collection) { 20010 void addAll(Collection<String> collection) {
19913 throw new UnsupportedError("Cannot add to immutable List."); 20011 throw new UnsupportedError("Cannot add to immutable List.");
19914 } 20012 }
19915 20013
19916 // contains() defined by IDL. 20014 // contains() defined by IDL.
19917 20015
19918 void forEach(void f(String element)) => _Collections.forEach(this, f); 20016 void forEach(void f(String element)) => Collections.forEach(this, f);
19919 20017
19920 Collection map(f(String element)) => _Collections.map(this, [], f); 20018 Collection map(f(String element)) => Collections.map(this, [], f);
19921 20019
19922 Collection<String> filter(bool f(String element)) => 20020 Collection<String> filter(bool f(String element)) =>
19923 _Collections.filter(this, <String>[], f); 20021 Collections.filter(this, <String>[], f);
19924 20022
19925 bool every(bool f(String element)) => _Collections.every(this, f); 20023 bool every(bool f(String element)) => Collections.every(this, f);
19926 20024
19927 bool some(bool f(String element)) => _Collections.some(this, f); 20025 bool some(bool f(String element)) => Collections.some(this, f);
19928 20026
19929 bool get isEmpty => this.length == 0; 20027 bool get isEmpty => this.length == 0;
19930 20028
19931 // From List<String>: 20029 // From List<String>:
19932 20030
19933 void sort([Comparator<String> compare = Comparable.compare]) { 20031 void sort([Comparator<String> compare = Comparable.compare]) {
19934 throw new UnsupportedError("Cannot sort immutable List."); 20032 throw new UnsupportedError("Cannot sort immutable List.");
19935 } 20033 }
19936 20034
19937 int indexOf(String element, [int start = 0]) => 20035 int indexOf(String element, [int start = 0]) =>
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
20025 } 20123 }
20026 20124
20027 void addLast(Entry value) { 20125 void addLast(Entry value) {
20028 throw new UnsupportedError("Cannot add to immutable List."); 20126 throw new UnsupportedError("Cannot add to immutable List.");
20029 } 20127 }
20030 20128
20031 void addAll(Collection<Entry> collection) { 20129 void addAll(Collection<Entry> collection) {
20032 throw new UnsupportedError("Cannot add to immutable List."); 20130 throw new UnsupportedError("Cannot add to immutable List.");
20033 } 20131 }
20034 20132
20035 bool contains(Entry element) => _Collections.contains(this, element); 20133 bool contains(Entry element) => Collections.contains(this, element);
20036 20134
20037 void forEach(void f(Entry element)) => _Collections.forEach(this, f); 20135 void forEach(void f(Entry element)) => Collections.forEach(this, f);
20038 20136
20039 Collection map(f(Entry element)) => _Collections.map(this, [], f); 20137 Collection map(f(Entry element)) => Collections.map(this, [], f);
20040 20138
20041 Collection<Entry> filter(bool f(Entry element)) => 20139 Collection<Entry> filter(bool f(Entry element)) =>
20042 _Collections.filter(this, <Entry>[], f); 20140 Collections.filter(this, <Entry>[], f);
20043 20141
20044 bool every(bool f(Entry element)) => _Collections.every(this, f); 20142 bool every(bool f(Entry element)) => Collections.every(this, f);
20045 20143
20046 bool some(bool f(Entry element)) => _Collections.some(this, f); 20144 bool some(bool f(Entry element)) => Collections.some(this, f);
20047 20145
20048 bool get isEmpty => this.length == 0; 20146 bool get isEmpty => this.length == 0;
20049 20147
20050 // From List<Entry>: 20148 // From List<Entry>:
20051 20149
20052 void sort([Comparator<Entry> compare = Comparable.compare]) { 20150 void sort([Comparator<Entry> compare = Comparable.compare]) {
20053 throw new UnsupportedError("Cannot sort immutable List."); 20151 throw new UnsupportedError("Cannot sort immutable List.");
20054 } 20152 }
20055 20153
20056 int indexOf(Entry element, [int start = 0]) => 20154 int indexOf(Entry element, [int start = 0]) =>
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
20124 } 20222 }
20125 20223
20126 void addLast(EntrySync value) { 20224 void addLast(EntrySync value) {
20127 throw new UnsupportedError("Cannot add to immutable List."); 20225 throw new UnsupportedError("Cannot add to immutable List.");
20128 } 20226 }
20129 20227
20130 void addAll(Collection<EntrySync> collection) { 20228 void addAll(Collection<EntrySync> collection) {
20131 throw new UnsupportedError("Cannot add to immutable List."); 20229 throw new UnsupportedError("Cannot add to immutable List.");
20132 } 20230 }
20133 20231
20134 bool contains(EntrySync element) => _Collections.contains(this, element); 20232 bool contains(EntrySync element) => Collections.contains(this, element);
20135 20233
20136 void forEach(void f(EntrySync element)) => _Collections.forEach(this, f); 20234 void forEach(void f(EntrySync element)) => Collections.forEach(this, f);
20137 20235
20138 Collection map(f(EntrySync element)) => _Collections.map(this, [], f); 20236 Collection map(f(EntrySync element)) => Collections.map(this, [], f);
20139 20237
20140 Collection<EntrySync> filter(bool f(EntrySync element)) => 20238 Collection<EntrySync> filter(bool f(EntrySync element)) =>
20141 _Collections.filter(this, <EntrySync>[], f); 20239 Collections.filter(this, <EntrySync>[], f);
20142 20240
20143 bool every(bool f(EntrySync element)) => _Collections.every(this, f); 20241 bool every(bool f(EntrySync element)) => Collections.every(this, f);
20144 20242
20145 bool some(bool f(EntrySync element)) => _Collections.some(this, f); 20243 bool some(bool f(EntrySync element)) => Collections.some(this, f);
20146 20244
20147 bool get isEmpty => this.length == 0; 20245 bool get isEmpty => this.length == 0;
20148 20246
20149 // From List<EntrySync>: 20247 // From List<EntrySync>:
20150 20248
20151 void sort([Comparator<EntrySync> compare = Comparable.compare]) { 20249 void sort([Comparator<EntrySync> compare = Comparable.compare]) {
20152 throw new UnsupportedError("Cannot sort immutable List."); 20250 throw new UnsupportedError("Cannot sort immutable List.");
20153 } 20251 }
20154 20252
20155 int indexOf(EntrySync element, [int start = 0]) => 20253 int indexOf(EntrySync element, [int start = 0]) =>
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
20195 20293
20196 class _EventSourceFactoryProvider { 20294 class _EventSourceFactoryProvider {
20197 static EventSource createEventSource(String scriptUrl) => 20295 static EventSource createEventSource(String scriptUrl) =>
20198 JS('EventSource', 'new EventSource(#)', scriptUrl); 20296 JS('EventSource', 'new EventSource(#)', scriptUrl);
20199 } 20297 }
20200 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20298 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20201 // for details. All rights reserved. Use of this source code is governed by a 20299 // for details. All rights reserved. Use of this source code is governed by a
20202 // BSD-style license that can be found in the LICENSE file. 20300 // BSD-style license that can be found in the LICENSE file.
20203 20301
20204 20302
20205 /// @domName FileList; @docsEditable true
20206 class _FileList implements JavaScriptIndexingBehavior, List<File> native "*FileL ist" {
20207
20208 /// @domName FileList.length; @docsEditable true
20209 final int length;
20210
20211 File operator[](int index) => JS("File", "#[#]", this, index);
20212
20213 void operator[]=(int index, File value) {
20214 throw new UnsupportedError("Cannot assign element of immutable List.");
20215 }
20216 // -- start List<File> mixins.
20217 // File is the element type.
20218
20219 // From Iterable<File>:
20220
20221 Iterator<File> iterator() {
20222 // Note: NodeLists are not fixed size. And most probably length shouldn't
20223 // be cached in both iterator _and_ forEach method. For now caching it
20224 // for consistency.
20225 return new FixedSizeListIterator<File>(this);
20226 }
20227
20228 // From Collection<File>:
20229
20230 void add(File value) {
20231 throw new UnsupportedError("Cannot add to immutable List.");
20232 }
20233
20234 void addLast(File value) {
20235 throw new UnsupportedError("Cannot add to immutable List.");
20236 }
20237
20238 void addAll(Collection<File> collection) {
20239 throw new UnsupportedError("Cannot add to immutable List.");
20240 }
20241
20242 bool contains(File element) => _Collections.contains(this, element);
20243
20244 void forEach(void f(File element)) => _Collections.forEach(this, f);
20245
20246 Collection map(f(File element)) => _Collections.map(this, [], f);
20247
20248 Collection<File> filter(bool f(File element)) =>
20249 _Collections.filter(this, <File>[], f);
20250
20251 bool every(bool f(File element)) => _Collections.every(this, f);
20252
20253 bool some(bool f(File element)) => _Collections.some(this, f);
20254
20255 bool get isEmpty => this.length == 0;
20256
20257 // From List<File>:
20258
20259 void sort([Comparator<File> compare = Comparable.compare]) {
20260 throw new UnsupportedError("Cannot sort immutable List.");
20261 }
20262
20263 int indexOf(File element, [int start = 0]) =>
20264 _Lists.indexOf(this, element, start, this.length);
20265
20266 int lastIndexOf(File element, [int start]) {
20267 if (start == null) start = length - 1;
20268 return _Lists.lastIndexOf(this, element, start);
20269 }
20270
20271 File get first => this[0];
20272
20273 File get last => this[length - 1];
20274
20275 File removeLast() {
20276 throw new UnsupportedError("Cannot removeLast on immutable List.");
20277 }
20278
20279 void setRange(int start, int rangeLength, List<File> from, [int startFrom]) {
20280 throw new UnsupportedError("Cannot setRange on immutable List.");
20281 }
20282
20283 void removeRange(int start, int rangeLength) {
20284 throw new UnsupportedError("Cannot removeRange on immutable List.");
20285 }
20286
20287 void insertRange(int start, int rangeLength, [File initialValue]) {
20288 throw new UnsupportedError("Cannot insertRange on immutable List.");
20289 }
20290
20291 List<File> getRange(int start, int rangeLength) =>
20292 _Lists.getRange(this, start, rangeLength, <File>[]);
20293
20294 // -- end List<File> mixins.
20295
20296 /// @domName FileList.item; @docsEditable true
20297 File item(int index) native;
20298 }
20299 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20300 // for details. All rights reserved. Use of this source code is governed by a
20301 // BSD-style license that can be found in the LICENSE file.
20302
20303
20304 class _FileReaderFactoryProvider { 20303 class _FileReaderFactoryProvider {
20305 static FileReader createFileReader() => 20304 static FileReader createFileReader() =>
20306 JS('FileReader', 'new FileReader()' ); 20305 JS('FileReader', 'new FileReader()' );
20307 } 20306 }
20308 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20307 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20309 // for details. All rights reserved. Use of this source code is governed by a 20308 // for details. All rights reserved. Use of this source code is governed by a
20310 // BSD-style license that can be found in the LICENSE file. 20309 // BSD-style license that can be found in the LICENSE file.
20311 20310
20312 20311
20313 class _FileReaderSyncFactoryProvider { 20312 class _FileReaderSyncFactoryProvider {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
20360 } 20359 }
20361 20360
20362 void addLast(Gamepad value) { 20361 void addLast(Gamepad value) {
20363 throw new UnsupportedError("Cannot add to immutable List."); 20362 throw new UnsupportedError("Cannot add to immutable List.");
20364 } 20363 }
20365 20364
20366 void addAll(Collection<Gamepad> collection) { 20365 void addAll(Collection<Gamepad> collection) {
20367 throw new UnsupportedError("Cannot add to immutable List."); 20366 throw new UnsupportedError("Cannot add to immutable List.");
20368 } 20367 }
20369 20368
20370 bool contains(Gamepad element) => _Collections.contains(this, element); 20369 bool contains(Gamepad element) => Collections.contains(this, element);
20371 20370
20372 void forEach(void f(Gamepad element)) => _Collections.forEach(this, f); 20371 void forEach(void f(Gamepad element)) => Collections.forEach(this, f);
20373 20372
20374 Collection map(f(Gamepad element)) => _Collections.map(this, [], f); 20373 Collection map(f(Gamepad element)) => Collections.map(this, [], f);
20375 20374
20376 Collection<Gamepad> filter(bool f(Gamepad element)) => 20375 Collection<Gamepad> filter(bool f(Gamepad element)) =>
20377 _Collections.filter(this, <Gamepad>[], f); 20376 Collections.filter(this, <Gamepad>[], f);
20378 20377
20379 bool every(bool f(Gamepad element)) => _Collections.every(this, f); 20378 bool every(bool f(Gamepad element)) => Collections.every(this, f);
20380 20379
20381 bool some(bool f(Gamepad element)) => _Collections.some(this, f); 20380 bool some(bool f(Gamepad element)) => Collections.some(this, f);
20382 20381
20383 bool get isEmpty => this.length == 0; 20382 bool get isEmpty => this.length == 0;
20384 20383
20385 // From List<Gamepad>: 20384 // From List<Gamepad>:
20386 20385
20387 void sort([Comparator<Gamepad> compare = Comparable.compare]) { 20386 void sort([Comparator<Gamepad> compare = Comparable.compare]) {
20388 throw new UnsupportedError("Cannot sort immutable List."); 20387 throw new UnsupportedError("Cannot sort immutable List.");
20389 } 20388 }
20390 20389
20391 int indexOf(Gamepad element, [int start = 0]) => 20390 int indexOf(Gamepad element, [int start = 0]) =>
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
20512 } 20511 }
20513 20512
20514 void addLast(MediaStream value) { 20513 void addLast(MediaStream value) {
20515 throw new UnsupportedError("Cannot add to immutable List."); 20514 throw new UnsupportedError("Cannot add to immutable List.");
20516 } 20515 }
20517 20516
20518 void addAll(Collection<MediaStream> collection) { 20517 void addAll(Collection<MediaStream> collection) {
20519 throw new UnsupportedError("Cannot add to immutable List."); 20518 throw new UnsupportedError("Cannot add to immutable List.");
20520 } 20519 }
20521 20520
20522 bool contains(MediaStream element) => _Collections.contains(this, element); 20521 bool contains(MediaStream element) => Collections.contains(this, element);
20523 20522
20524 void forEach(void f(MediaStream element)) => _Collections.forEach(this, f); 20523 void forEach(void f(MediaStream element)) => Collections.forEach(this, f);
20525 20524
20526 Collection map(f(MediaStream element)) => _Collections.map(this, [], f); 20525 Collection map(f(MediaStream element)) => Collections.map(this, [], f);
20527 20526
20528 Collection<MediaStream> filter(bool f(MediaStream element)) => 20527 Collection<MediaStream> filter(bool f(MediaStream element)) =>
20529 _Collections.filter(this, <MediaStream>[], f); 20528 Collections.filter(this, <MediaStream>[], f);
20530 20529
20531 bool every(bool f(MediaStream element)) => _Collections.every(this, f); 20530 bool every(bool f(MediaStream element)) => Collections.every(this, f);
20532 20531
20533 bool some(bool f(MediaStream element)) => _Collections.some(this, f); 20532 bool some(bool f(MediaStream element)) => Collections.some(this, f);
20534 20533
20535 bool get isEmpty => this.length == 0; 20534 bool get isEmpty => this.length == 0;
20536 20535
20537 // From List<MediaStream>: 20536 // From List<MediaStream>:
20538 20537
20539 void sort([Comparator<MediaStream> compare = Comparable.compare]) { 20538 void sort([Comparator<MediaStream> compare = Comparable.compare]) {
20540 throw new UnsupportedError("Cannot sort immutable List."); 20539 throw new UnsupportedError("Cannot sort immutable List.");
20541 } 20540 }
20542 20541
20543 int indexOf(MediaStream element, [int start = 0]) => 20542 int indexOf(MediaStream element, [int start = 0]) =>
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
20646 } 20645 }
20647 20646
20648 void addLast(Node value) { 20647 void addLast(Node value) {
20649 throw new UnsupportedError("Cannot add to immutable List."); 20648 throw new UnsupportedError("Cannot add to immutable List.");
20650 } 20649 }
20651 20650
20652 void addAll(Collection<Node> collection) { 20651 void addAll(Collection<Node> collection) {
20653 throw new UnsupportedError("Cannot add to immutable List."); 20652 throw new UnsupportedError("Cannot add to immutable List.");
20654 } 20653 }
20655 20654
20656 bool contains(Node element) => _Collections.contains(this, element); 20655 bool contains(Node element) => Collections.contains(this, element);
20657 20656
20658 void forEach(void f(Node element)) => _Collections.forEach(this, f); 20657 void forEach(void f(Node element)) => Collections.forEach(this, f);
20659 20658
20660 Collection map(f(Node element)) => _Collections.map(this, [], f); 20659 Collection map(f(Node element)) => Collections.map(this, [], f);
20661 20660
20662 Collection<Node> filter(bool f(Node element)) => 20661 Collection<Node> filter(bool f(Node element)) =>
20663 _Collections.filter(this, <Node>[], f); 20662 Collections.filter(this, <Node>[], f);
20664 20663
20665 bool every(bool f(Node element)) => _Collections.every(this, f); 20664 bool every(bool f(Node element)) => Collections.every(this, f);
20666 20665
20667 bool some(bool f(Node element)) => _Collections.some(this, f); 20666 bool some(bool f(Node element)) => Collections.some(this, f);
20668 20667
20669 bool get isEmpty => this.length == 0; 20668 bool get isEmpty => this.length == 0;
20670 20669
20671 // From List<Node>: 20670 // From List<Node>:
20672 20671
20673 void sort([Comparator<Node> compare = Comparable.compare]) { 20672 void sort([Comparator<Node> compare = Comparable.compare]) {
20674 throw new UnsupportedError("Cannot sort immutable List."); 20673 throw new UnsupportedError("Cannot sort immutable List.");
20675 } 20674 }
20676 20675
20677 int indexOf(Node element, [int start = 0]) => 20676 int indexOf(Node element, [int start = 0]) =>
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
20863 } 20862 }
20864 20863
20865 void addLast(SpeechInputResult value) { 20864 void addLast(SpeechInputResult value) {
20866 throw new UnsupportedError("Cannot add to immutable List."); 20865 throw new UnsupportedError("Cannot add to immutable List.");
20867 } 20866 }
20868 20867
20869 void addAll(Collection<SpeechInputResult> collection) { 20868 void addAll(Collection<SpeechInputResult> collection) {
20870 throw new UnsupportedError("Cannot add to immutable List."); 20869 throw new UnsupportedError("Cannot add to immutable List.");
20871 } 20870 }
20872 20871
20873 bool contains(SpeechInputResult element) => _Collections.contains(this, elemen t); 20872 bool contains(SpeechInputResult element) => Collections.contains(this, element );
20874 20873
20875 void forEach(void f(SpeechInputResult element)) => _Collections.forEach(this, f); 20874 void forEach(void f(SpeechInputResult element)) => Collections.forEach(this, f );
20876 20875
20877 Collection map(f(SpeechInputResult element)) => _Collections.map(this, [], f); 20876 Collection map(f(SpeechInputResult element)) => Collections.map(this, [], f);
20878 20877
20879 Collection<SpeechInputResult> filter(bool f(SpeechInputResult element)) => 20878 Collection<SpeechInputResult> filter(bool f(SpeechInputResult element)) =>
20880 _Collections.filter(this, <SpeechInputResult>[], f); 20879 Collections.filter(this, <SpeechInputResult>[], f);
20881 20880
20882 bool every(bool f(SpeechInputResult element)) => _Collections.every(this, f); 20881 bool every(bool f(SpeechInputResult element)) => Collections.every(this, f);
20883 20882
20884 bool some(bool f(SpeechInputResult element)) => _Collections.some(this, f); 20883 bool some(bool f(SpeechInputResult element)) => Collections.some(this, f);
20885 20884
20886 bool get isEmpty => this.length == 0; 20885 bool get isEmpty => this.length == 0;
20887 20886
20888 // From List<SpeechInputResult>: 20887 // From List<SpeechInputResult>:
20889 20888
20890 void sort([Comparator<SpeechInputResult> compare = Comparable.compare]) { 20889 void sort([Comparator<SpeechInputResult> compare = Comparable.compare]) {
20891 throw new UnsupportedError("Cannot sort immutable List."); 20890 throw new UnsupportedError("Cannot sort immutable List.");
20892 } 20891 }
20893 20892
20894 int indexOf(SpeechInputResult element, [int start = 0]) => 20893 int indexOf(SpeechInputResult element, [int start = 0]) =>
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
20971 } 20970 }
20972 20971
20973 void addLast(SpeechRecognitionResult value) { 20972 void addLast(SpeechRecognitionResult value) {
20974 throw new UnsupportedError("Cannot add to immutable List."); 20973 throw new UnsupportedError("Cannot add to immutable List.");
20975 } 20974 }
20976 20975
20977 void addAll(Collection<SpeechRecognitionResult> collection) { 20976 void addAll(Collection<SpeechRecognitionResult> collection) {
20978 throw new UnsupportedError("Cannot add to immutable List."); 20977 throw new UnsupportedError("Cannot add to immutable List.");
20979 } 20978 }
20980 20979
20981 bool contains(SpeechRecognitionResult element) => _Collections.contains(this, element); 20980 bool contains(SpeechRecognitionResult element) => Collections.contains(this, e lement);
20982 20981
20983 void forEach(void f(SpeechRecognitionResult element)) => _Collections.forEach( this, f); 20982 void forEach(void f(SpeechRecognitionResult element)) => Collections.forEach(t his, f);
20984 20983
20985 Collection map(f(SpeechRecognitionResult element)) => _Collections.map(this, [ ], f); 20984 Collection map(f(SpeechRecognitionResult element)) => Collections.map(this, [] , f);
20986 20985
20987 Collection<SpeechRecognitionResult> filter(bool f(SpeechRecognitionResult elem ent)) => 20986 Collection<SpeechRecognitionResult> filter(bool f(SpeechRecognitionResult elem ent)) =>
20988 _Collections.filter(this, <SpeechRecognitionResult>[], f); 20987 Collections.filter(this, <SpeechRecognitionResult>[], f);
20989 20988
20990 bool every(bool f(SpeechRecognitionResult element)) => _Collections.every(this , f); 20989 bool every(bool f(SpeechRecognitionResult element)) => Collections.every(this, f);
20991 20990
20992 bool some(bool f(SpeechRecognitionResult element)) => _Collections.some(this, f); 20991 bool some(bool f(SpeechRecognitionResult element)) => Collections.some(this, f );
20993 20992
20994 bool get isEmpty => this.length == 0; 20993 bool get isEmpty => this.length == 0;
20995 20994
20996 // From List<SpeechRecognitionResult>: 20995 // From List<SpeechRecognitionResult>:
20997 20996
20998 void sort([Comparator<SpeechRecognitionResult> compare = Comparable.compare]) { 20997 void sort([Comparator<SpeechRecognitionResult> compare = Comparable.compare]) {
20999 throw new UnsupportedError("Cannot sort immutable List."); 20998 throw new UnsupportedError("Cannot sort immutable List.");
21000 } 20999 }
21001 21000
21002 int indexOf(SpeechRecognitionResult element, [int start = 0]) => 21001 int indexOf(SpeechRecognitionResult element, [int start = 0]) =>
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
21070 } 21069 }
21071 21070
21072 void addLast(StyleSheet value) { 21071 void addLast(StyleSheet value) {
21073 throw new UnsupportedError("Cannot add to immutable List."); 21072 throw new UnsupportedError("Cannot add to immutable List.");
21074 } 21073 }
21075 21074
21076 void addAll(Collection<StyleSheet> collection) { 21075 void addAll(Collection<StyleSheet> collection) {
21077 throw new UnsupportedError("Cannot add to immutable List."); 21076 throw new UnsupportedError("Cannot add to immutable List.");
21078 } 21077 }
21079 21078
21080 bool contains(StyleSheet element) => _Collections.contains(this, element); 21079 bool contains(StyleSheet element) => Collections.contains(this, element);
21081 21080
21082 void forEach(void f(StyleSheet element)) => _Collections.forEach(this, f); 21081 void forEach(void f(StyleSheet element)) => Collections.forEach(this, f);
21083 21082
21084 Collection map(f(StyleSheet element)) => _Collections.map(this, [], f); 21083 Collection map(f(StyleSheet element)) => Collections.map(this, [], f);
21085 21084
21086 Collection<StyleSheet> filter(bool f(StyleSheet element)) => 21085 Collection<StyleSheet> filter(bool f(StyleSheet element)) =>
21087 _Collections.filter(this, <StyleSheet>[], f); 21086 Collections.filter(this, <StyleSheet>[], f);
21088 21087
21089 bool every(bool f(StyleSheet element)) => _Collections.every(this, f); 21088 bool every(bool f(StyleSheet element)) => Collections.every(this, f);
21090 21089
21091 bool some(bool f(StyleSheet element)) => _Collections.some(this, f); 21090 bool some(bool f(StyleSheet element)) => Collections.some(this, f);
21092 21091
21093 bool get isEmpty => this.length == 0; 21092 bool get isEmpty => this.length == 0;
21094 21093
21095 // From List<StyleSheet>: 21094 // From List<StyleSheet>:
21096 21095
21097 void sort([Comparator<StyleSheet> compare = Comparable.compare]) { 21096 void sort([Comparator<StyleSheet> compare = Comparable.compare]) {
21098 throw new UnsupportedError("Cannot sort immutable List."); 21097 throw new UnsupportedError("Cannot sort immutable List.");
21099 } 21098 }
21100 21099
21101 int indexOf(StyleSheet element, [int start = 0]) => 21100 int indexOf(StyleSheet element, [int start = 0]) =>
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
21193 } 21192 }
21194 21193
21195 void addLast(Animation value) { 21194 void addLast(Animation value) {
21196 throw new UnsupportedError("Cannot add to immutable List."); 21195 throw new UnsupportedError("Cannot add to immutable List.");
21197 } 21196 }
21198 21197
21199 void addAll(Collection<Animation> collection) { 21198 void addAll(Collection<Animation> collection) {
21200 throw new UnsupportedError("Cannot add to immutable List."); 21199 throw new UnsupportedError("Cannot add to immutable List.");
21201 } 21200 }
21202 21201
21203 bool contains(Animation element) => _Collections.contains(this, element); 21202 bool contains(Animation element) => Collections.contains(this, element);
21204 21203
21205 void forEach(void f(Animation element)) => _Collections.forEach(this, f); 21204 void forEach(void f(Animation element)) => Collections.forEach(this, f);
21206 21205
21207 Collection map(f(Animation element)) => _Collections.map(this, [], f); 21206 Collection map(f(Animation element)) => Collections.map(this, [], f);
21208 21207
21209 Collection<Animation> filter(bool f(Animation element)) => 21208 Collection<Animation> filter(bool f(Animation element)) =>
21210 _Collections.filter(this, <Animation>[], f); 21209 Collections.filter(this, <Animation>[], f);
21211 21210
21212 bool every(bool f(Animation element)) => _Collections.every(this, f); 21211 bool every(bool f(Animation element)) => Collections.every(this, f);
21213 21212
21214 bool some(bool f(Animation element)) => _Collections.some(this, f); 21213 bool some(bool f(Animation element)) => Collections.some(this, f);
21215 21214
21216 bool get isEmpty => this.length == 0; 21215 bool get isEmpty => this.length == 0;
21217 21216
21218 // From List<Animation>: 21217 // From List<Animation>:
21219 21218
21220 void sort([Comparator<Animation> compare = Comparable.compare]) { 21219 void sort([Comparator<Animation> compare = Comparable.compare]) {
21221 throw new UnsupportedError("Cannot sort immutable List."); 21220 throw new UnsupportedError("Cannot sort immutable List.");
21222 } 21221 }
21223 21222
21224 int indexOf(Animation element, [int start = 0]) => 21223 int indexOf(Animation element, [int start = 0]) =>
(...skipping 1907 matching lines...) Expand 10 before | Expand all | Expand 10 after
23132 canceller = window.clearInterval; 23131 canceller = window.clearInterval;
23133 } else { 23132 } else {
23134 maker = window.setTimeout; 23133 maker = window.setTimeout;
23135 canceller = window.clearTimeout; 23134 canceller = window.clearTimeout;
23136 } 23135 }
23137 Timer timer; 23136 Timer timer;
23138 final int id = maker(() { callback(timer); }, milliSeconds); 23137 final int id = maker(() { callback(timer); }, milliSeconds);
23139 timer = new _Timer(() { canceller(id); }); 23138 timer = new _Timer(() { canceller(id); });
23140 return timer; 23139 return timer;
23141 }; 23140 };
23142 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
23143 // for details. All rights reserved. Use of this source code is governed by a
23144 // BSD-style license that can be found in the LICENSE file.
23145
23146
23147 /**
23148 * The [Collections] class implements static methods useful when
23149 * writing a class that implements [Collection] and the [iterator]
23150 * method.
23151 */
23152 class _Collections {
23153 static bool contains(Iterable<Object> iterable, Object element) {
23154 for (final e in iterable) {
23155 if (e == element) return true;
23156 }
23157 return false;
23158 }
23159
23160 static void forEach(Iterable<Object> iterable, void f(Object o)) {
23161 for (final e in iterable) {
23162 f(e);
23163 }
23164 }
23165
23166 static List map(Iterable<Object> source,
23167 List<Object> destination,
23168 f(o)) {
23169 for (final e in source) {
23170 destination.add(f(e));
23171 }
23172 return destination;
23173 }
23174
23175 static bool some(Iterable<Object> iterable, bool f(Object o)) {
23176 for (final e in iterable) {
23177 if (f(e)) return true;
23178 }
23179 return false;
23180 }
23181
23182 static bool every(Iterable<Object> iterable, bool f(Object o)) {
23183 for (final e in iterable) {
23184 if (!f(e)) return false;
23185 }
23186 return true;
23187 }
23188
23189 static List filter(Iterable<Object> source,
23190 List<Object> destination,
23191 bool f(o)) {
23192 for (final e in source) {
23193 if (f(e)) destination.add(e);
23194 }
23195 return destination;
23196 }
23197
23198 static bool isEmpty(Iterable<Object> iterable) {
23199 return !iterable.iterator().hasNext;
23200 }
23201 }
23202 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23141 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23203 // for details. All rights reserved. Use of this source code is governed by a 23142 // for details. All rights reserved. Use of this source code is governed by a
23204 // BSD-style license that can be found in the LICENSE file. 23143 // BSD-style license that can be found in the LICENSE file.
23205 23144
23206 23145
23207 class _HttpRequestUtils { 23146 class _HttpRequestUtils {
23208 23147
23209 // Helper for factory HttpRequest.get 23148 // Helper for factory HttpRequest.get
23210 static HttpRequest get(String url, 23149 static HttpRequest get(String url,
23211 onSuccess(HttpRequest request), 23150 onSuccess(HttpRequest request),
(...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after
24014 // with native names. 23953 // with native names.
24015 _convertDartToNative_ImageData(ImageData imageData) { 23954 _convertDartToNative_ImageData(ImageData imageData) {
24016 if (imageData is _TypedImageData) { 23955 if (imageData is _TypedImageData) {
24017 return JS('', '{data: #, height: #, width: #}', 23956 return JS('', '{data: #, height: #, width: #}',
24018 imageData.data, imageData.height, imageData.width); 23957 imageData.data, imageData.height, imageData.width);
24019 } 23958 }
24020 return imageData; 23959 return imageData;
24021 } 23960 }
24022 23961
24023 23962
24024 /// Converts a JavaScript object with properties into a Dart Map.
24025 /// Not suitable for nested objects.
24026 Map _convertNativeToDart_Dictionary(object) {
24027 if (object == null) return null;
24028 var dict = {};
24029 for (final key in JS('=List', 'Object.getOwnPropertyNames(#)', object)) {
24030 dict[key] = JS('var', '#[#]', object, key);
24031 }
24032 return dict;
24033 }
24034
24035 /// Converts a flat Dart map into a JavaScript object with properties.
24036 _convertDartToNative_Dictionary(Map dict) {
24037 if (dict == null) return null;
24038 var object = JS('var', '{}');
24039 dict.forEach((String key, value) {
24040 JS('void', '#[#] = #', object, key, value);
24041 });
24042 return object;
24043 }
24044
24045
24046 /**
24047 * Ensures that the input is a JavaScript Array.
24048 *
24049 * Creates a new JavaScript array if necessary, otherwise returns the original.
24050 */
24051 List _convertDartToNative_StringArray(List<String> input) {
24052 // TODO(sra). Implement this.
24053 return input;
24054 }
24055
24056
24057 // ----------------------------------------------------------------------------- 23963 // -----------------------------------------------------------------------------
24058 23964
24059 /** 23965 /**
24060 * Converts a native IDBKey into a Dart object. 23966 * Converts a native IDBKey into a Dart object.
24061 * 23967 *
24062 * May return the original input. May mutate the original input (but will be 23968 * May return the original input. May mutate the original input (but will be
24063 * idempotent if mutation occurs). It is assumed that this conversion happens 23969 * idempotent if mutation occurs). It is assumed that this conversion happens
24064 * on native IDBKeys on all paths that return IDBKeys from native DOM calls. 23970 * on native IDBKeys on all paths that return IDBKeys from native DOM calls.
24065 * 23971 *
24066 * If necessary, JavaScript Dates are converted into Dart Dates. 23972 * If necessary, JavaScript Dates are converted into Dart Dates.
24067 */ 23973 */
24068 _convertNativeToDart_IDBKey(nativeKey) { 23974 _convertNativeToDart_IDBKey(nativeKey) {
24069 containsDate(object) { 23975 containsDate(object) {
24070 if (_isJavaScriptDate(object)) return true; 23976 if (isJavaScriptDate(object)) return true;
24071 if (object is List) { 23977 if (object is List) {
24072 for (int i = 0; i < object.length; i++) { 23978 for (int i = 0; i < object.length; i++) {
24073 if (containsDate(object[i])) return true; 23979 if (containsDate(object[i])) return true;
24074 } 23980 }
24075 } 23981 }
24076 return false; // number, string. 23982 return false; // number, string.
24077 } 23983 }
24078 if (containsDate(nativeKey)) { 23984 if (containsDate(nativeKey)) {
24079 throw new UnimplementedError('IDBKey containing Date'); 23985 throw new UnimplementedError('IDBKey containing Date');
24080 } 23986 }
(...skipping 11 matching lines...) Expand all
24092 */ 23998 */
24093 _convertDartToNative_IDBKey(dartKey) { 23999 _convertDartToNative_IDBKey(dartKey) {
24094 // TODO: Implement. 24000 // TODO: Implement.
24095 return dartKey; 24001 return dartKey;
24096 } 24002 }
24097 24003
24098 24004
24099 24005
24100 /// May modify original. If so, action is idempotent. 24006 /// May modify original. If so, action is idempotent.
24101 _convertNativeToDart_IDBAny(object) { 24007 _convertNativeToDart_IDBAny(object) {
24102 return _convertNativeToDart_AcceptStructuredClone(object, mustCopy: false); 24008 return convertNativeToDart_AcceptStructuredClone(object, mustCopy: false);
24103 }
24104
24105 /// Converts a Dart value into a JavaScript SerializedScriptValue.
24106 _convertDartToNative_SerializedScriptValue(value) {
24107 return _convertDartToNative_PrepareForStructuredClone(value);
24108 }
24109
24110 /// Since the source object may be viewed via a JavaScript event listener the
24111 /// original may not be modified.
24112 _convertNativeToDart_SerializedScriptValue(object) {
24113 return _convertNativeToDart_AcceptStructuredClone(object, mustCopy: true);
24114 } 24009 }
24115 24010
24116 24011
24117 /**
24118 * Converts a Dart value into a JavaScript SerializedScriptValue. Returns the
24119 * original input or a functional 'copy'. Does not mutate the original.
24120 *
24121 * The main transformation is the translation of Dart Maps are converted to
24122 * JavaScript Objects.
24123 *
24124 * The algorithm is essentially a dry-run of the structured clone algorithm
24125 * described at
24126 * http://www.whatwg.org/specs/web-apps/current-work/multipage/common-dom-interf aces.html#structured-clone
24127 * https://www.khronos.org/registry/typedarray/specs/latest/#9
24128 *
24129 * Since the result of this function is expected to be passed only to JavaScript
24130 * operations that perform the structured clone algorithm which does not mutate
24131 * its output, the result may share structure with the input [value].
24132 */
24133 _convertDartToNative_PrepareForStructuredClone(value) {
24134
24135 // TODO(sra): Replace slots with identity hash table.
24136 var values = [];
24137 var copies = []; // initially 'null', 'true' during initial DFS, then a copy.
24138
24139 int findSlot(value) {
24140 int length = values.length;
24141 for (int i = 0; i < length; i++) {
24142 if (identical(values[i], value)) return i;
24143 }
24144 values.add(value);
24145 copies.add(null);
24146 return length;
24147 }
24148 readSlot(int i) => copies[i];
24149 writeSlot(int i, x) { copies[i] = x; }
24150 cleanupSlots() {} // Will be needed if we mark objects with a property.
24151
24152 // Returns the input, or a clone of the input.
24153 walk(e) {
24154 if (e == null) return e;
24155 if (e is bool) return e;
24156 if (e is num) return e;
24157 if (e is String) return e;
24158 if (e is Date) {
24159 // TODO(sra).
24160 throw new UnimplementedError('structured clone of Date');
24161 }
24162 if (e is RegExp) {
24163 // TODO(sra).
24164 throw new UnimplementedError('structured clone of RegExp');
24165 }
24166
24167 // The browser's internal structured cloning algorithm will copy certain
24168 // types of object, but it will copy only its own implementations and not
24169 // just any Dart implementations of the interface.
24170
24171 // TODO(sra): The JavaScript objects suitable for direct cloning by the
24172 // structured clone algorithm could be tagged with an private interface.
24173
24174 if (e is File) return e;
24175 if (e is Blob) return e;
24176 if (e is _FileList) return e;
24177
24178 // TODO(sra): Firefox: How to convert _TypedImageData on the other end?
24179 if (e is ImageData) return e;
24180 if (e is ArrayBuffer) return e;
24181
24182 if (e is ArrayBufferView) return e;
24183
24184 if (e is Map) {
24185 var slot = findSlot(e);
24186 var copy = readSlot(slot);
24187 if (copy != null) return copy;
24188 copy = JS('var', '{}');
24189 writeSlot(slot, copy);
24190 e.forEach((key, value) {
24191 JS('void', '#[#] = #', copy, key, walk(value));
24192 });
24193 return copy;
24194 }
24195
24196 if (e is List) {
24197 // Since a JavaScript Array is an instance of Dart List it is possible to
24198 // avoid making a copy of the list if there is no need to copy anything
24199 // reachable from the array. We defer creating a new array until a cycle
24200 // is detected or a subgraph was copied.
24201 int length = e.length;
24202 var slot = findSlot(e);
24203 var copy = readSlot(slot);
24204 if (copy != null) {
24205 if (true == copy) { // Cycle, so commit to making a copy.
24206 copy = JS('=List', 'new Array(#)', length);
24207 writeSlot(slot, copy);
24208 }
24209 return copy;
24210 }
24211
24212 int i = 0;
24213
24214 if (_isJavaScriptArray(e) &&
24215 // We have to copy immutable lists, otherwise the structured clone
24216 // algorithm will copy the .immutable$list marker property, making the
24217 // list immutable when received!
24218 !_isImmutableJavaScriptArray(e)) {
24219 writeSlot(slot, true); // Deferred copy.
24220 for ( ; i < length; i++) {
24221 var element = e[i];
24222 var elementCopy = walk(element);
24223 if (!identical(elementCopy, element)) {
24224 copy = readSlot(slot); // Cyclic reference may have created it.
24225 if (true == copy) {
24226 copy = JS('=List', 'new Array(#)', length);
24227 writeSlot(slot, copy);
24228 }
24229 for (int j = 0; j < i; j++) {
24230 copy[j] = e[j];
24231 }
24232 copy[i] = elementCopy;
24233 i++;
24234 break;
24235 }
24236 }
24237 if (copy == null) {
24238 copy = e;
24239 writeSlot(slot, copy);
24240 }
24241 } else {
24242 // Not a JavaScript Array. We are forced to make a copy.
24243 copy = JS('=List', 'new Array(#)', length);
24244 writeSlot(slot, copy);
24245 }
24246
24247 for ( ; i < length; i++) {
24248 copy[i] = walk(e[i]);
24249 }
24250 return copy;
24251 }
24252
24253 throw new UnimplementedError('structured clone of other type');
24254 }
24255
24256 var copy = walk(value);
24257 cleanupSlots();
24258 return copy;
24259 }
24260
24261 /**
24262 * Converts a native value into a Dart object.
24263 *
24264 * If [mustCopy] is [:false:], may return the original input. May mutate the
24265 * original input (but will be idempotent if mutation occurs). It is assumed
24266 * that this conversion happens on native serializable script values such values
24267 * from native DOM calls.
24268 *
24269 * [object] is the result of a structured clone operation.
24270 *
24271 * If necessary, JavaScript Dates are converted into Dart Dates.
24272 *
24273 * If [mustCopy] is [:true:], the entire object is copied and the original input
24274 * is not mutated. This should be the case where Dart and JavaScript code can
24275 * access the value, for example, via multiple event listeners for
24276 * MessageEvents. Mutating the object to make it more 'Dart-like' would corrupt
24277 * the value as seen from the JavaScript listeners.
24278 */
24279 _convertNativeToDart_AcceptStructuredClone(object, {mustCopy = false}) {
24280
24281 // TODO(sra): Replace slots with identity hash table that works on non-dart
24282 // objects.
24283 var values = [];
24284 var copies = [];
24285
24286 int findSlot(value) {
24287 int length = values.length;
24288 for (int i = 0; i < length; i++) {
24289 if (identical(values[i], value)) return i;
24290 }
24291 values.add(value);
24292 copies.add(null);
24293 return length;
24294 }
24295 readSlot(int i) => copies[i];
24296 writeSlot(int i, x) { copies[i] = x; }
24297
24298 walk(e) {
24299 if (e == null) return e;
24300 if (e is bool) return e;
24301 if (e is num) return e;
24302 if (e is String) return e;
24303
24304 if (_isJavaScriptDate(e)) {
24305 // TODO(sra).
24306 throw new UnimplementedError('structured clone of Date');
24307 }
24308
24309 if (_isJavaScriptRegExp(e)) {
24310 // TODO(sra).
24311 throw new UnimplementedError('structured clone of RegExp');
24312 }
24313
24314 if (_isJavaScriptSimpleObject(e)) {
24315 // TODO(sra): If mustCopy is false, swizzle the prototype for one of a Map
24316 // implementation that uses the properies as storage.
24317 var slot = findSlot(e);
24318 var copy = readSlot(slot);
24319 if (copy != null) return copy;
24320 copy = {};
24321
24322 writeSlot(slot, copy);
24323 for (final key in JS('=List', 'Object.keys(#)', e)) {
24324 copy[key] = walk(JS('var', '#[#]', e, key));
24325 }
24326 return copy;
24327 }
24328
24329 if (_isJavaScriptArray(e)) {
24330 var slot = findSlot(e);
24331 var copy = readSlot(slot);
24332 if (copy != null) return copy;
24333
24334 int length = e.length;
24335 // Since a JavaScript Array is an instance of Dart List, we can modify it
24336 // in-place unless we must copy.
24337 copy = mustCopy ? JS('=List', 'new Array(#)', length) : e;
24338 writeSlot(slot, copy);
24339
24340 for (int i = 0; i < length; i++) {
24341 copy[i] = walk(e[i]);
24342 }
24343 return copy;
24344 }
24345
24346 // Assume anything else is already a valid Dart object, either by having
24347 // already been processed, or e.g. a clonable native class.
24348 return e;
24349 }
24350
24351 var copy = walk(object);
24352 return copy;
24353 }
24354
24355
24356 bool _isJavaScriptDate(value) => JS('bool', '# instanceof Date', value);
24357 bool _isJavaScriptRegExp(value) => JS('bool', '# instanceof RegExp', value);
24358 bool _isJavaScriptArray(value) => JS('bool', '# instanceof Array', value);
24359 bool _isJavaScriptSimpleObject(value) =>
24360 JS('bool', 'Object.getPrototypeOf(#) === Object.prototype', value);
24361 bool _isImmutableJavaScriptArray(value) =>
24362 JS('bool', r'!!(#.immutable$list)', value);
24363
24364
24365
24366 const String _serializedScriptValue =
24367 'num|String|bool|'
24368 '=List|=Object|'
24369 'Blob|File|ArrayBuffer|ArrayBufferView'
24370 // TODO(sra): Add Date, RegExp.
24371 ;
24372 const _annotation_Creates_SerializedScriptValue =
24373 const Creates(_serializedScriptValue);
24374 const _annotation_Returns_SerializedScriptValue =
24375 const Returns(_serializedScriptValue);
24376
24377 const String _idbKey = '=List|=Object|num|String'; // TODO(sra): Add Date. 24012 const String _idbKey = '=List|=Object|num|String'; // TODO(sra): Add Date.
24378 const _annotation_Creates_IDBKey = const Creates(_idbKey); 24013 const _annotation_Creates_IDBKey = const Creates(_idbKey);
24379 const _annotation_Returns_IDBKey = const Returns(_idbKey); 24014 const _annotation_Returns_IDBKey = const Returns(_idbKey);
24380 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 24015 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24381 // for details. All rights reserved. Use of this source code is governed by a 24016 // for details. All rights reserved. Use of this source code is governed by a
24382 // BSD-style license that can be found in the LICENSE file. 24017 // BSD-style license that can be found in the LICENSE file.
24383 24018
24384 24019
24385 // TODO(vsm): Unify with Dartium version. 24020 // TODO(vsm): Unify with Dartium version.
24386 class _DOMWindowCrossFrame implements Window { 24021 class _DOMWindowCrossFrame implements Window {
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after
25008 if (length < 0) throw new ArgumentError('length'); 24643 if (length < 0) throw new ArgumentError('length');
25009 if (start < 0) throw new RangeError.value(start); 24644 if (start < 0) throw new RangeError.value(start);
25010 int end = start + length; 24645 int end = start + length;
25011 if (end > a.length) throw new RangeError.value(end); 24646 if (end > a.length) throw new RangeError.value(end);
25012 for (int i = start; i < end; i++) { 24647 for (int i = start; i < end; i++) {
25013 accumulator.add(a[i]); 24648 accumulator.add(a[i]);
25014 } 24649 }
25015 return accumulator; 24650 return accumulator;
25016 } 24651 }
25017 } 24652 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698