| OLD | NEW |
| 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 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 7 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 7 // for details. All rights reserved. Use of this source code is governed by a | 8 // for details. All rights reserved. Use of this source code is governed by a |
| 8 // BSD-style license that can be found in the LICENSE file. | 9 // BSD-style license that can be found in the LICENSE file. |
| 9 | 10 |
| 10 // DO NOT EDIT | 11 // DO NOT EDIT |
| 11 // Auto-generated dart:html library. | 12 // Auto-generated dart:html library. |
| 12 | 13 |
| (...skipping 5183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5196 /// @domName Clipboard | 5197 /// @domName Clipboard |
| 5197 class Clipboard native "*Clipboard" { | 5198 class Clipboard native "*Clipboard" { |
| 5198 | 5199 |
| 5199 /** @domName Clipboard.dropEffect */ | 5200 /** @domName Clipboard.dropEffect */ |
| 5200 String dropEffect; | 5201 String dropEffect; |
| 5201 | 5202 |
| 5202 /** @domName Clipboard.effectAllowed */ | 5203 /** @domName Clipboard.effectAllowed */ |
| 5203 String effectAllowed; | 5204 String effectAllowed; |
| 5204 | 5205 |
| 5205 /** @domName Clipboard.files */ | 5206 /** @domName Clipboard.files */ |
| 5206 final List<File> files; | 5207 final FileList files; |
| 5207 | 5208 |
| 5208 /** @domName Clipboard.items */ | 5209 /** @domName Clipboard.items */ |
| 5209 final DataTransferItemList items; | 5210 final DataTransferItemList items; |
| 5210 | 5211 |
| 5211 /** @domName Clipboard.types */ | 5212 /** @domName Clipboard.types */ |
| 5212 final List types; | 5213 final List types; |
| 5213 | 5214 |
| 5214 /** @domName Clipboard.clearData */ | 5215 /** @domName Clipboard.clearData */ |
| 5215 void clearData([String type]) native; | 5216 void clearData([String type]) native; |
| 5216 | 5217 |
| (...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5711 } | 5712 } |
| 5712 | 5713 |
| 5713 void addLast(DOMMimeType value) { | 5714 void addLast(DOMMimeType value) { |
| 5714 throw new UnsupportedError("Cannot add to immutable List."); | 5715 throw new UnsupportedError("Cannot add to immutable List."); |
| 5715 } | 5716 } |
| 5716 | 5717 |
| 5717 void addAll(Collection<DOMMimeType> collection) { | 5718 void addAll(Collection<DOMMimeType> collection) { |
| 5718 throw new UnsupportedError("Cannot add to immutable List."); | 5719 throw new UnsupportedError("Cannot add to immutable List."); |
| 5719 } | 5720 } |
| 5720 | 5721 |
| 5721 bool contains(DOMMimeType element) => _Collections.contains(this, element); | 5722 bool contains(DOMMimeType element) => Collections.contains(this, element); |
| 5722 | 5723 |
| 5723 void forEach(void f(DOMMimeType element)) => _Collections.forEach(this, f); | 5724 void forEach(void f(DOMMimeType element)) => Collections.forEach(this, f); |
| 5724 | 5725 |
| 5725 Collection map(f(DOMMimeType element)) => _Collections.map(this, [], f); | 5726 Collection map(f(DOMMimeType element)) => Collections.map(this, [], f); |
| 5726 | 5727 |
| 5727 Collection<DOMMimeType> filter(bool f(DOMMimeType element)) => | 5728 Collection<DOMMimeType> filter(bool f(DOMMimeType element)) => |
| 5728 _Collections.filter(this, <DOMMimeType>[], f); | 5729 Collections.filter(this, <DOMMimeType>[], f); |
| 5729 | 5730 |
| 5730 bool every(bool f(DOMMimeType element)) => _Collections.every(this, f); | 5731 bool every(bool f(DOMMimeType element)) => Collections.every(this, f); |
| 5731 | 5732 |
| 5732 bool some(bool f(DOMMimeType element)) => _Collections.some(this, f); | 5733 bool some(bool f(DOMMimeType element)) => Collections.some(this, f); |
| 5733 | 5734 |
| 5734 bool get isEmpty => this.length == 0; | 5735 bool get isEmpty => this.length == 0; |
| 5735 | 5736 |
| 5736 // From List<DOMMimeType>: | 5737 // From List<DOMMimeType>: |
| 5737 | 5738 |
| 5738 void sort([Comparator<DOMMimeType> compare = Comparable.compare]) { | 5739 void sort([Comparator<DOMMimeType> compare = Comparable.compare]) { |
| 5739 throw new UnsupportedError("Cannot sort immutable List."); | 5740 throw new UnsupportedError("Cannot sort immutable List."); |
| 5740 } | 5741 } |
| 5741 | 5742 |
| 5742 int indexOf(DOMMimeType element, [int start = 0]) => | 5743 int indexOf(DOMMimeType element, [int start = 0]) => |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5852 } | 5853 } |
| 5853 | 5854 |
| 5854 void addLast(DOMPlugin value) { | 5855 void addLast(DOMPlugin value) { |
| 5855 throw new UnsupportedError("Cannot add to immutable List."); | 5856 throw new UnsupportedError("Cannot add to immutable List."); |
| 5856 } | 5857 } |
| 5857 | 5858 |
| 5858 void addAll(Collection<DOMPlugin> collection) { | 5859 void addAll(Collection<DOMPlugin> collection) { |
| 5859 throw new UnsupportedError("Cannot add to immutable List."); | 5860 throw new UnsupportedError("Cannot add to immutable List."); |
| 5860 } | 5861 } |
| 5861 | 5862 |
| 5862 bool contains(DOMPlugin element) => _Collections.contains(this, element); | 5863 bool contains(DOMPlugin element) => Collections.contains(this, element); |
| 5863 | 5864 |
| 5864 void forEach(void f(DOMPlugin element)) => _Collections.forEach(this, f); | 5865 void forEach(void f(DOMPlugin element)) => Collections.forEach(this, f); |
| 5865 | 5866 |
| 5866 Collection map(f(DOMPlugin element)) => _Collections.map(this, [], f); | 5867 Collection map(f(DOMPlugin element)) => Collections.map(this, [], f); |
| 5867 | 5868 |
| 5868 Collection<DOMPlugin> filter(bool f(DOMPlugin element)) => | 5869 Collection<DOMPlugin> filter(bool f(DOMPlugin element)) => |
| 5869 _Collections.filter(this, <DOMPlugin>[], f); | 5870 Collections.filter(this, <DOMPlugin>[], f); |
| 5870 | 5871 |
| 5871 bool every(bool f(DOMPlugin element)) => _Collections.every(this, f); | 5872 bool every(bool f(DOMPlugin element)) => Collections.every(this, f); |
| 5872 | 5873 |
| 5873 bool some(bool f(DOMPlugin element)) => _Collections.some(this, f); | 5874 bool some(bool f(DOMPlugin element)) => Collections.some(this, f); |
| 5874 | 5875 |
| 5875 bool get isEmpty => this.length == 0; | 5876 bool get isEmpty => this.length == 0; |
| 5876 | 5877 |
| 5877 // From List<DOMPlugin>: | 5878 // From List<DOMPlugin>: |
| 5878 | 5879 |
| 5879 void sort([Comparator<DOMPlugin> compare = Comparable.compare]) { | 5880 void sort([Comparator<DOMPlugin> compare = Comparable.compare]) { |
| 5880 throw new UnsupportedError("Cannot sort immutable List."); | 5881 throw new UnsupportedError("Cannot sort immutable List."); |
| 5881 } | 5882 } |
| 5882 | 5883 |
| 5883 int indexOf(DOMPlugin element, [int start = 0]) => | 5884 int indexOf(DOMPlugin element, [int start = 0]) => |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6233 | 6234 |
| 6234 /** | 6235 /** |
| 6235 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent | 6236 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent |
| 6236 */ | 6237 */ |
| 6237 DedicatedWorkerContextEvents get on => | 6238 DedicatedWorkerContextEvents get on => |
| 6238 new DedicatedWorkerContextEvents(this); | 6239 new DedicatedWorkerContextEvents(this); |
| 6239 | 6240 |
| 6240 /** @domName DedicatedWorkerContext.postMessage */ | 6241 /** @domName DedicatedWorkerContext.postMessage */ |
| 6241 void postMessage(/*any*/ message, [List messagePorts]) { | 6242 void postMessage(/*any*/ message, [List messagePorts]) { |
| 6242 if (?messagePorts) { | 6243 if (?messagePorts) { |
| 6243 var message_1 = _convertDartToNative_SerializedScriptValue(message); | 6244 var message_1 = convertDartToNative_SerializedScriptValue(message); |
| 6244 _postMessage_1(message_1, messagePorts); | 6245 _postMessage_1(message_1, messagePorts); |
| 6245 return; | 6246 return; |
| 6246 } | 6247 } |
| 6247 var message_2 = _convertDartToNative_SerializedScriptValue(message); | 6248 var message_2 = convertDartToNative_SerializedScriptValue(message); |
| 6248 _postMessage_2(message_2); | 6249 _postMessage_2(message_2); |
| 6249 return; | 6250 return; |
| 6250 } | 6251 } |
| 6251 void _postMessage_1(message, List messagePorts) native "postMessage"; | 6252 void _postMessage_1(message, List messagePorts) native "postMessage"; |
| 6252 void _postMessage_2(message) native "postMessage"; | 6253 void _postMessage_2(message) native "postMessage"; |
| 6253 } | 6254 } |
| 6254 | 6255 |
| 6255 class DedicatedWorkerContextEvents extends WorkerContextEvents { | 6256 class DedicatedWorkerContextEvents extends WorkerContextEvents { |
| 6256 DedicatedWorkerContextEvents(EventTarget _ptr) : super(_ptr); | 6257 DedicatedWorkerContextEvents(EventTarget _ptr) : super(_ptr); |
| 6257 | 6258 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6333 | 6334 |
| 6334 /// @domName DirectoryEntry | 6335 /// @domName DirectoryEntry |
| 6335 class DirectoryEntry extends Entry native "*DirectoryEntry" { | 6336 class DirectoryEntry extends Entry native "*DirectoryEntry" { |
| 6336 | 6337 |
| 6337 /** @domName DirectoryEntry.createReader */ | 6338 /** @domName DirectoryEntry.createReader */ |
| 6338 DirectoryReader createReader() native; | 6339 DirectoryReader createReader() native; |
| 6339 | 6340 |
| 6340 /** @domName DirectoryEntry.getDirectory */ | 6341 /** @domName DirectoryEntry.getDirectory */ |
| 6341 void getDirectory(String path, {Map options, EntryCallback successCallback, Er
rorCallback errorCallback}) { | 6342 void getDirectory(String path, {Map options, EntryCallback successCallback, Er
rorCallback errorCallback}) { |
| 6342 if (?errorCallback) { | 6343 if (?errorCallback) { |
| 6343 var options_1 = _convertDartToNative_Dictionary(options); | 6344 var options_1 = convertDartToNative_Dictionary(options); |
| 6344 _getDirectory_1(path, options_1, successCallback, errorCallback); | 6345 _getDirectory_1(path, options_1, successCallback, errorCallback); |
| 6345 return; | 6346 return; |
| 6346 } | 6347 } |
| 6347 if (?successCallback) { | 6348 if (?successCallback) { |
| 6348 var options_2 = _convertDartToNative_Dictionary(options); | 6349 var options_2 = convertDartToNative_Dictionary(options); |
| 6349 _getDirectory_2(path, options_2, successCallback); | 6350 _getDirectory_2(path, options_2, successCallback); |
| 6350 return; | 6351 return; |
| 6351 } | 6352 } |
| 6352 if (?options) { | 6353 if (?options) { |
| 6353 var options_3 = _convertDartToNative_Dictionary(options); | 6354 var options_3 = convertDartToNative_Dictionary(options); |
| 6354 _getDirectory_3(path, options_3); | 6355 _getDirectory_3(path, options_3); |
| 6355 return; | 6356 return; |
| 6356 } | 6357 } |
| 6357 _getDirectory_4(path); | 6358 _getDirectory_4(path); |
| 6358 return; | 6359 return; |
| 6359 } | 6360 } |
| 6360 void _getDirectory_1(path, options, EntryCallback successCallback, ErrorCallba
ck errorCallback) native "getDirectory"; | 6361 void _getDirectory_1(path, options, EntryCallback successCallback, ErrorCallba
ck errorCallback) native "getDirectory"; |
| 6361 void _getDirectory_2(path, options, EntryCallback successCallback) native "get
Directory"; | 6362 void _getDirectory_2(path, options, EntryCallback successCallback) native "get
Directory"; |
| 6362 void _getDirectory_3(path, options) native "getDirectory"; | 6363 void _getDirectory_3(path, options) native "getDirectory"; |
| 6363 void _getDirectory_4(path) native "getDirectory"; | 6364 void _getDirectory_4(path) native "getDirectory"; |
| 6364 | 6365 |
| 6365 /** @domName DirectoryEntry.getFile */ | 6366 /** @domName DirectoryEntry.getFile */ |
| 6366 void getFile(String path, {Map options, EntryCallback successCallback, ErrorCa
llback errorCallback}) { | 6367 void getFile(String path, {Map options, EntryCallback successCallback, ErrorCa
llback errorCallback}) { |
| 6367 if (?errorCallback) { | 6368 if (?errorCallback) { |
| 6368 var options_1 = _convertDartToNative_Dictionary(options); | 6369 var options_1 = convertDartToNative_Dictionary(options); |
| 6369 _getFile_1(path, options_1, successCallback, errorCallback); | 6370 _getFile_1(path, options_1, successCallback, errorCallback); |
| 6370 return; | 6371 return; |
| 6371 } | 6372 } |
| 6372 if (?successCallback) { | 6373 if (?successCallback) { |
| 6373 var options_2 = _convertDartToNative_Dictionary(options); | 6374 var options_2 = convertDartToNative_Dictionary(options); |
| 6374 _getFile_2(path, options_2, successCallback); | 6375 _getFile_2(path, options_2, successCallback); |
| 6375 return; | 6376 return; |
| 6376 } | 6377 } |
| 6377 if (?options) { | 6378 if (?options) { |
| 6378 var options_3 = _convertDartToNative_Dictionary(options); | 6379 var options_3 = convertDartToNative_Dictionary(options); |
| 6379 _getFile_3(path, options_3); | 6380 _getFile_3(path, options_3); |
| 6380 return; | 6381 return; |
| 6381 } | 6382 } |
| 6382 _getFile_4(path); | 6383 _getFile_4(path); |
| 6383 return; | 6384 return; |
| 6384 } | 6385 } |
| 6385 void _getFile_1(path, options, EntryCallback successCallback, ErrorCallback er
rorCallback) native "getFile"; | 6386 void _getFile_1(path, options, EntryCallback successCallback, ErrorCallback er
rorCallback) native "getFile"; |
| 6386 void _getFile_2(path, options, EntryCallback successCallback) native "getFile"
; | 6387 void _getFile_2(path, options, EntryCallback successCallback) native "getFile"
; |
| 6387 void _getFile_3(path, options) native "getFile"; | 6388 void _getFile_3(path, options) native "getFile"; |
| 6388 void _getFile_4(path) native "getFile"; | 6389 void _getFile_4(path) native "getFile"; |
| 6389 | 6390 |
| 6390 /** @domName DirectoryEntry.removeRecursively */ | 6391 /** @domName DirectoryEntry.removeRecursively */ |
| 6391 void removeRecursively(VoidCallback successCallback, [ErrorCallback errorCallb
ack]) native; | 6392 void removeRecursively(VoidCallback successCallback, [ErrorCallback errorCallb
ack]) native; |
| 6392 } | 6393 } |
| 6393 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6394 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6394 // for details. All rights reserved. Use of this source code is governed by a | 6395 // for details. All rights reserved. Use of this source code is governed by a |
| 6395 // BSD-style license that can be found in the LICENSE file. | 6396 // BSD-style license that can be found in the LICENSE file. |
| 6396 | 6397 |
| 6397 | 6398 |
| 6398 /// @domName DirectoryEntrySync | 6399 /// @domName DirectoryEntrySync |
| 6399 class DirectoryEntrySync extends EntrySync native "*DirectoryEntrySync" { | 6400 class DirectoryEntrySync extends EntrySync native "*DirectoryEntrySync" { |
| 6400 | 6401 |
| 6401 /** @domName DirectoryEntrySync.createReader */ | 6402 /** @domName DirectoryEntrySync.createReader */ |
| 6402 DirectoryReaderSync createReader() native; | 6403 DirectoryReaderSync createReader() native; |
| 6403 | 6404 |
| 6404 /** @domName DirectoryEntrySync.getDirectory */ | 6405 /** @domName DirectoryEntrySync.getDirectory */ |
| 6405 DirectoryEntrySync getDirectory(String path, Map flags) { | 6406 DirectoryEntrySync getDirectory(String path, Map flags) { |
| 6406 var flags_1 = _convertDartToNative_Dictionary(flags); | 6407 var flags_1 = convertDartToNative_Dictionary(flags); |
| 6407 return _getDirectory_1(path, flags_1); | 6408 return _getDirectory_1(path, flags_1); |
| 6408 } | 6409 } |
| 6409 DirectoryEntrySync _getDirectory_1(path, flags) native "getDirectory"; | 6410 DirectoryEntrySync _getDirectory_1(path, flags) native "getDirectory"; |
| 6410 | 6411 |
| 6411 /** @domName DirectoryEntrySync.getFile */ | 6412 /** @domName DirectoryEntrySync.getFile */ |
| 6412 FileEntrySync getFile(String path, Map flags) { | 6413 FileEntrySync getFile(String path, Map flags) { |
| 6413 var flags_1 = _convertDartToNative_Dictionary(flags); | 6414 var flags_1 = convertDartToNative_Dictionary(flags); |
| 6414 return _getFile_1(path, flags_1); | 6415 return _getFile_1(path, flags_1); |
| 6415 } | 6416 } |
| 6416 FileEntrySync _getFile_1(path, flags) native "getFile"; | 6417 FileEntrySync _getFile_1(path, flags) native "getFile"; |
| 6417 | 6418 |
| 6418 /** @domName DirectoryEntrySync.removeRecursively */ | 6419 /** @domName DirectoryEntrySync.removeRecursively */ |
| 6419 void removeRecursively() native; | 6420 void removeRecursively() native; |
| 6420 } | 6421 } |
| 6421 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6422 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6422 // for details. All rights reserved. Use of this source code is governed by a | 6423 // for details. All rights reserved. Use of this source code is governed by a |
| 6423 // BSD-style license that can be found in the LICENSE file. | 6424 // BSD-style license that can be found in the LICENSE file. |
| (...skipping 2335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8759 final String name; | 8760 final String name; |
| 8760 | 8761 |
| 8761 /** @domName FileException.toString */ | 8762 /** @domName FileException.toString */ |
| 8762 String toString() native; | 8763 String toString() native; |
| 8763 } | 8764 } |
| 8764 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 8765 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 8765 // for details. All rights reserved. Use of this source code is governed by a | 8766 // for details. All rights reserved. Use of this source code is governed by a |
| 8766 // BSD-style license that can be found in the LICENSE file. | 8767 // BSD-style license that can be found in the LICENSE file. |
| 8767 | 8768 |
| 8768 | 8769 |
| 8770 /// @domName FileList |
| 8771 class FileList implements JavaScriptIndexingBehavior, List<File> native "*FileLi
st" { |
| 8772 |
| 8773 /** @domName FileList.length */ |
| 8774 final int length; |
| 8775 |
| 8776 File operator[](int index) => JS("File", "#[#]", this, index); |
| 8777 |
| 8778 void operator[]=(int index, File value) { |
| 8779 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 8780 } |
| 8781 // -- start List<File> mixins. |
| 8782 // File is the element type. |
| 8783 |
| 8784 // From Iterable<File>: |
| 8785 |
| 8786 Iterator<File> iterator() { |
| 8787 // Note: NodeLists are not fixed size. And most probably length shouldn't |
| 8788 // be cached in both iterator _and_ forEach method. For now caching it |
| 8789 // for consistency. |
| 8790 return new FixedSizeListIterator<File>(this); |
| 8791 } |
| 8792 |
| 8793 // From Collection<File>: |
| 8794 |
| 8795 void add(File value) { |
| 8796 throw new UnsupportedError("Cannot add to immutable List."); |
| 8797 } |
| 8798 |
| 8799 void addLast(File value) { |
| 8800 throw new UnsupportedError("Cannot add to immutable List."); |
| 8801 } |
| 8802 |
| 8803 void addAll(Collection<File> collection) { |
| 8804 throw new UnsupportedError("Cannot add to immutable List."); |
| 8805 } |
| 8806 |
| 8807 bool contains(File element) => Collections.contains(this, element); |
| 8808 |
| 8809 void forEach(void f(File element)) => Collections.forEach(this, f); |
| 8810 |
| 8811 Collection map(f(File element)) => Collections.map(this, [], f); |
| 8812 |
| 8813 Collection<File> filter(bool f(File element)) => |
| 8814 Collections.filter(this, <File>[], f); |
| 8815 |
| 8816 bool every(bool f(File element)) => Collections.every(this, f); |
| 8817 |
| 8818 bool some(bool f(File element)) => Collections.some(this, f); |
| 8819 |
| 8820 bool get isEmpty => this.length == 0; |
| 8821 |
| 8822 // From List<File>: |
| 8823 |
| 8824 void sort([Comparator<File> compare = Comparable.compare]) { |
| 8825 throw new UnsupportedError("Cannot sort immutable List."); |
| 8826 } |
| 8827 |
| 8828 int indexOf(File element, [int start = 0]) => |
| 8829 _Lists.indexOf(this, element, start, this.length); |
| 8830 |
| 8831 int lastIndexOf(File element, [int start]) { |
| 8832 if (start == null) start = length - 1; |
| 8833 return _Lists.lastIndexOf(this, element, start); |
| 8834 } |
| 8835 |
| 8836 File get first => this[0]; |
| 8837 |
| 8838 File get last => this[length - 1]; |
| 8839 |
| 8840 File removeLast() { |
| 8841 throw new UnsupportedError("Cannot removeLast on immutable List."); |
| 8842 } |
| 8843 |
| 8844 void setRange(int start, int rangeLength, List<File> from, [int startFrom]) { |
| 8845 throw new UnsupportedError("Cannot setRange on immutable List."); |
| 8846 } |
| 8847 |
| 8848 void removeRange(int start, int rangeLength) { |
| 8849 throw new UnsupportedError("Cannot removeRange on immutable List."); |
| 8850 } |
| 8851 |
| 8852 void insertRange(int start, int rangeLength, [File initialValue]) { |
| 8853 throw new UnsupportedError("Cannot insertRange on immutable List."); |
| 8854 } |
| 8855 |
| 8856 List<File> getRange(int start, int rangeLength) => |
| 8857 _Lists.getRange(this, start, rangeLength, <File>[]); |
| 8858 |
| 8859 // -- end List<File> mixins. |
| 8860 |
| 8861 /** @domName FileList.item */ |
| 8862 File item(int index) native; |
| 8863 } |
| 8864 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 8865 // for details. All rights reserved. Use of this source code is governed by a |
| 8866 // BSD-style license that can be found in the LICENSE file. |
| 8867 |
| 8868 |
| 8769 /// @domName FileReader | 8869 /// @domName FileReader |
| 8770 class FileReader extends EventTarget native "*FileReader" { | 8870 class FileReader extends EventTarget native "*FileReader" { |
| 8771 | 8871 |
| 8772 factory FileReader() => _FileReaderFactoryProvider.createFileReader(); | 8872 factory FileReader() => _FileReaderFactoryProvider.createFileReader(); |
| 8773 | 8873 |
| 8774 /** | 8874 /** |
| 8775 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent | 8875 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent |
| 8776 */ | 8876 */ |
| 8777 FileReaderEvents get on => | 8877 FileReaderEvents get on => |
| 8778 new FileReaderEvents(this); | 8878 new FileReaderEvents(this); |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9006 } | 9106 } |
| 9007 | 9107 |
| 9008 void addLast(num value) { | 9108 void addLast(num value) { |
| 9009 throw new UnsupportedError("Cannot add to immutable List."); | 9109 throw new UnsupportedError("Cannot add to immutable List."); |
| 9010 } | 9110 } |
| 9011 | 9111 |
| 9012 void addAll(Collection<num> collection) { | 9112 void addAll(Collection<num> collection) { |
| 9013 throw new UnsupportedError("Cannot add to immutable List."); | 9113 throw new UnsupportedError("Cannot add to immutable List."); |
| 9014 } | 9114 } |
| 9015 | 9115 |
| 9016 bool contains(num element) => _Collections.contains(this, element); | 9116 bool contains(num element) => Collections.contains(this, element); |
| 9017 | 9117 |
| 9018 void forEach(void f(num element)) => _Collections.forEach(this, f); | 9118 void forEach(void f(num element)) => Collections.forEach(this, f); |
| 9019 | 9119 |
| 9020 Collection map(f(num element)) => _Collections.map(this, [], f); | 9120 Collection map(f(num element)) => Collections.map(this, [], f); |
| 9021 | 9121 |
| 9022 Collection<num> filter(bool f(num element)) => | 9122 Collection<num> filter(bool f(num element)) => |
| 9023 _Collections.filter(this, <num>[], f); | 9123 Collections.filter(this, <num>[], f); |
| 9024 | 9124 |
| 9025 bool every(bool f(num element)) => _Collections.every(this, f); | 9125 bool every(bool f(num element)) => Collections.every(this, f); |
| 9026 | 9126 |
| 9027 bool some(bool f(num element)) => _Collections.some(this, f); | 9127 bool some(bool f(num element)) => Collections.some(this, f); |
| 9028 | 9128 |
| 9029 bool get isEmpty => this.length == 0; | 9129 bool get isEmpty => this.length == 0; |
| 9030 | 9130 |
| 9031 // From List<num>: | 9131 // From List<num>: |
| 9032 | 9132 |
| 9033 void sort([Comparator<num> compare = Comparable.compare]) { | 9133 void sort([Comparator<num> compare = Comparable.compare]) { |
| 9034 throw new UnsupportedError("Cannot sort immutable List."); | 9134 throw new UnsupportedError("Cannot sort immutable List."); |
| 9035 } | 9135 } |
| 9036 | 9136 |
| 9037 int indexOf(num element, [int start = 0]) => | 9137 int indexOf(num element, [int start = 0]) => |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9116 } | 9216 } |
| 9117 | 9217 |
| 9118 void addLast(num value) { | 9218 void addLast(num value) { |
| 9119 throw new UnsupportedError("Cannot add to immutable List."); | 9219 throw new UnsupportedError("Cannot add to immutable List."); |
| 9120 } | 9220 } |
| 9121 | 9221 |
| 9122 void addAll(Collection<num> collection) { | 9222 void addAll(Collection<num> collection) { |
| 9123 throw new UnsupportedError("Cannot add to immutable List."); | 9223 throw new UnsupportedError("Cannot add to immutable List."); |
| 9124 } | 9224 } |
| 9125 | 9225 |
| 9126 bool contains(num element) => _Collections.contains(this, element); | 9226 bool contains(num element) => Collections.contains(this, element); |
| 9127 | 9227 |
| 9128 void forEach(void f(num element)) => _Collections.forEach(this, f); | 9228 void forEach(void f(num element)) => Collections.forEach(this, f); |
| 9129 | 9229 |
| 9130 Collection map(f(num element)) => _Collections.map(this, [], f); | 9230 Collection map(f(num element)) => Collections.map(this, [], f); |
| 9131 | 9231 |
| 9132 Collection<num> filter(bool f(num element)) => | 9232 Collection<num> filter(bool f(num element)) => |
| 9133 _Collections.filter(this, <num>[], f); | 9233 Collections.filter(this, <num>[], f); |
| 9134 | 9234 |
| 9135 bool every(bool f(num element)) => _Collections.every(this, f); | 9235 bool every(bool f(num element)) => Collections.every(this, f); |
| 9136 | 9236 |
| 9137 bool some(bool f(num element)) => _Collections.some(this, f); | 9237 bool some(bool f(num element)) => Collections.some(this, f); |
| 9138 | 9238 |
| 9139 bool get isEmpty => this.length == 0; | 9239 bool get isEmpty => this.length == 0; |
| 9140 | 9240 |
| 9141 // From List<num>: | 9241 // From List<num>: |
| 9142 | 9242 |
| 9143 void sort([Comparator<num> compare = Comparable.compare]) { | 9243 void sort([Comparator<num> compare = Comparable.compare]) { |
| 9144 throw new UnsupportedError("Cannot sort immutable List."); | 9244 throw new UnsupportedError("Cannot sort immutable List."); |
| 9145 } | 9245 } |
| 9146 | 9246 |
| 9147 int indexOf(num element, [int start = 0]) => | 9247 int indexOf(num element, [int start = 0]) => |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9484 } | 9584 } |
| 9485 | 9585 |
| 9486 void addLast(Node value) { | 9586 void addLast(Node value) { |
| 9487 throw new UnsupportedError("Cannot add to immutable List."); | 9587 throw new UnsupportedError("Cannot add to immutable List."); |
| 9488 } | 9588 } |
| 9489 | 9589 |
| 9490 void addAll(Collection<Node> collection) { | 9590 void addAll(Collection<Node> collection) { |
| 9491 throw new UnsupportedError("Cannot add to immutable List."); | 9591 throw new UnsupportedError("Cannot add to immutable List."); |
| 9492 } | 9592 } |
| 9493 | 9593 |
| 9494 bool contains(Node element) => _Collections.contains(this, element); | 9594 bool contains(Node element) => Collections.contains(this, element); |
| 9495 | 9595 |
| 9496 void forEach(void f(Node element)) => _Collections.forEach(this, f); | 9596 void forEach(void f(Node element)) => Collections.forEach(this, f); |
| 9497 | 9597 |
| 9498 Collection map(f(Node element)) => _Collections.map(this, [], f); | 9598 Collection map(f(Node element)) => Collections.map(this, [], f); |
| 9499 | 9599 |
| 9500 Collection<Node> filter(bool f(Node element)) => | 9600 Collection<Node> filter(bool f(Node element)) => |
| 9501 _Collections.filter(this, <Node>[], f); | 9601 Collections.filter(this, <Node>[], f); |
| 9502 | 9602 |
| 9503 bool every(bool f(Node element)) => _Collections.every(this, f); | 9603 bool every(bool f(Node element)) => Collections.every(this, f); |
| 9504 | 9604 |
| 9505 bool some(bool f(Node element)) => _Collections.some(this, f); | 9605 bool some(bool f(Node element)) => Collections.some(this, f); |
| 9506 | 9606 |
| 9507 bool get isEmpty => this.length == 0; | 9607 bool get isEmpty => this.length == 0; |
| 9508 | 9608 |
| 9509 // From List<Node>: | 9609 // From List<Node>: |
| 9510 | 9610 |
| 9511 void sort([Comparator<Node> compare = Comparable.compare]) { | 9611 void sort([Comparator<Node> compare = Comparable.compare]) { |
| 9512 throw new UnsupportedError("Cannot sort immutable List."); | 9612 throw new UnsupportedError("Cannot sort immutable List."); |
| 9513 } | 9613 } |
| 9514 | 9614 |
| 9515 int indexOf(Node element, [int start = 0]) => | 9615 int indexOf(Node element, [int start = 0]) => |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9589 } | 9689 } |
| 9590 | 9690 |
| 9591 void addLast(Node value) { | 9691 void addLast(Node value) { |
| 9592 throw new UnsupportedError("Cannot add to immutable List."); | 9692 throw new UnsupportedError("Cannot add to immutable List."); |
| 9593 } | 9693 } |
| 9594 | 9694 |
| 9595 void addAll(Collection<Node> collection) { | 9695 void addAll(Collection<Node> collection) { |
| 9596 throw new UnsupportedError("Cannot add to immutable List."); | 9696 throw new UnsupportedError("Cannot add to immutable List."); |
| 9597 } | 9697 } |
| 9598 | 9698 |
| 9599 bool contains(Node element) => _Collections.contains(this, element); | 9699 bool contains(Node element) => Collections.contains(this, element); |
| 9600 | 9700 |
| 9601 void forEach(void f(Node element)) => _Collections.forEach(this, f); | 9701 void forEach(void f(Node element)) => Collections.forEach(this, f); |
| 9602 | 9702 |
| 9603 Collection map(f(Node element)) => _Collections.map(this, [], f); | 9703 Collection map(f(Node element)) => Collections.map(this, [], f); |
| 9604 | 9704 |
| 9605 Collection<Node> filter(bool f(Node element)) => | 9705 Collection<Node> filter(bool f(Node element)) => |
| 9606 _Collections.filter(this, <Node>[], f); | 9706 Collections.filter(this, <Node>[], f); |
| 9607 | 9707 |
| 9608 bool every(bool f(Node element)) => _Collections.every(this, f); | 9708 bool every(bool f(Node element)) => Collections.every(this, f); |
| 9609 | 9709 |
| 9610 bool some(bool f(Node element)) => _Collections.some(this, f); | 9710 bool some(bool f(Node element)) => Collections.some(this, f); |
| 9611 | 9711 |
| 9612 bool get isEmpty => this.length == 0; | 9712 bool get isEmpty => this.length == 0; |
| 9613 | 9713 |
| 9614 // From List<Node>: | 9714 // From List<Node>: |
| 9615 | 9715 |
| 9616 void sort([Comparator<Node> compare = Comparable.compare]) { | 9716 void sort([Comparator<Node> compare = Comparable.compare]) { |
| 9617 throw new UnsupportedError("Cannot sort immutable List."); | 9717 throw new UnsupportedError("Cannot sort immutable List."); |
| 9618 } | 9718 } |
| 9619 | 9719 |
| 9620 int indexOf(Node element, [int start = 0]) => | 9720 int indexOf(Node element, [int start = 0]) => |
| (...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10062 return; | 10162 return; |
| 10063 } | 10163 } |
| 10064 void _continueFunction_1(key) native "continue"; | 10164 void _continueFunction_1(key) native "continue"; |
| 10065 void _continueFunction_2() native "continue"; | 10165 void _continueFunction_2() native "continue"; |
| 10066 | 10166 |
| 10067 /** @domName IDBCursor.delete */ | 10167 /** @domName IDBCursor.delete */ |
| 10068 IDBRequest delete() native; | 10168 IDBRequest delete() native; |
| 10069 | 10169 |
| 10070 /** @domName IDBCursor.update */ | 10170 /** @domName IDBCursor.update */ |
| 10071 IDBRequest update(/*any*/ value) { | 10171 IDBRequest update(/*any*/ value) { |
| 10072 var value_1 = _convertDartToNative_SerializedScriptValue(value); | 10172 var value_1 = convertDartToNative_SerializedScriptValue(value); |
| 10073 return _update_1(value_1); | 10173 return _update_1(value_1); |
| 10074 } | 10174 } |
| 10075 IDBRequest _update_1(value) native "update"; | 10175 IDBRequest _update_1(value) native "update"; |
| 10076 } | 10176 } |
| 10077 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10177 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 10078 // for details. All rights reserved. Use of this source code is governed by a | 10178 // for details. All rights reserved. Use of this source code is governed by a |
| 10079 // BSD-style license that can be found in the LICENSE file. | 10179 // BSD-style license that can be found in the LICENSE file. |
| 10080 | 10180 |
| 10081 | 10181 |
| 10082 /// @domName IDBCursorWithValue | 10182 /// @domName IDBCursorWithValue |
| 10083 class IDBCursorWithValue extends IDBCursor native "*IDBCursorWithValue" { | 10183 class IDBCursorWithValue extends IDBCursor native "*IDBCursorWithValue" { |
| 10084 | 10184 |
| 10085 /** @domName IDBCursorWithValue.value */ | 10185 /** @domName IDBCursorWithValue.value */ |
| 10086 @_annotation_Creates_SerializedScriptValue @_annotation_Returns_SerializedScri
ptValue | 10186 @annotation_Creates_SerializedScriptValue @annotation_Returns_SerializedScript
Value |
| 10087 final Object value; | 10187 final Object value; |
| 10088 } | 10188 } |
| 10089 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10189 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 10090 // for details. All rights reserved. Use of this source code is governed by a | 10190 // for details. All rights reserved. Use of this source code is governed by a |
| 10091 // BSD-style license that can be found in the LICENSE file. | 10191 // BSD-style license that can be found in the LICENSE file. |
| 10092 | 10192 |
| 10093 | 10193 |
| 10094 class IDBDatabase extends EventTarget native "*IDBDatabase" { | 10194 class IDBDatabase extends EventTarget native "*IDBDatabase" { |
| 10095 | 10195 |
| 10096 IDBTransaction transaction(storeName_OR_storeNames, String mode) { | 10196 IDBTransaction transaction(storeName_OR_storeNames, String mode) { |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10152 | 10252 |
| 10153 /** @domName IDBDatabase.addEventListener */ | 10253 /** @domName IDBDatabase.addEventListener */ |
| 10154 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; | 10254 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; |
| 10155 | 10255 |
| 10156 /** @domName IDBDatabase.close */ | 10256 /** @domName IDBDatabase.close */ |
| 10157 void close() native; | 10257 void close() native; |
| 10158 | 10258 |
| 10159 /** @domName IDBDatabase.createObjectStore */ | 10259 /** @domName IDBDatabase.createObjectStore */ |
| 10160 IDBObjectStore createObjectStore(String name, [Map options]) { | 10260 IDBObjectStore createObjectStore(String name, [Map options]) { |
| 10161 if (?options) { | 10261 if (?options) { |
| 10162 var options_1 = _convertDartToNative_Dictionary(options); | 10262 var options_1 = convertDartToNative_Dictionary(options); |
| 10163 return _createObjectStore_1(name, options_1); | 10263 return _createObjectStore_1(name, options_1); |
| 10164 } | 10264 } |
| 10165 return _createObjectStore_2(name); | 10265 return _createObjectStore_2(name); |
| 10166 } | 10266 } |
| 10167 IDBObjectStore _createObjectStore_1(name, options) native "createObjectStore"; | 10267 IDBObjectStore _createObjectStore_1(name, options) native "createObjectStore"; |
| 10168 IDBObjectStore _createObjectStore_2(name) native "createObjectStore"; | 10268 IDBObjectStore _createObjectStore_2(name) native "createObjectStore"; |
| 10169 | 10269 |
| 10170 /** @domName IDBDatabase.deleteObjectStore */ | 10270 /** @domName IDBDatabase.deleteObjectStore */ |
| 10171 void deleteObjectStore(String name) native; | 10271 void deleteObjectStore(String name) native; |
| 10172 | 10272 |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10310 IDBRequest get(key) { | 10410 IDBRequest get(key) { |
| 10311 if ((?key && (key is IDBKeyRange || key == null))) { | 10411 if ((?key && (key is IDBKeyRange || key == null))) { |
| 10312 return _get_1(key); | 10412 return _get_1(key); |
| 10313 } | 10413 } |
| 10314 if (?key) { | 10414 if (?key) { |
| 10315 var key_1 = _convertDartToNative_IDBKey(key); | 10415 var key_1 = _convertDartToNative_IDBKey(key); |
| 10316 return _get_2(key_1); | 10416 return _get_2(key_1); |
| 10317 } | 10417 } |
| 10318 throw new ArgumentError("Incorrect number or type of arguments"); | 10418 throw new ArgumentError("Incorrect number or type of arguments"); |
| 10319 } | 10419 } |
| 10320 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_SerializedS
criptValue | 10420 @Returns('IDBRequest') @Creates('IDBRequest') @annotation_Creates_SerializedSc
riptValue |
| 10321 IDBRequest _get_1(IDBKeyRange key) native "get"; | 10421 IDBRequest _get_1(IDBKeyRange key) native "get"; |
| 10322 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_SerializedS
criptValue | 10422 @Returns('IDBRequest') @Creates('IDBRequest') @annotation_Creates_SerializedSc
riptValue |
| 10323 IDBRequest _get_2(key) native "get"; | 10423 IDBRequest _get_2(key) native "get"; |
| 10324 | 10424 |
| 10325 /** @domName IDBIndex.getKey */ | 10425 /** @domName IDBIndex.getKey */ |
| 10326 IDBRequest getKey(key) { | 10426 IDBRequest getKey(key) { |
| 10327 if ((?key && (key is IDBKeyRange || key == null))) { | 10427 if ((?key && (key is IDBKeyRange || key == null))) { |
| 10328 return _getKey_1(key); | 10428 return _getKey_1(key); |
| 10329 } | 10429 } |
| 10330 if (?key) { | 10430 if (?key) { |
| 10331 var key_1 = _convertDartToNative_IDBKey(key); | 10431 var key_1 = _convertDartToNative_IDBKey(key); |
| 10332 return _getKey_2(key_1); | 10432 return _getKey_2(key_1); |
| 10333 } | 10433 } |
| 10334 throw new ArgumentError("Incorrect number or type of arguments"); | 10434 throw new ArgumentError("Incorrect number or type of arguments"); |
| 10335 } | 10435 } |
| 10336 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_SerializedS
criptValue @Creates('IDBObjectStore') | 10436 @Returns('IDBRequest') @Creates('IDBRequest') @annotation_Creates_SerializedSc
riptValue @Creates('IDBObjectStore') |
| 10337 IDBRequest _getKey_1(IDBKeyRange key) native "getKey"; | 10437 IDBRequest _getKey_1(IDBKeyRange key) native "getKey"; |
| 10338 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_SerializedS
criptValue @Creates('IDBObjectStore') | 10438 @Returns('IDBRequest') @Creates('IDBRequest') @annotation_Creates_SerializedSc
riptValue @Creates('IDBObjectStore') |
| 10339 IDBRequest _getKey_2(key) native "getKey"; | 10439 IDBRequest _getKey_2(key) native "getKey"; |
| 10340 | 10440 |
| 10341 /** @domName IDBIndex.openCursor */ | 10441 /** @domName IDBIndex.openCursor */ |
| 10342 IDBRequest openCursor([key_OR_range, String direction]) { | 10442 IDBRequest openCursor([key_OR_range, String direction]) { |
| 10343 if (!?key_OR_range && | 10443 if (!?key_OR_range && |
| 10344 !?direction) { | 10444 !?direction) { |
| 10345 return _openCursor_1(); | 10445 return _openCursor_1(); |
| 10346 } | 10446 } |
| 10347 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null))
&& | 10447 if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null))
&& |
| 10348 !?direction) { | 10448 !?direction) { |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10534 | 10634 |
| 10535 /** @domName IDBObjectStore.name */ | 10635 /** @domName IDBObjectStore.name */ |
| 10536 final String name; | 10636 final String name; |
| 10537 | 10637 |
| 10538 /** @domName IDBObjectStore.transaction */ | 10638 /** @domName IDBObjectStore.transaction */ |
| 10539 final IDBTransaction transaction; | 10639 final IDBTransaction transaction; |
| 10540 | 10640 |
| 10541 /** @domName IDBObjectStore.add */ | 10641 /** @domName IDBObjectStore.add */ |
| 10542 IDBRequest add(/*any*/ value, [/*IDBKey*/ key]) { | 10642 IDBRequest add(/*any*/ value, [/*IDBKey*/ key]) { |
| 10543 if (?key) { | 10643 if (?key) { |
| 10544 var value_1 = _convertDartToNative_SerializedScriptValue(value); | 10644 var value_1 = convertDartToNative_SerializedScriptValue(value); |
| 10545 var key_2 = _convertDartToNative_IDBKey(key); | 10645 var key_2 = _convertDartToNative_IDBKey(key); |
| 10546 return _add_1(value_1, key_2); | 10646 return _add_1(value_1, key_2); |
| 10547 } | 10647 } |
| 10548 var value_3 = _convertDartToNative_SerializedScriptValue(value); | 10648 var value_3 = convertDartToNative_SerializedScriptValue(value); |
| 10549 return _add_2(value_3); | 10649 return _add_2(value_3); |
| 10550 } | 10650 } |
| 10551 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_IDBKey | 10651 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_IDBKey |
| 10552 IDBRequest _add_1(value, key) native "add"; | 10652 IDBRequest _add_1(value, key) native "add"; |
| 10553 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_IDBKey | 10653 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_IDBKey |
| 10554 IDBRequest _add_2(value) native "add"; | 10654 IDBRequest _add_2(value) native "add"; |
| 10555 | 10655 |
| 10556 /** @domName IDBObjectStore.clear */ | 10656 /** @domName IDBObjectStore.clear */ |
| 10557 IDBRequest clear() native; | 10657 IDBRequest clear() native; |
| 10558 | 10658 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 10571 throw new ArgumentError("Incorrect number or type of arguments"); | 10671 throw new ArgumentError("Incorrect number or type of arguments"); |
| 10572 } | 10672 } |
| 10573 IDBRequest _count_1() native "count"; | 10673 IDBRequest _count_1() native "count"; |
| 10574 IDBRequest _count_2(IDBKeyRange range) native "count"; | 10674 IDBRequest _count_2(IDBKeyRange range) native "count"; |
| 10575 IDBRequest _count_3(key) native "count"; | 10675 IDBRequest _count_3(key) native "count"; |
| 10576 | 10676 |
| 10577 /** @domName IDBObjectStore.createIndex */ | 10677 /** @domName IDBObjectStore.createIndex */ |
| 10578 IDBIndex createIndex(String name, keyPath, [Map options]) { | 10678 IDBIndex createIndex(String name, keyPath, [Map options]) { |
| 10579 if ((?keyPath && (keyPath is List<String> || keyPath == null)) && | 10679 if ((?keyPath && (keyPath is List<String> || keyPath == null)) && |
| 10580 !?options) { | 10680 !?options) { |
| 10581 List keyPath_1 = _convertDartToNative_StringArray(keyPath); | 10681 List keyPath_1 = convertDartToNative_StringArray(keyPath); |
| 10582 return _createIndex_1(name, keyPath_1); | 10682 return _createIndex_1(name, keyPath_1); |
| 10583 } | 10683 } |
| 10584 if ((?keyPath && (keyPath is List<String> || keyPath == null))) { | 10684 if ((?keyPath && (keyPath is List<String> || keyPath == null))) { |
| 10585 List keyPath_2 = _convertDartToNative_StringArray(keyPath); | 10685 List keyPath_2 = convertDartToNative_StringArray(keyPath); |
| 10586 var options_3 = _convertDartToNative_Dictionary(options); | 10686 var options_3 = convertDartToNative_Dictionary(options); |
| 10587 return _createIndex_2(name, keyPath_2, options_3); | 10687 return _createIndex_2(name, keyPath_2, options_3); |
| 10588 } | 10688 } |
| 10589 if ((?keyPath && (keyPath is String || keyPath == null)) && | 10689 if ((?keyPath && (keyPath is String || keyPath == null)) && |
| 10590 !?options) { | 10690 !?options) { |
| 10591 return _createIndex_3(name, keyPath); | 10691 return _createIndex_3(name, keyPath); |
| 10592 } | 10692 } |
| 10593 if ((?keyPath && (keyPath is String || keyPath == null))) { | 10693 if ((?keyPath && (keyPath is String || keyPath == null))) { |
| 10594 var options_4 = _convertDartToNative_Dictionary(options); | 10694 var options_4 = convertDartToNative_Dictionary(options); |
| 10595 return _createIndex_4(name, keyPath, options_4); | 10695 return _createIndex_4(name, keyPath, options_4); |
| 10596 } | 10696 } |
| 10597 throw new ArgumentError("Incorrect number or type of arguments"); | 10697 throw new ArgumentError("Incorrect number or type of arguments"); |
| 10598 } | 10698 } |
| 10599 IDBIndex _createIndex_1(name, List keyPath) native "createIndex"; | 10699 IDBIndex _createIndex_1(name, List keyPath) native "createIndex"; |
| 10600 IDBIndex _createIndex_2(name, List keyPath, options) native "createIndex"; | 10700 IDBIndex _createIndex_2(name, List keyPath, options) native "createIndex"; |
| 10601 IDBIndex _createIndex_3(name, String keyPath) native "createIndex"; | 10701 IDBIndex _createIndex_3(name, String keyPath) native "createIndex"; |
| 10602 IDBIndex _createIndex_4(name, String keyPath, options) native "createIndex"; | 10702 IDBIndex _createIndex_4(name, String keyPath, options) native "createIndex"; |
| 10603 | 10703 |
| 10604 /** @domName IDBObjectStore.delete */ | 10704 /** @domName IDBObjectStore.delete */ |
| (...skipping 17 matching lines...) Expand all Loading... |
| 10622 IDBRequest getObject(key) { | 10722 IDBRequest getObject(key) { |
| 10623 if ((?key && (key is IDBKeyRange || key == null))) { | 10723 if ((?key && (key is IDBKeyRange || key == null))) { |
| 10624 return _getObject_1(key); | 10724 return _getObject_1(key); |
| 10625 } | 10725 } |
| 10626 if (?key) { | 10726 if (?key) { |
| 10627 var key_1 = _convertDartToNative_IDBKey(key); | 10727 var key_1 = _convertDartToNative_IDBKey(key); |
| 10628 return _getObject_2(key_1); | 10728 return _getObject_2(key_1); |
| 10629 } | 10729 } |
| 10630 throw new ArgumentError("Incorrect number or type of arguments"); | 10730 throw new ArgumentError("Incorrect number or type of arguments"); |
| 10631 } | 10731 } |
| 10632 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_SerializedS
criptValue | 10732 @Returns('IDBRequest') @Creates('IDBRequest') @annotation_Creates_SerializedSc
riptValue |
| 10633 IDBRequest _getObject_1(IDBKeyRange key) native "get"; | 10733 IDBRequest _getObject_1(IDBKeyRange key) native "get"; |
| 10634 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_SerializedS
criptValue | 10734 @Returns('IDBRequest') @Creates('IDBRequest') @annotation_Creates_SerializedSc
riptValue |
| 10635 IDBRequest _getObject_2(key) native "get"; | 10735 IDBRequest _getObject_2(key) native "get"; |
| 10636 | 10736 |
| 10637 /** @domName IDBObjectStore.index */ | 10737 /** @domName IDBObjectStore.index */ |
| 10638 IDBIndex index(String name) native; | 10738 IDBIndex index(String name) native; |
| 10639 | 10739 |
| 10640 /** @domName IDBObjectStore.openCursor */ | 10740 /** @domName IDBObjectStore.openCursor */ |
| 10641 IDBRequest openCursor([key_OR_range, String direction]) { | 10741 IDBRequest openCursor([key_OR_range, String direction]) { |
| 10642 if (!?key_OR_range && | 10742 if (!?key_OR_range && |
| 10643 !?direction) { | 10743 !?direction) { |
| 10644 return _openCursor_1(); | 10744 return _openCursor_1(); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 10668 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') | 10768 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') |
| 10669 IDBRequest _openCursor_3(IDBKeyRange range, direction) native "openCursor"; | 10769 IDBRequest _openCursor_3(IDBKeyRange range, direction) native "openCursor"; |
| 10670 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') | 10770 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') |
| 10671 IDBRequest _openCursor_4(key) native "openCursor"; | 10771 IDBRequest _openCursor_4(key) native "openCursor"; |
| 10672 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') | 10772 @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') |
| 10673 IDBRequest _openCursor_5(key, direction) native "openCursor"; | 10773 IDBRequest _openCursor_5(key, direction) native "openCursor"; |
| 10674 | 10774 |
| 10675 /** @domName IDBObjectStore.put */ | 10775 /** @domName IDBObjectStore.put */ |
| 10676 IDBRequest put(/*any*/ value, [/*IDBKey*/ key]) { | 10776 IDBRequest put(/*any*/ value, [/*IDBKey*/ key]) { |
| 10677 if (?key) { | 10777 if (?key) { |
| 10678 var value_1 = _convertDartToNative_SerializedScriptValue(value); | 10778 var value_1 = convertDartToNative_SerializedScriptValue(value); |
| 10679 var key_2 = _convertDartToNative_IDBKey(key); | 10779 var key_2 = _convertDartToNative_IDBKey(key); |
| 10680 return _put_1(value_1, key_2); | 10780 return _put_1(value_1, key_2); |
| 10681 } | 10781 } |
| 10682 var value_3 = _convertDartToNative_SerializedScriptValue(value); | 10782 var value_3 = convertDartToNative_SerializedScriptValue(value); |
| 10683 return _put_2(value_3); | 10783 return _put_2(value_3); |
| 10684 } | 10784 } |
| 10685 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_IDBKey | 10785 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_IDBKey |
| 10686 IDBRequest _put_1(value, key) native "put"; | 10786 IDBRequest _put_1(value, key) native "put"; |
| 10687 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_IDBKey | 10787 @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_IDBKey |
| 10688 IDBRequest _put_2(value) native "put"; | 10788 IDBRequest _put_2(value) native "put"; |
| 10689 } | 10789 } |
| 10690 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10790 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 10691 // for details. All rights reserved. Use of this source code is governed by a | 10791 // for details. All rights reserved. Use of this source code is governed by a |
| 10692 // BSD-style license that can be found in the LICENSE file. | 10792 // BSD-style license that can be found in the LICENSE file. |
| (...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11070 /** @domName HTMLInputElement.defaultValue */ | 11170 /** @domName HTMLInputElement.defaultValue */ |
| 11071 String defaultValue; | 11171 String defaultValue; |
| 11072 | 11172 |
| 11073 /** @domName HTMLInputElement.dirName */ | 11173 /** @domName HTMLInputElement.dirName */ |
| 11074 String dirName; | 11174 String dirName; |
| 11075 | 11175 |
| 11076 /** @domName HTMLInputElement.disabled */ | 11176 /** @domName HTMLInputElement.disabled */ |
| 11077 bool disabled; | 11177 bool disabled; |
| 11078 | 11178 |
| 11079 /** @domName HTMLInputElement.files */ | 11179 /** @domName HTMLInputElement.files */ |
| 11080 List<File> files; | 11180 FileList files; |
| 11081 | 11181 |
| 11082 /** @domName HTMLInputElement.form */ | 11182 /** @domName HTMLInputElement.form */ |
| 11083 final FormElement form; | 11183 final FormElement form; |
| 11084 | 11184 |
| 11085 /** @domName HTMLInputElement.formAction */ | 11185 /** @domName HTMLInputElement.formAction */ |
| 11086 String formAction; | 11186 String formAction; |
| 11087 | 11187 |
| 11088 /** @domName HTMLInputElement.formEnctype */ | 11188 /** @domName HTMLInputElement.formEnctype */ |
| 11089 String formEnctype; | 11189 String formEnctype; |
| 11090 | 11190 |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11266 } | 11366 } |
| 11267 | 11367 |
| 11268 void addLast(int value) { | 11368 void addLast(int value) { |
| 11269 throw new UnsupportedError("Cannot add to immutable List."); | 11369 throw new UnsupportedError("Cannot add to immutable List."); |
| 11270 } | 11370 } |
| 11271 | 11371 |
| 11272 void addAll(Collection<int> collection) { | 11372 void addAll(Collection<int> collection) { |
| 11273 throw new UnsupportedError("Cannot add to immutable List."); | 11373 throw new UnsupportedError("Cannot add to immutable List."); |
| 11274 } | 11374 } |
| 11275 | 11375 |
| 11276 bool contains(int element) => _Collections.contains(this, element); | 11376 bool contains(int element) => Collections.contains(this, element); |
| 11277 | 11377 |
| 11278 void forEach(void f(int element)) => _Collections.forEach(this, f); | 11378 void forEach(void f(int element)) => Collections.forEach(this, f); |
| 11279 | 11379 |
| 11280 Collection map(f(int element)) => _Collections.map(this, [], f); | 11380 Collection map(f(int element)) => Collections.map(this, [], f); |
| 11281 | 11381 |
| 11282 Collection<int> filter(bool f(int element)) => | 11382 Collection<int> filter(bool f(int element)) => |
| 11283 _Collections.filter(this, <int>[], f); | 11383 Collections.filter(this, <int>[], f); |
| 11284 | 11384 |
| 11285 bool every(bool f(int element)) => _Collections.every(this, f); | 11385 bool every(bool f(int element)) => Collections.every(this, f); |
| 11286 | 11386 |
| 11287 bool some(bool f(int element)) => _Collections.some(this, f); | 11387 bool some(bool f(int element)) => Collections.some(this, f); |
| 11288 | 11388 |
| 11289 bool get isEmpty => this.length == 0; | 11389 bool get isEmpty => this.length == 0; |
| 11290 | 11390 |
| 11291 // From List<int>: | 11391 // From List<int>: |
| 11292 | 11392 |
| 11293 void sort([Comparator<int> compare = Comparable.compare]) { | 11393 void sort([Comparator<int> compare = Comparable.compare]) { |
| 11294 throw new UnsupportedError("Cannot sort immutable List."); | 11394 throw new UnsupportedError("Cannot sort immutable List."); |
| 11295 } | 11395 } |
| 11296 | 11396 |
| 11297 int indexOf(int element, [int start = 0]) => | 11397 int indexOf(int element, [int start = 0]) => |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11376 } | 11476 } |
| 11377 | 11477 |
| 11378 void addLast(int value) { | 11478 void addLast(int value) { |
| 11379 throw new UnsupportedError("Cannot add to immutable List."); | 11479 throw new UnsupportedError("Cannot add to immutable List."); |
| 11380 } | 11480 } |
| 11381 | 11481 |
| 11382 void addAll(Collection<int> collection) { | 11482 void addAll(Collection<int> collection) { |
| 11383 throw new UnsupportedError("Cannot add to immutable List."); | 11483 throw new UnsupportedError("Cannot add to immutable List."); |
| 11384 } | 11484 } |
| 11385 | 11485 |
| 11386 bool contains(int element) => _Collections.contains(this, element); | 11486 bool contains(int element) => Collections.contains(this, element); |
| 11387 | 11487 |
| 11388 void forEach(void f(int element)) => _Collections.forEach(this, f); | 11488 void forEach(void f(int element)) => Collections.forEach(this, f); |
| 11389 | 11489 |
| 11390 Collection map(f(int element)) => _Collections.map(this, [], f); | 11490 Collection map(f(int element)) => Collections.map(this, [], f); |
| 11391 | 11491 |
| 11392 Collection<int> filter(bool f(int element)) => | 11492 Collection<int> filter(bool f(int element)) => |
| 11393 _Collections.filter(this, <int>[], f); | 11493 Collections.filter(this, <int>[], f); |
| 11394 | 11494 |
| 11395 bool every(bool f(int element)) => _Collections.every(this, f); | 11495 bool every(bool f(int element)) => Collections.every(this, f); |
| 11396 | 11496 |
| 11397 bool some(bool f(int element)) => _Collections.some(this, f); | 11497 bool some(bool f(int element)) => Collections.some(this, f); |
| 11398 | 11498 |
| 11399 bool get isEmpty => this.length == 0; | 11499 bool get isEmpty => this.length == 0; |
| 11400 | 11500 |
| 11401 // From List<int>: | 11501 // From List<int>: |
| 11402 | 11502 |
| 11403 void sort([Comparator<int> compare = Comparable.compare]) { | 11503 void sort([Comparator<int> compare = Comparable.compare]) { |
| 11404 throw new UnsupportedError("Cannot sort immutable List."); | 11504 throw new UnsupportedError("Cannot sort immutable List."); |
| 11405 } | 11505 } |
| 11406 | 11506 |
| 11407 int indexOf(int element, [int start = 0]) => | 11507 int indexOf(int element, [int start = 0]) => |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11486 } | 11586 } |
| 11487 | 11587 |
| 11488 void addLast(int value) { | 11588 void addLast(int value) { |
| 11489 throw new UnsupportedError("Cannot add to immutable List."); | 11589 throw new UnsupportedError("Cannot add to immutable List."); |
| 11490 } | 11590 } |
| 11491 | 11591 |
| 11492 void addAll(Collection<int> collection) { | 11592 void addAll(Collection<int> collection) { |
| 11493 throw new UnsupportedError("Cannot add to immutable List."); | 11593 throw new UnsupportedError("Cannot add to immutable List."); |
| 11494 } | 11594 } |
| 11495 | 11595 |
| 11496 bool contains(int element) => _Collections.contains(this, element); | 11596 bool contains(int element) => Collections.contains(this, element); |
| 11497 | 11597 |
| 11498 void forEach(void f(int element)) => _Collections.forEach(this, f); | 11598 void forEach(void f(int element)) => Collections.forEach(this, f); |
| 11499 | 11599 |
| 11500 Collection map(f(int element)) => _Collections.map(this, [], f); | 11600 Collection map(f(int element)) => Collections.map(this, [], f); |
| 11501 | 11601 |
| 11502 Collection<int> filter(bool f(int element)) => | 11602 Collection<int> filter(bool f(int element)) => |
| 11503 _Collections.filter(this, <int>[], f); | 11603 Collections.filter(this, <int>[], f); |
| 11504 | 11604 |
| 11505 bool every(bool f(int element)) => _Collections.every(this, f); | 11605 bool every(bool f(int element)) => Collections.every(this, f); |
| 11506 | 11606 |
| 11507 bool some(bool f(int element)) => _Collections.some(this, f); | 11607 bool some(bool f(int element)) => Collections.some(this, f); |
| 11508 | 11608 |
| 11509 bool get isEmpty => this.length == 0; | 11609 bool get isEmpty => this.length == 0; |
| 11510 | 11610 |
| 11511 // From List<int>: | 11611 // From List<int>: |
| 11512 | 11612 |
| 11513 void sort([Comparator<int> compare = Comparable.compare]) { | 11613 void sort([Comparator<int> compare = Comparable.compare]) { |
| 11514 throw new UnsupportedError("Cannot sort immutable List."); | 11614 throw new UnsupportedError("Cannot sort immutable List."); |
| 11515 } | 11615 } |
| 11516 | 11616 |
| 11517 int indexOf(int element, [int start = 0]) => | 11617 int indexOf(int element, [int start = 0]) => |
| (...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12223 /** @domName Window.moveTo */ | 12323 /** @domName Window.moveTo */ |
| 12224 void moveTo(num x, num y) native; | 12324 void moveTo(num x, num y) native; |
| 12225 | 12325 |
| 12226 /** @domName DOMWindow.openDatabase */ | 12326 /** @domName DOMWindow.openDatabase */ |
| 12227 Database openDatabase(String name, String version, String displayName, int est
imatedSize, [DatabaseCallback creationCallback]) native; | 12327 Database openDatabase(String name, String version, String displayName, int est
imatedSize, [DatabaseCallback creationCallback]) native; |
| 12228 | 12328 |
| 12229 /** @domName Window.postMessage */ | 12329 /** @domName Window.postMessage */ |
| 12230 void postMessage(/*SerializedScriptValue*/ message, String targetOrigin, [List
messagePorts]) { | 12330 void postMessage(/*SerializedScriptValue*/ message, String targetOrigin, [List
messagePorts]) { |
| 12231 if (?message && | 12331 if (?message && |
| 12232 !?messagePorts) { | 12332 !?messagePorts) { |
| 12233 var message_1 = _convertDartToNative_SerializedScriptValue(message); | 12333 var message_1 = convertDartToNative_SerializedScriptValue(message); |
| 12234 _postMessage_1(message_1, targetOrigin); | 12334 _postMessage_1(message_1, targetOrigin); |
| 12235 return; | 12335 return; |
| 12236 } | 12336 } |
| 12237 if (?message) { | 12337 if (?message) { |
| 12238 var message_2 = _convertDartToNative_SerializedScriptValue(message); | 12338 var message_2 = convertDartToNative_SerializedScriptValue(message); |
| 12239 _postMessage_2(message_2, targetOrigin, messagePorts); | 12339 _postMessage_2(message_2, targetOrigin, messagePorts); |
| 12240 return; | 12340 return; |
| 12241 } | 12341 } |
| 12242 throw new ArgumentError("Incorrect number or type of arguments"); | 12342 throw new ArgumentError("Incorrect number or type of arguments"); |
| 12243 } | 12343 } |
| 12244 void _postMessage_1(message, targetOrigin) native "postMessage"; | 12344 void _postMessage_1(message, targetOrigin) native "postMessage"; |
| 12245 void _postMessage_2(message, targetOrigin, List messagePorts) native "postMess
age"; | 12345 void _postMessage_2(message, targetOrigin, List messagePorts) native "postMess
age"; |
| 12246 | 12346 |
| 12247 /** @domName Window.print */ | 12347 /** @domName Window.print */ |
| 12248 void print() native; | 12348 void print() native; |
| (...skipping 918 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13167 } | 13267 } |
| 13168 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13268 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 13169 // for details. All rights reserved. Use of this source code is governed by a | 13269 // for details. All rights reserved. Use of this source code is governed by a |
| 13170 // BSD-style license that can be found in the LICENSE file. | 13270 // BSD-style license that can be found in the LICENSE file. |
| 13171 | 13271 |
| 13172 | 13272 |
| 13173 /// @domName MessageEvent | 13273 /// @domName MessageEvent |
| 13174 class MessageEvent extends Event native "*MessageEvent" { | 13274 class MessageEvent extends Event native "*MessageEvent" { |
| 13175 | 13275 |
| 13176 /** @domName MessageEvent.data */ | 13276 /** @domName MessageEvent.data */ |
| 13177 dynamic get data => _convertNativeToDart_SerializedScriptValue(this._data); | 13277 dynamic get data => convertNativeToDart_SerializedScriptValue(this._data); |
| 13178 dynamic get _data => JS("dynamic", "#.data", this); | 13278 dynamic get _data => JS("dynamic", "#.data", this); |
| 13179 | 13279 |
| 13180 /** @domName MessageEvent.lastEventId */ | 13280 /** @domName MessageEvent.lastEventId */ |
| 13181 final String lastEventId; | 13281 final String lastEventId; |
| 13182 | 13282 |
| 13183 /** @domName MessageEvent.origin */ | 13283 /** @domName MessageEvent.origin */ |
| 13184 final String origin; | 13284 final String origin; |
| 13185 | 13285 |
| 13186 /** @domName MessageEvent.ports */ | 13286 /** @domName MessageEvent.ports */ |
| 13187 final List ports; | 13287 final List ports; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 13215 | 13315 |
| 13216 /** @domName MessagePort.close */ | 13316 /** @domName MessagePort.close */ |
| 13217 void close() native; | 13317 void close() native; |
| 13218 | 13318 |
| 13219 /** @domName MessagePort.dispatchEvent */ | 13319 /** @domName MessagePort.dispatchEvent */ |
| 13220 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; | 13320 bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; |
| 13221 | 13321 |
| 13222 /** @domName MessagePort.postMessage */ | 13322 /** @domName MessagePort.postMessage */ |
| 13223 void postMessage(/*any*/ message, [List messagePorts]) { | 13323 void postMessage(/*any*/ message, [List messagePorts]) { |
| 13224 if (?messagePorts) { | 13324 if (?messagePorts) { |
| 13225 var message_1 = _convertDartToNative_SerializedScriptValue(message); | 13325 var message_1 = convertDartToNative_SerializedScriptValue(message); |
| 13226 _postMessage_1(message_1, messagePorts); | 13326 _postMessage_1(message_1, messagePorts); |
| 13227 return; | 13327 return; |
| 13228 } | 13328 } |
| 13229 var message_2 = _convertDartToNative_SerializedScriptValue(message); | 13329 var message_2 = convertDartToNative_SerializedScriptValue(message); |
| 13230 _postMessage_2(message_2); | 13330 _postMessage_2(message_2); |
| 13231 return; | 13331 return; |
| 13232 } | 13332 } |
| 13233 void _postMessage_1(message, List messagePorts) native "postMessage"; | 13333 void _postMessage_1(message, List messagePorts) native "postMessage"; |
| 13234 void _postMessage_2(message) native "postMessage"; | 13334 void _postMessage_2(message) native "postMessage"; |
| 13235 | 13335 |
| 13236 /** @domName MessagePort.removeEventListener */ | 13336 /** @domName MessagePort.removeEventListener */ |
| 13237 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; | 13337 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; |
| 13238 | 13338 |
| 13239 /** @domName MessagePort.start */ | 13339 /** @domName MessagePort.start */ |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13485 | 13585 |
| 13486 class MutationObserver native "*MutationObserver" { | 13586 class MutationObserver native "*MutationObserver" { |
| 13487 | 13587 |
| 13488 factory MutationObserver(MutationCallback callback) => _MutationObserverFactor
yProvider.createMutationObserver(callback); | 13588 factory MutationObserver(MutationCallback callback) => _MutationObserverFactor
yProvider.createMutationObserver(callback); |
| 13489 | 13589 |
| 13490 /** @domName MutationObserver.disconnect */ | 13590 /** @domName MutationObserver.disconnect */ |
| 13491 void disconnect() native; | 13591 void disconnect() native; |
| 13492 | 13592 |
| 13493 /** @domName MutationObserver._observe */ | 13593 /** @domName MutationObserver._observe */ |
| 13494 void _observe(Node target, Map options) { | 13594 void _observe(Node target, Map options) { |
| 13495 var options_1 = _convertDartToNative_Dictionary(options); | 13595 var options_1 = convertDartToNative_Dictionary(options); |
| 13496 __observe_1(target, options_1); | 13596 __observe_1(target, options_1); |
| 13497 return; | 13597 return; |
| 13498 } | 13598 } |
| 13499 void __observe_1(Node target, options) native "observe"; | 13599 void __observe_1(Node target, options) native "observe"; |
| 13500 | 13600 |
| 13501 /** @domName MutationObserver.takeRecords */ | 13601 /** @domName MutationObserver.takeRecords */ |
| 13502 List<MutationRecord> takeRecords() native; | 13602 List<MutationRecord> takeRecords() native; |
| 13503 | 13603 |
| 13504 void observe(Node target, | 13604 void observe(Node target, |
| 13505 {Map options, | 13605 {Map options, |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13632 } | 13732 } |
| 13633 | 13733 |
| 13634 void addLast(Node value) { | 13734 void addLast(Node value) { |
| 13635 throw new UnsupportedError("Cannot add to immutable List."); | 13735 throw new UnsupportedError("Cannot add to immutable List."); |
| 13636 } | 13736 } |
| 13637 | 13737 |
| 13638 void addAll(Collection<Node> collection) { | 13738 void addAll(Collection<Node> collection) { |
| 13639 throw new UnsupportedError("Cannot add to immutable List."); | 13739 throw new UnsupportedError("Cannot add to immutable List."); |
| 13640 } | 13740 } |
| 13641 | 13741 |
| 13642 bool contains(Node element) => _Collections.contains(this, element); | 13742 bool contains(Node element) => Collections.contains(this, element); |
| 13643 | 13743 |
| 13644 void forEach(void f(Node element)) => _Collections.forEach(this, f); | 13744 void forEach(void f(Node element)) => Collections.forEach(this, f); |
| 13645 | 13745 |
| 13646 Collection map(f(Node element)) => _Collections.map(this, [], f); | 13746 Collection map(f(Node element)) => Collections.map(this, [], f); |
| 13647 | 13747 |
| 13648 Collection<Node> filter(bool f(Node element)) => | 13748 Collection<Node> filter(bool f(Node element)) => |
| 13649 _Collections.filter(this, <Node>[], f); | 13749 Collections.filter(this, <Node>[], f); |
| 13650 | 13750 |
| 13651 bool every(bool f(Node element)) => _Collections.every(this, f); | 13751 bool every(bool f(Node element)) => Collections.every(this, f); |
| 13652 | 13752 |
| 13653 bool some(bool f(Node element)) => _Collections.some(this, f); | 13753 bool some(bool f(Node element)) => Collections.some(this, f); |
| 13654 | 13754 |
| 13655 bool get isEmpty => this.length == 0; | 13755 bool get isEmpty => this.length == 0; |
| 13656 | 13756 |
| 13657 // From List<Node>: | 13757 // From List<Node>: |
| 13658 | 13758 |
| 13659 void sort([Comparator<Node> compare = Comparable.compare]) { | 13759 void sort([Comparator<Node> compare = Comparable.compare]) { |
| 13660 throw new UnsupportedError("Cannot sort immutable List."); | 13760 throw new UnsupportedError("Cannot sort immutable List."); |
| 13661 } | 13761 } |
| 13662 | 13762 |
| 13663 int indexOf(Node element, [int start = 0]) => | 13763 int indexOf(Node element, [int start = 0]) => |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13775 | 13875 |
| 13776 /** @domName Navigator.javaEnabled */ | 13876 /** @domName Navigator.javaEnabled */ |
| 13777 bool javaEnabled() native; | 13877 bool javaEnabled() native; |
| 13778 | 13878 |
| 13779 /** @domName Navigator.webkitGetGamepads */ | 13879 /** @domName Navigator.webkitGetGamepads */ |
| 13780 List<Gamepad> webkitGetGamepads() native; | 13880 List<Gamepad> webkitGetGamepads() native; |
| 13781 | 13881 |
| 13782 /** @domName Navigator.webkitGetUserMedia */ | 13882 /** @domName Navigator.webkitGetUserMedia */ |
| 13783 void webkitGetUserMedia(Map options, NavigatorUserMediaSuccessCallback success
Callback, [NavigatorUserMediaErrorCallback errorCallback]) { | 13883 void webkitGetUserMedia(Map options, NavigatorUserMediaSuccessCallback success
Callback, [NavigatorUserMediaErrorCallback errorCallback]) { |
| 13784 if (?errorCallback) { | 13884 if (?errorCallback) { |
| 13785 var options_1 = _convertDartToNative_Dictionary(options); | 13885 var options_1 = convertDartToNative_Dictionary(options); |
| 13786 _webkitGetUserMedia_1(options_1, successCallback, errorCallback); | 13886 _webkitGetUserMedia_1(options_1, successCallback, errorCallback); |
| 13787 return; | 13887 return; |
| 13788 } | 13888 } |
| 13789 var options_2 = _convertDartToNative_Dictionary(options); | 13889 var options_2 = convertDartToNative_Dictionary(options); |
| 13790 _webkitGetUserMedia_2(options_2, successCallback); | 13890 _webkitGetUserMedia_2(options_2, successCallback); |
| 13791 return; | 13891 return; |
| 13792 } | 13892 } |
| 13793 void _webkitGetUserMedia_1(options, NavigatorUserMediaSuccessCallback successC
allback, NavigatorUserMediaErrorCallback errorCallback) native "webkitGetUserMed
ia"; | 13893 void _webkitGetUserMedia_1(options, NavigatorUserMediaSuccessCallback successC
allback, NavigatorUserMediaErrorCallback errorCallback) native "webkitGetUserMed
ia"; |
| 13794 void _webkitGetUserMedia_2(options, NavigatorUserMediaSuccessCallback successC
allback) native "webkitGetUserMedia"; | 13894 void _webkitGetUserMedia_2(options, NavigatorUserMediaSuccessCallback successC
allback) native "webkitGetUserMedia"; |
| 13795 } | 13895 } |
| 13796 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13896 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 13797 // for details. All rights reserved. Use of this source code is governed by a | 13897 // for details. All rights reserved. Use of this source code is governed by a |
| 13798 // BSD-style license that can be found in the LICENSE file. | 13898 // BSD-style license that can be found in the LICENSE file. |
| 13799 | 13899 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13869 } | 13969 } |
| 13870 | 13970 |
| 13871 void operator []=(int index, Node value) { | 13971 void operator []=(int index, Node value) { |
| 13872 _this.$dom_replaceChild(value, this[index]); | 13972 _this.$dom_replaceChild(value, this[index]); |
| 13873 } | 13973 } |
| 13874 | 13974 |
| 13875 Iterator<Node> iterator() => _this.$dom_childNodes.iterator(); | 13975 Iterator<Node> iterator() => _this.$dom_childNodes.iterator(); |
| 13876 | 13976 |
| 13877 // TODO(jacobr): We can implement these methods much more efficiently by | 13977 // TODO(jacobr): We can implement these methods much more efficiently by |
| 13878 // looking up the nodeList only once instead of once per iteration. | 13978 // looking up the nodeList only once instead of once per iteration. |
| 13879 bool contains(Node element) => _Collections.contains(this, element); | 13979 bool contains(Node element) => Collections.contains(this, element); |
| 13880 | 13980 |
| 13881 void forEach(void f(Node element)) => _Collections.forEach(this, f); | 13981 void forEach(void f(Node element)) => Collections.forEach(this, f); |
| 13882 | 13982 |
| 13883 Collection map(f(Node element)) => _Collections.map(this, [], f); | 13983 Collection map(f(Node element)) => Collections.map(this, [], f); |
| 13884 | 13984 |
| 13885 Collection<Node> filter(bool f(Node element)) => | 13985 Collection<Node> filter(bool f(Node element)) => |
| 13886 _Collections.filter(this, <Node>[], f); | 13986 Collections.filter(this, <Node>[], f); |
| 13887 | 13987 |
| 13888 bool every(bool f(Node element)) => _Collections.every(this, f); | 13988 bool every(bool f(Node element)) => Collections.every(this, f); |
| 13889 | 13989 |
| 13890 bool some(bool f(Node element)) => _Collections.some(this, f); | 13990 bool some(bool f(Node element)) => Collections.some(this, f); |
| 13891 | 13991 |
| 13892 bool get isEmpty => this.length == 0; | 13992 bool get isEmpty => this.length == 0; |
| 13893 | 13993 |
| 13894 // From List<Node>: | 13994 // From List<Node>: |
| 13895 | 13995 |
| 13896 // TODO(jacobr): this could be implemented for child node lists. | 13996 // TODO(jacobr): this could be implemented for child node lists. |
| 13897 // The exception we throw here is misleading. | 13997 // The exception we throw here is misleading. |
| 13898 void sort([Comparator<Node> compare = Comparable.compare]) { | 13998 void sort([Comparator<Node> compare = Comparable.compare]) { |
| 13899 throw new UnsupportedError("Cannot sort immutable List."); | 13999 throw new UnsupportedError("Cannot sort immutable List."); |
| 13900 } | 14000 } |
| (...skipping 876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14777 | 14877 |
| 14778 /** @domName PeerConnection00.remoteStreams */ | 14878 /** @domName PeerConnection00.remoteStreams */ |
| 14779 final List<MediaStream> remoteStreams; | 14879 final List<MediaStream> remoteStreams; |
| 14780 | 14880 |
| 14781 /** @domName PeerConnection00.addEventListener */ | 14881 /** @domName PeerConnection00.addEventListener */ |
| 14782 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; | 14882 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; |
| 14783 | 14883 |
| 14784 /** @domName PeerConnection00.addStream */ | 14884 /** @domName PeerConnection00.addStream */ |
| 14785 void addStream(MediaStream stream, [Map mediaStreamHints]) { | 14885 void addStream(MediaStream stream, [Map mediaStreamHints]) { |
| 14786 if (?mediaStreamHints) { | 14886 if (?mediaStreamHints) { |
| 14787 var mediaStreamHints_1 = _convertDartToNative_Dictionary(mediaStreamHints)
; | 14887 var mediaStreamHints_1 = convertDartToNative_Dictionary(mediaStreamHints); |
| 14788 _addStream_1(stream, mediaStreamHints_1); | 14888 _addStream_1(stream, mediaStreamHints_1); |
| 14789 return; | 14889 return; |
| 14790 } | 14890 } |
| 14791 _addStream_2(stream); | 14891 _addStream_2(stream); |
| 14792 return; | 14892 return; |
| 14793 } | 14893 } |
| 14794 void _addStream_1(MediaStream stream, mediaStreamHints) native "addStream"; | 14894 void _addStream_1(MediaStream stream, mediaStreamHints) native "addStream"; |
| 14795 void _addStream_2(MediaStream stream) native "addStream"; | 14895 void _addStream_2(MediaStream stream) native "addStream"; |
| 14796 | 14896 |
| 14797 /** @domName PeerConnection00.close */ | 14897 /** @domName PeerConnection00.close */ |
| 14798 void close() native; | 14898 void close() native; |
| 14799 | 14899 |
| 14800 /** @domName PeerConnection00.createAnswer */ | 14900 /** @domName PeerConnection00.createAnswer */ |
| 14801 SessionDescription createAnswer(String offer, [Map mediaHints]) { | 14901 SessionDescription createAnswer(String offer, [Map mediaHints]) { |
| 14802 if (?mediaHints) { | 14902 if (?mediaHints) { |
| 14803 var mediaHints_1 = _convertDartToNative_Dictionary(mediaHints); | 14903 var mediaHints_1 = convertDartToNative_Dictionary(mediaHints); |
| 14804 return _createAnswer_1(offer, mediaHints_1); | 14904 return _createAnswer_1(offer, mediaHints_1); |
| 14805 } | 14905 } |
| 14806 return _createAnswer_2(offer); | 14906 return _createAnswer_2(offer); |
| 14807 } | 14907 } |
| 14808 SessionDescription _createAnswer_1(offer, mediaHints) native "createAnswer"; | 14908 SessionDescription _createAnswer_1(offer, mediaHints) native "createAnswer"; |
| 14809 SessionDescription _createAnswer_2(offer) native "createAnswer"; | 14909 SessionDescription _createAnswer_2(offer) native "createAnswer"; |
| 14810 | 14910 |
| 14811 /** @domName PeerConnection00.createOffer */ | 14911 /** @domName PeerConnection00.createOffer */ |
| 14812 SessionDescription createOffer([Map mediaHints]) { | 14912 SessionDescription createOffer([Map mediaHints]) { |
| 14813 if (?mediaHints) { | 14913 if (?mediaHints) { |
| 14814 var mediaHints_1 = _convertDartToNative_Dictionary(mediaHints); | 14914 var mediaHints_1 = convertDartToNative_Dictionary(mediaHints); |
| 14815 return _createOffer_1(mediaHints_1); | 14915 return _createOffer_1(mediaHints_1); |
| 14816 } | 14916 } |
| 14817 return _createOffer_2(); | 14917 return _createOffer_2(); |
| 14818 } | 14918 } |
| 14819 SessionDescription _createOffer_1(mediaHints) native "createOffer"; | 14919 SessionDescription _createOffer_1(mediaHints) native "createOffer"; |
| 14820 SessionDescription _createOffer_2() native "createOffer"; | 14920 SessionDescription _createOffer_2() native "createOffer"; |
| 14821 | 14921 |
| 14822 /** @domName PeerConnection00.dispatchEvent */ | 14922 /** @domName PeerConnection00.dispatchEvent */ |
| 14823 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; | 14923 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; |
| 14824 | 14924 |
| 14825 /** @domName PeerConnection00.processIceMessage */ | 14925 /** @domName PeerConnection00.processIceMessage */ |
| 14826 void processIceMessage(IceCandidate candidate) native; | 14926 void processIceMessage(IceCandidate candidate) native; |
| 14827 | 14927 |
| 14828 /** @domName PeerConnection00.removeEventListener */ | 14928 /** @domName PeerConnection00.removeEventListener */ |
| 14829 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; | 14929 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "removeEventListener"; |
| 14830 | 14930 |
| 14831 /** @domName PeerConnection00.removeStream */ | 14931 /** @domName PeerConnection00.removeStream */ |
| 14832 void removeStream(MediaStream stream) native; | 14932 void removeStream(MediaStream stream) native; |
| 14833 | 14933 |
| 14834 /** @domName PeerConnection00.setLocalDescription */ | 14934 /** @domName PeerConnection00.setLocalDescription */ |
| 14835 void setLocalDescription(int action, SessionDescription desc) native; | 14935 void setLocalDescription(int action, SessionDescription desc) native; |
| 14836 | 14936 |
| 14837 /** @domName PeerConnection00.setRemoteDescription */ | 14937 /** @domName PeerConnection00.setRemoteDescription */ |
| 14838 void setRemoteDescription(int action, SessionDescription desc) native; | 14938 void setRemoteDescription(int action, SessionDescription desc) native; |
| 14839 | 14939 |
| 14840 /** @domName PeerConnection00.startIce */ | 14940 /** @domName PeerConnection00.startIce */ |
| 14841 void startIce([Map iceOptions]) { | 14941 void startIce([Map iceOptions]) { |
| 14842 if (?iceOptions) { | 14942 if (?iceOptions) { |
| 14843 var iceOptions_1 = _convertDartToNative_Dictionary(iceOptions); | 14943 var iceOptions_1 = convertDartToNative_Dictionary(iceOptions); |
| 14844 _startIce_1(iceOptions_1); | 14944 _startIce_1(iceOptions_1); |
| 14845 return; | 14945 return; |
| 14846 } | 14946 } |
| 14847 _startIce_2(); | 14947 _startIce_2(); |
| 14848 return; | 14948 return; |
| 14849 } | 14949 } |
| 14850 void _startIce_1(iceOptions) native "startIce"; | 14950 void _startIce_1(iceOptions) native "startIce"; |
| 14851 void _startIce_2() native "startIce"; | 14951 void _startIce_2() native "startIce"; |
| 14852 } | 14952 } |
| 14853 | 14953 |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14996 } | 15096 } |
| 14997 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15097 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 14998 // for details. All rights reserved. Use of this source code is governed by a | 15098 // for details. All rights reserved. Use of this source code is governed by a |
| 14999 // BSD-style license that can be found in the LICENSE file. | 15099 // BSD-style license that can be found in the LICENSE file. |
| 15000 | 15100 |
| 15001 | 15101 |
| 15002 /// @domName PopStateEvent | 15102 /// @domName PopStateEvent |
| 15003 class PopStateEvent extends Event native "*PopStateEvent" { | 15103 class PopStateEvent extends Event native "*PopStateEvent" { |
| 15004 | 15104 |
| 15005 /** @domName PopStateEvent.state */ | 15105 /** @domName PopStateEvent.state */ |
| 15006 dynamic get state => _convertNativeToDart_SerializedScriptValue(this._state); | 15106 dynamic get state => convertNativeToDart_SerializedScriptValue(this._state); |
| 15007 dynamic get _state => JS("dynamic", "#.state", this); | 15107 dynamic get _state => JS("dynamic", "#.state", this); |
| 15008 } | 15108 } |
| 15009 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15109 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 15010 // for details. All rights reserved. Use of this source code is governed by a | 15110 // for details. All rights reserved. Use of this source code is governed by a |
| 15011 // BSD-style license that can be found in the LICENSE file. | 15111 // BSD-style license that can be found in the LICENSE file. |
| 15012 | 15112 |
| 15013 // WARNING: Do not edit - generated code. | 15113 // WARNING: Do not edit - generated code. |
| 15014 | 15114 |
| 15015 | 15115 |
| 15016 typedef void PositionCallback(Geoposition position); | 15116 typedef void PositionCallback(Geoposition position); |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15288 | 15388 |
| 15289 /** @domName RTCPeerConnection.addEventListener */ | 15389 /** @domName RTCPeerConnection.addEventListener */ |
| 15290 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; | 15390 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "addEventListener"; |
| 15291 | 15391 |
| 15292 /** @domName RTCPeerConnection.addIceCandidate */ | 15392 /** @domName RTCPeerConnection.addIceCandidate */ |
| 15293 void addIceCandidate(RTCIceCandidate candidate) native; | 15393 void addIceCandidate(RTCIceCandidate candidate) native; |
| 15294 | 15394 |
| 15295 /** @domName RTCPeerConnection.addStream */ | 15395 /** @domName RTCPeerConnection.addStream */ |
| 15296 void addStream(MediaStream stream, [Map mediaConstraints]) { | 15396 void addStream(MediaStream stream, [Map mediaConstraints]) { |
| 15297 if (?mediaConstraints) { | 15397 if (?mediaConstraints) { |
| 15298 var mediaConstraints_1 = _convertDartToNative_Dictionary(mediaConstraints)
; | 15398 var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints); |
| 15299 _addStream_1(stream, mediaConstraints_1); | 15399 _addStream_1(stream, mediaConstraints_1); |
| 15300 return; | 15400 return; |
| 15301 } | 15401 } |
| 15302 _addStream_2(stream); | 15402 _addStream_2(stream); |
| 15303 return; | 15403 return; |
| 15304 } | 15404 } |
| 15305 void _addStream_1(MediaStream stream, mediaConstraints) native "addStream"; | 15405 void _addStream_1(MediaStream stream, mediaConstraints) native "addStream"; |
| 15306 void _addStream_2(MediaStream stream) native "addStream"; | 15406 void _addStream_2(MediaStream stream) native "addStream"; |
| 15307 | 15407 |
| 15308 /** @domName RTCPeerConnection.close */ | 15408 /** @domName RTCPeerConnection.close */ |
| 15309 void close() native; | 15409 void close() native; |
| 15310 | 15410 |
| 15311 /** @domName RTCPeerConnection.createAnswer */ | 15411 /** @domName RTCPeerConnection.createAnswer */ |
| 15312 void createAnswer(RTCSessionDescriptionCallback successCallback, [RTCErrorCall
back failureCallback, Map mediaConstraints]) { | 15412 void createAnswer(RTCSessionDescriptionCallback successCallback, [RTCErrorCall
back failureCallback, Map mediaConstraints]) { |
| 15313 if (?mediaConstraints) { | 15413 if (?mediaConstraints) { |
| 15314 var mediaConstraints_1 = _convertDartToNative_Dictionary(mediaConstraints)
; | 15414 var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints); |
| 15315 _createAnswer_1(successCallback, failureCallback, mediaConstraints_1); | 15415 _createAnswer_1(successCallback, failureCallback, mediaConstraints_1); |
| 15316 return; | 15416 return; |
| 15317 } | 15417 } |
| 15318 _createAnswer_2(successCallback, failureCallback); | 15418 _createAnswer_2(successCallback, failureCallback); |
| 15319 return; | 15419 return; |
| 15320 } | 15420 } |
| 15321 void _createAnswer_1(RTCSessionDescriptionCallback successCallback, RTCErrorCa
llback failureCallback, mediaConstraints) native "createAnswer"; | 15421 void _createAnswer_1(RTCSessionDescriptionCallback successCallback, RTCErrorCa
llback failureCallback, mediaConstraints) native "createAnswer"; |
| 15322 void _createAnswer_2(RTCSessionDescriptionCallback successCallback, RTCErrorCa
llback failureCallback) native "createAnswer"; | 15422 void _createAnswer_2(RTCSessionDescriptionCallback successCallback, RTCErrorCa
llback failureCallback) native "createAnswer"; |
| 15323 | 15423 |
| 15324 /** @domName RTCPeerConnection.createDataChannel */ | 15424 /** @domName RTCPeerConnection.createDataChannel */ |
| 15325 RTCDataChannel createDataChannel(String label, [Map options]) { | 15425 RTCDataChannel createDataChannel(String label, [Map options]) { |
| 15326 if (?options) { | 15426 if (?options) { |
| 15327 var options_1 = _convertDartToNative_Dictionary(options); | 15427 var options_1 = convertDartToNative_Dictionary(options); |
| 15328 return _createDataChannel_1(label, options_1); | 15428 return _createDataChannel_1(label, options_1); |
| 15329 } | 15429 } |
| 15330 return _createDataChannel_2(label); | 15430 return _createDataChannel_2(label); |
| 15331 } | 15431 } |
| 15332 RTCDataChannel _createDataChannel_1(label, options) native "createDataChannel"
; | 15432 RTCDataChannel _createDataChannel_1(label, options) native "createDataChannel"
; |
| 15333 RTCDataChannel _createDataChannel_2(label) native "createDataChannel"; | 15433 RTCDataChannel _createDataChannel_2(label) native "createDataChannel"; |
| 15334 | 15434 |
| 15335 /** @domName RTCPeerConnection.createOffer */ | 15435 /** @domName RTCPeerConnection.createOffer */ |
| 15336 void createOffer(RTCSessionDescriptionCallback successCallback, [RTCErrorCallb
ack failureCallback, Map mediaConstraints]) { | 15436 void createOffer(RTCSessionDescriptionCallback successCallback, [RTCErrorCallb
ack failureCallback, Map mediaConstraints]) { |
| 15337 if (?mediaConstraints) { | 15437 if (?mediaConstraints) { |
| 15338 var mediaConstraints_1 = _convertDartToNative_Dictionary(mediaConstraints)
; | 15438 var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints); |
| 15339 _createOffer_1(successCallback, failureCallback, mediaConstraints_1); | 15439 _createOffer_1(successCallback, failureCallback, mediaConstraints_1); |
| 15340 return; | 15440 return; |
| 15341 } | 15441 } |
| 15342 _createOffer_2(successCallback, failureCallback); | 15442 _createOffer_2(successCallback, failureCallback); |
| 15343 return; | 15443 return; |
| 15344 } | 15444 } |
| 15345 void _createOffer_1(RTCSessionDescriptionCallback successCallback, RTCErrorCal
lback failureCallback, mediaConstraints) native "createOffer"; | 15445 void _createOffer_1(RTCSessionDescriptionCallback successCallback, RTCErrorCal
lback failureCallback, mediaConstraints) native "createOffer"; |
| 15346 void _createOffer_2(RTCSessionDescriptionCallback successCallback, RTCErrorCal
lback failureCallback) native "createOffer"; | 15446 void _createOffer_2(RTCSessionDescriptionCallback successCallback, RTCErrorCal
lback failureCallback) native "createOffer"; |
| 15347 | 15447 |
| 15348 /** @domName RTCPeerConnection.dispatchEvent */ | 15448 /** @domName RTCPeerConnection.dispatchEvent */ |
| (...skipping 10 matching lines...) Expand all Loading... |
| 15359 | 15459 |
| 15360 /** @domName RTCPeerConnection.setLocalDescription */ | 15460 /** @domName RTCPeerConnection.setLocalDescription */ |
| 15361 void setLocalDescription(RTCSessionDescription description, [VoidCallback succ
essCallback, RTCErrorCallback failureCallback]) native; | 15461 void setLocalDescription(RTCSessionDescription description, [VoidCallback succ
essCallback, RTCErrorCallback failureCallback]) native; |
| 15362 | 15462 |
| 15363 /** @domName RTCPeerConnection.setRemoteDescription */ | 15463 /** @domName RTCPeerConnection.setRemoteDescription */ |
| 15364 void setRemoteDescription(RTCSessionDescription description, [VoidCallback suc
cessCallback, RTCErrorCallback failureCallback]) native; | 15464 void setRemoteDescription(RTCSessionDescription description, [VoidCallback suc
cessCallback, RTCErrorCallback failureCallback]) native; |
| 15365 | 15465 |
| 15366 /** @domName RTCPeerConnection.updateIce */ | 15466 /** @domName RTCPeerConnection.updateIce */ |
| 15367 void updateIce([Map configuration, Map mediaConstraints]) { | 15467 void updateIce([Map configuration, Map mediaConstraints]) { |
| 15368 if (?mediaConstraints) { | 15468 if (?mediaConstraints) { |
| 15369 var configuration_1 = _convertDartToNative_Dictionary(configuration); | 15469 var configuration_1 = convertDartToNative_Dictionary(configuration); |
| 15370 var mediaConstraints_2 = _convertDartToNative_Dictionary(mediaConstraints)
; | 15470 var mediaConstraints_2 = convertDartToNative_Dictionary(mediaConstraints); |
| 15371 _updateIce_1(configuration_1, mediaConstraints_2); | 15471 _updateIce_1(configuration_1, mediaConstraints_2); |
| 15372 return; | 15472 return; |
| 15373 } | 15473 } |
| 15374 if (?configuration) { | 15474 if (?configuration) { |
| 15375 var configuration_3 = _convertDartToNative_Dictionary(configuration); | 15475 var configuration_3 = convertDartToNative_Dictionary(configuration); |
| 15376 _updateIce_2(configuration_3); | 15476 _updateIce_2(configuration_3); |
| 15377 return; | 15477 return; |
| 15378 } | 15478 } |
| 15379 _updateIce_3(); | 15479 _updateIce_3(); |
| 15380 return; | 15480 return; |
| 15381 } | 15481 } |
| 15382 void _updateIce_1(configuration, mediaConstraints) native "updateIce"; | 15482 void _updateIce_1(configuration, mediaConstraints) native "updateIce"; |
| 15383 void _updateIce_2(configuration) native "updateIce"; | 15483 void _updateIce_2(configuration) native "updateIce"; |
| 15384 void _updateIce_3() native "updateIce"; | 15484 void _updateIce_3() native "updateIce"; |
| 15385 } | 15485 } |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15764 } | 15864 } |
| 15765 | 15865 |
| 15766 void addLast(Map value) { | 15866 void addLast(Map value) { |
| 15767 throw new UnsupportedError("Cannot add to immutable List."); | 15867 throw new UnsupportedError("Cannot add to immutable List."); |
| 15768 } | 15868 } |
| 15769 | 15869 |
| 15770 void addAll(Collection<Map> collection) { | 15870 void addAll(Collection<Map> collection) { |
| 15771 throw new UnsupportedError("Cannot add to immutable List."); | 15871 throw new UnsupportedError("Cannot add to immutable List."); |
| 15772 } | 15872 } |
| 15773 | 15873 |
| 15774 bool contains(Map element) => _Collections.contains(this, element); | 15874 bool contains(Map element) => Collections.contains(this, element); |
| 15775 | 15875 |
| 15776 void forEach(void f(Map element)) => _Collections.forEach(this, f); | 15876 void forEach(void f(Map element)) => Collections.forEach(this, f); |
| 15777 | 15877 |
| 15778 Collection map(f(Map element)) => _Collections.map(this, [], f); | 15878 Collection map(f(Map element)) => Collections.map(this, [], f); |
| 15779 | 15879 |
| 15780 Collection<Map> filter(bool f(Map element)) => | 15880 Collection<Map> filter(bool f(Map element)) => |
| 15781 _Collections.filter(this, <Map>[], f); | 15881 Collections.filter(this, <Map>[], f); |
| 15782 | 15882 |
| 15783 bool every(bool f(Map element)) => _Collections.every(this, f); | 15883 bool every(bool f(Map element)) => Collections.every(this, f); |
| 15784 | 15884 |
| 15785 bool some(bool f(Map element)) => _Collections.some(this, f); | 15885 bool some(bool f(Map element)) => Collections.some(this, f); |
| 15786 | 15886 |
| 15787 bool get isEmpty => this.length == 0; | 15887 bool get isEmpty => this.length == 0; |
| 15788 | 15888 |
| 15789 // From List<Map>: | 15889 // From List<Map>: |
| 15790 | 15890 |
| 15791 void sort([Comparator<Map> compare = Comparable.compare]) { | 15891 void sort([Comparator<Map> compare = Comparable.compare]) { |
| 15792 throw new UnsupportedError("Cannot sort immutable List."); | 15892 throw new UnsupportedError("Cannot sort immutable List."); |
| 15793 } | 15893 } |
| 15794 | 15894 |
| 15795 int indexOf(Map element, [int start = 0]) => | 15895 int indexOf(Map element, [int start = 0]) => |
| (...skipping 24 matching lines...) Expand all Loading... |
| 15820 throw new UnsupportedError("Cannot insertRange on immutable List."); | 15920 throw new UnsupportedError("Cannot insertRange on immutable List."); |
| 15821 } | 15921 } |
| 15822 | 15922 |
| 15823 List<Map> getRange(int start, int rangeLength) => | 15923 List<Map> getRange(int start, int rangeLength) => |
| 15824 _Lists.getRange(this, start, rangeLength, <Map>[]); | 15924 _Lists.getRange(this, start, rangeLength, <Map>[]); |
| 15825 | 15925 |
| 15826 // -- end List<Map> mixins. | 15926 // -- end List<Map> mixins. |
| 15827 | 15927 |
| 15828 /** @domName SQLResultSetRowList.item */ | 15928 /** @domName SQLResultSetRowList.item */ |
| 15829 Map item(int index) { | 15929 Map item(int index) { |
| 15830 return _convertNativeToDart_Dictionary(_item_1(index)); | 15930 return convertNativeToDart_Dictionary(_item_1(index)); |
| 15831 } | 15931 } |
| 15832 @Creates('=Object') | 15932 @Creates('=Object') |
| 15833 _item_1(index) native "item"; | 15933 _item_1(index) native "item"; |
| 15834 } | 15934 } |
| 15835 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15935 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 15836 // for details. All rights reserved. Use of this source code is governed by a | 15936 // for details. All rights reserved. Use of this source code is governed by a |
| 15837 // BSD-style license that can be found in the LICENSE file. | 15937 // BSD-style license that can be found in the LICENSE file. |
| 15838 | 15938 |
| 15839 // WARNING: Do not edit - generated code. | 15939 // WARNING: Do not edit - generated code. |
| 15840 | 15940 |
| (...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16281 } | 16381 } |
| 16282 | 16382 |
| 16283 void addLast(SourceBuffer value) { | 16383 void addLast(SourceBuffer value) { |
| 16284 throw new UnsupportedError("Cannot add to immutable List."); | 16384 throw new UnsupportedError("Cannot add to immutable List."); |
| 16285 } | 16385 } |
| 16286 | 16386 |
| 16287 void addAll(Collection<SourceBuffer> collection) { | 16387 void addAll(Collection<SourceBuffer> collection) { |
| 16288 throw new UnsupportedError("Cannot add to immutable List."); | 16388 throw new UnsupportedError("Cannot add to immutable List."); |
| 16289 } | 16389 } |
| 16290 | 16390 |
| 16291 bool contains(SourceBuffer element) => _Collections.contains(this, element); | 16391 bool contains(SourceBuffer element) => Collections.contains(this, element); |
| 16292 | 16392 |
| 16293 void forEach(void f(SourceBuffer element)) => _Collections.forEach(this, f); | 16393 void forEach(void f(SourceBuffer element)) => Collections.forEach(this, f); |
| 16294 | 16394 |
| 16295 Collection map(f(SourceBuffer element)) => _Collections.map(this, [], f); | 16395 Collection map(f(SourceBuffer element)) => Collections.map(this, [], f); |
| 16296 | 16396 |
| 16297 Collection<SourceBuffer> filter(bool f(SourceBuffer element)) => | 16397 Collection<SourceBuffer> filter(bool f(SourceBuffer element)) => |
| 16298 _Collections.filter(this, <SourceBuffer>[], f); | 16398 Collections.filter(this, <SourceBuffer>[], f); |
| 16299 | 16399 |
| 16300 bool every(bool f(SourceBuffer element)) => _Collections.every(this, f); | 16400 bool every(bool f(SourceBuffer element)) => Collections.every(this, f); |
| 16301 | 16401 |
| 16302 bool some(bool f(SourceBuffer element)) => _Collections.some(this, f); | 16402 bool some(bool f(SourceBuffer element)) => Collections.some(this, f); |
| 16303 | 16403 |
| 16304 bool get isEmpty => this.length == 0; | 16404 bool get isEmpty => this.length == 0; |
| 16305 | 16405 |
| 16306 // From List<SourceBuffer>: | 16406 // From List<SourceBuffer>: |
| 16307 | 16407 |
| 16308 void sort([Comparator<SourceBuffer> compare = Comparable.compare]) { | 16408 void sort([Comparator<SourceBuffer> compare = Comparable.compare]) { |
| 16309 throw new UnsupportedError("Cannot sort immutable List."); | 16409 throw new UnsupportedError("Cannot sort immutable List."); |
| 16310 } | 16410 } |
| 16311 | 16411 |
| 16312 int indexOf(SourceBuffer element, [int start = 0]) => | 16412 int indexOf(SourceBuffer element, [int start = 0]) => |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16436 } | 16536 } |
| 16437 | 16537 |
| 16438 void addLast(SpeechGrammar value) { | 16538 void addLast(SpeechGrammar value) { |
| 16439 throw new UnsupportedError("Cannot add to immutable List."); | 16539 throw new UnsupportedError("Cannot add to immutable List."); |
| 16440 } | 16540 } |
| 16441 | 16541 |
| 16442 void addAll(Collection<SpeechGrammar> collection) { | 16542 void addAll(Collection<SpeechGrammar> collection) { |
| 16443 throw new UnsupportedError("Cannot add to immutable List."); | 16543 throw new UnsupportedError("Cannot add to immutable List."); |
| 16444 } | 16544 } |
| 16445 | 16545 |
| 16446 bool contains(SpeechGrammar element) => _Collections.contains(this, element); | 16546 bool contains(SpeechGrammar element) => Collections.contains(this, element); |
| 16447 | 16547 |
| 16448 void forEach(void f(SpeechGrammar element)) => _Collections.forEach(this, f); | 16548 void forEach(void f(SpeechGrammar element)) => Collections.forEach(this, f); |
| 16449 | 16549 |
| 16450 Collection map(f(SpeechGrammar element)) => _Collections.map(this, [], f); | 16550 Collection map(f(SpeechGrammar element)) => Collections.map(this, [], f); |
| 16451 | 16551 |
| 16452 Collection<SpeechGrammar> filter(bool f(SpeechGrammar element)) => | 16552 Collection<SpeechGrammar> filter(bool f(SpeechGrammar element)) => |
| 16453 _Collections.filter(this, <SpeechGrammar>[], f); | 16553 Collections.filter(this, <SpeechGrammar>[], f); |
| 16454 | 16554 |
| 16455 bool every(bool f(SpeechGrammar element)) => _Collections.every(this, f); | 16555 bool every(bool f(SpeechGrammar element)) => Collections.every(this, f); |
| 16456 | 16556 |
| 16457 bool some(bool f(SpeechGrammar element)) => _Collections.some(this, f); | 16557 bool some(bool f(SpeechGrammar element)) => Collections.some(this, f); |
| 16458 | 16558 |
| 16459 bool get isEmpty => this.length == 0; | 16559 bool get isEmpty => this.length == 0; |
| 16460 | 16560 |
| 16461 // From List<SpeechGrammar>: | 16561 // From List<SpeechGrammar>: |
| 16462 | 16562 |
| 16463 void sort([Comparator<SpeechGrammar> compare = Comparable.compare]) { | 16563 void sort([Comparator<SpeechGrammar> compare = Comparable.compare]) { |
| 16464 throw new UnsupportedError("Cannot sort immutable List."); | 16564 throw new UnsupportedError("Cannot sort immutable List."); |
| 16465 } | 16565 } |
| 16466 | 16566 |
| 16467 int indexOf(SpeechGrammar element, [int start = 0]) => | 16567 int indexOf(SpeechGrammar element, [int start = 0]) => |
| (...skipping 989 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17457 } | 17557 } |
| 17458 | 17558 |
| 17459 void addLast(TextTrackCue value) { | 17559 void addLast(TextTrackCue value) { |
| 17460 throw new UnsupportedError("Cannot add to immutable List."); | 17560 throw new UnsupportedError("Cannot add to immutable List."); |
| 17461 } | 17561 } |
| 17462 | 17562 |
| 17463 void addAll(Collection<TextTrackCue> collection) { | 17563 void addAll(Collection<TextTrackCue> collection) { |
| 17464 throw new UnsupportedError("Cannot add to immutable List."); | 17564 throw new UnsupportedError("Cannot add to immutable List."); |
| 17465 } | 17565 } |
| 17466 | 17566 |
| 17467 bool contains(TextTrackCue element) => _Collections.contains(this, element); | 17567 bool contains(TextTrackCue element) => Collections.contains(this, element); |
| 17468 | 17568 |
| 17469 void forEach(void f(TextTrackCue element)) => _Collections.forEach(this, f); | 17569 void forEach(void f(TextTrackCue element)) => Collections.forEach(this, f); |
| 17470 | 17570 |
| 17471 Collection map(f(TextTrackCue element)) => _Collections.map(this, [], f); | 17571 Collection map(f(TextTrackCue element)) => Collections.map(this, [], f); |
| 17472 | 17572 |
| 17473 Collection<TextTrackCue> filter(bool f(TextTrackCue element)) => | 17573 Collection<TextTrackCue> filter(bool f(TextTrackCue element)) => |
| 17474 _Collections.filter(this, <TextTrackCue>[], f); | 17574 Collections.filter(this, <TextTrackCue>[], f); |
| 17475 | 17575 |
| 17476 bool every(bool f(TextTrackCue element)) => _Collections.every(this, f); | 17576 bool every(bool f(TextTrackCue element)) => Collections.every(this, f); |
| 17477 | 17577 |
| 17478 bool some(bool f(TextTrackCue element)) => _Collections.some(this, f); | 17578 bool some(bool f(TextTrackCue element)) => Collections.some(this, f); |
| 17479 | 17579 |
| 17480 bool get isEmpty => this.length == 0; | 17580 bool get isEmpty => this.length == 0; |
| 17481 | 17581 |
| 17482 // From List<TextTrackCue>: | 17582 // From List<TextTrackCue>: |
| 17483 | 17583 |
| 17484 void sort([Comparator<TextTrackCue> compare = Comparable.compare]) { | 17584 void sort([Comparator<TextTrackCue> compare = Comparable.compare]) { |
| 17485 throw new UnsupportedError("Cannot sort immutable List."); | 17585 throw new UnsupportedError("Cannot sort immutable List."); |
| 17486 } | 17586 } |
| 17487 | 17587 |
| 17488 int indexOf(TextTrackCue element, [int start = 0]) => | 17588 int indexOf(TextTrackCue element, [int start = 0]) => |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17565 } | 17665 } |
| 17566 | 17666 |
| 17567 void addLast(TextTrack value) { | 17667 void addLast(TextTrack value) { |
| 17568 throw new UnsupportedError("Cannot add to immutable List."); | 17668 throw new UnsupportedError("Cannot add to immutable List."); |
| 17569 } | 17669 } |
| 17570 | 17670 |
| 17571 void addAll(Collection<TextTrack> collection) { | 17671 void addAll(Collection<TextTrack> collection) { |
| 17572 throw new UnsupportedError("Cannot add to immutable List."); | 17672 throw new UnsupportedError("Cannot add to immutable List."); |
| 17573 } | 17673 } |
| 17574 | 17674 |
| 17575 bool contains(TextTrack element) => _Collections.contains(this, element); | 17675 bool contains(TextTrack element) => Collections.contains(this, element); |
| 17576 | 17676 |
| 17577 void forEach(void f(TextTrack element)) => _Collections.forEach(this, f); | 17677 void forEach(void f(TextTrack element)) => Collections.forEach(this, f); |
| 17578 | 17678 |
| 17579 Collection map(f(TextTrack element)) => _Collections.map(this, [], f); | 17679 Collection map(f(TextTrack element)) => Collections.map(this, [], f); |
| 17580 | 17680 |
| 17581 Collection<TextTrack> filter(bool f(TextTrack element)) => | 17681 Collection<TextTrack> filter(bool f(TextTrack element)) => |
| 17582 _Collections.filter(this, <TextTrack>[], f); | 17682 Collections.filter(this, <TextTrack>[], f); |
| 17583 | 17683 |
| 17584 bool every(bool f(TextTrack element)) => _Collections.every(this, f); | 17684 bool every(bool f(TextTrack element)) => Collections.every(this, f); |
| 17585 | 17685 |
| 17586 bool some(bool f(TextTrack element)) => _Collections.some(this, f); | 17686 bool some(bool f(TextTrack element)) => Collections.some(this, f); |
| 17587 | 17687 |
| 17588 bool get isEmpty => this.length == 0; | 17688 bool get isEmpty => this.length == 0; |
| 17589 | 17689 |
| 17590 // From List<TextTrack>: | 17690 // From List<TextTrack>: |
| 17591 | 17691 |
| 17592 void sort([Comparator<TextTrack> compare = Comparable.compare]) { | 17692 void sort([Comparator<TextTrack> compare = Comparable.compare]) { |
| 17593 throw new UnsupportedError("Cannot sort immutable List."); | 17693 throw new UnsupportedError("Cannot sort immutable List."); |
| 17594 } | 17694 } |
| 17595 | 17695 |
| 17596 int indexOf(TextTrack element, [int start = 0]) => | 17696 int indexOf(TextTrack element, [int start = 0]) => |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17791 } | 17891 } |
| 17792 | 17892 |
| 17793 void addLast(Touch value) { | 17893 void addLast(Touch value) { |
| 17794 throw new UnsupportedError("Cannot add to immutable List."); | 17894 throw new UnsupportedError("Cannot add to immutable List."); |
| 17795 } | 17895 } |
| 17796 | 17896 |
| 17797 void addAll(Collection<Touch> collection) { | 17897 void addAll(Collection<Touch> collection) { |
| 17798 throw new UnsupportedError("Cannot add to immutable List."); | 17898 throw new UnsupportedError("Cannot add to immutable List."); |
| 17799 } | 17899 } |
| 17800 | 17900 |
| 17801 bool contains(Touch element) => _Collections.contains(this, element); | 17901 bool contains(Touch element) => Collections.contains(this, element); |
| 17802 | 17902 |
| 17803 void forEach(void f(Touch element)) => _Collections.forEach(this, f); | 17903 void forEach(void f(Touch element)) => Collections.forEach(this, f); |
| 17804 | 17904 |
| 17805 Collection map(f(Touch element)) => _Collections.map(this, [], f); | 17905 Collection map(f(Touch element)) => Collections.map(this, [], f); |
| 17806 | 17906 |
| 17807 Collection<Touch> filter(bool f(Touch element)) => | 17907 Collection<Touch> filter(bool f(Touch element)) => |
| 17808 _Collections.filter(this, <Touch>[], f); | 17908 Collections.filter(this, <Touch>[], f); |
| 17809 | 17909 |
| 17810 bool every(bool f(Touch element)) => _Collections.every(this, f); | 17910 bool every(bool f(Touch element)) => Collections.every(this, f); |
| 17811 | 17911 |
| 17812 bool some(bool f(Touch element)) => _Collections.some(this, f); | 17912 bool some(bool f(Touch element)) => Collections.some(this, f); |
| 17813 | 17913 |
| 17814 bool get isEmpty => this.length == 0; | 17914 bool get isEmpty => this.length == 0; |
| 17815 | 17915 |
| 17816 // From List<Touch>: | 17916 // From List<Touch>: |
| 17817 | 17917 |
| 17818 void sort([Comparator<Touch> compare = Comparable.compare]) { | 17918 void sort([Comparator<Touch> compare = Comparable.compare]) { |
| 17819 throw new UnsupportedError("Cannot sort immutable List."); | 17919 throw new UnsupportedError("Cannot sort immutable List."); |
| 17820 } | 17920 } |
| 17821 | 17921 |
| 17822 int indexOf(Touch element, [int start = 0]) => | 17922 int indexOf(Touch element, [int start = 0]) => |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18066 } | 18166 } |
| 18067 | 18167 |
| 18068 void addLast(int value) { | 18168 void addLast(int value) { |
| 18069 throw new UnsupportedError("Cannot add to immutable List."); | 18169 throw new UnsupportedError("Cannot add to immutable List."); |
| 18070 } | 18170 } |
| 18071 | 18171 |
| 18072 void addAll(Collection<int> collection) { | 18172 void addAll(Collection<int> collection) { |
| 18073 throw new UnsupportedError("Cannot add to immutable List."); | 18173 throw new UnsupportedError("Cannot add to immutable List."); |
| 18074 } | 18174 } |
| 18075 | 18175 |
| 18076 bool contains(int element) => _Collections.contains(this, element); | 18176 bool contains(int element) => Collections.contains(this, element); |
| 18077 | 18177 |
| 18078 void forEach(void f(int element)) => _Collections.forEach(this, f); | 18178 void forEach(void f(int element)) => Collections.forEach(this, f); |
| 18079 | 18179 |
| 18080 Collection map(f(int element)) => _Collections.map(this, [], f); | 18180 Collection map(f(int element)) => Collections.map(this, [], f); |
| 18081 | 18181 |
| 18082 Collection<int> filter(bool f(int element)) => | 18182 Collection<int> filter(bool f(int element)) => |
| 18083 _Collections.filter(this, <int>[], f); | 18183 Collections.filter(this, <int>[], f); |
| 18084 | 18184 |
| 18085 bool every(bool f(int element)) => _Collections.every(this, f); | 18185 bool every(bool f(int element)) => Collections.every(this, f); |
| 18086 | 18186 |
| 18087 bool some(bool f(int element)) => _Collections.some(this, f); | 18187 bool some(bool f(int element)) => Collections.some(this, f); |
| 18088 | 18188 |
| 18089 bool get isEmpty => this.length == 0; | 18189 bool get isEmpty => this.length == 0; |
| 18090 | 18190 |
| 18091 // From List<int>: | 18191 // From List<int>: |
| 18092 | 18192 |
| 18093 void sort([Comparator<int> compare = Comparable.compare]) { | 18193 void sort([Comparator<int> compare = Comparable.compare]) { |
| 18094 throw new UnsupportedError("Cannot sort immutable List."); | 18194 throw new UnsupportedError("Cannot sort immutable List."); |
| 18095 } | 18195 } |
| 18096 | 18196 |
| 18097 int indexOf(int element, [int start = 0]) => | 18197 int indexOf(int element, [int start = 0]) => |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18176 } | 18276 } |
| 18177 | 18277 |
| 18178 void addLast(int value) { | 18278 void addLast(int value) { |
| 18179 throw new UnsupportedError("Cannot add to immutable List."); | 18279 throw new UnsupportedError("Cannot add to immutable List."); |
| 18180 } | 18280 } |
| 18181 | 18281 |
| 18182 void addAll(Collection<int> collection) { | 18282 void addAll(Collection<int> collection) { |
| 18183 throw new UnsupportedError("Cannot add to immutable List."); | 18283 throw new UnsupportedError("Cannot add to immutable List."); |
| 18184 } | 18284 } |
| 18185 | 18285 |
| 18186 bool contains(int element) => _Collections.contains(this, element); | 18286 bool contains(int element) => Collections.contains(this, element); |
| 18187 | 18287 |
| 18188 void forEach(void f(int element)) => _Collections.forEach(this, f); | 18288 void forEach(void f(int element)) => Collections.forEach(this, f); |
| 18189 | 18289 |
| 18190 Collection map(f(int element)) => _Collections.map(this, [], f); | 18290 Collection map(f(int element)) => Collections.map(this, [], f); |
| 18191 | 18291 |
| 18192 Collection<int> filter(bool f(int element)) => | 18292 Collection<int> filter(bool f(int element)) => |
| 18193 _Collections.filter(this, <int>[], f); | 18293 Collections.filter(this, <int>[], f); |
| 18194 | 18294 |
| 18195 bool every(bool f(int element)) => _Collections.every(this, f); | 18295 bool every(bool f(int element)) => Collections.every(this, f); |
| 18196 | 18296 |
| 18197 bool some(bool f(int element)) => _Collections.some(this, f); | 18297 bool some(bool f(int element)) => Collections.some(this, f); |
| 18198 | 18298 |
| 18199 bool get isEmpty => this.length == 0; | 18299 bool get isEmpty => this.length == 0; |
| 18200 | 18300 |
| 18201 // From List<int>: | 18301 // From List<int>: |
| 18202 | 18302 |
| 18203 void sort([Comparator<int> compare = Comparable.compare]) { | 18303 void sort([Comparator<int> compare = Comparable.compare]) { |
| 18204 throw new UnsupportedError("Cannot sort immutable List."); | 18304 throw new UnsupportedError("Cannot sort immutable List."); |
| 18205 } | 18305 } |
| 18206 | 18306 |
| 18207 int indexOf(int element, [int start = 0]) => | 18307 int indexOf(int element, [int start = 0]) => |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18286 } | 18386 } |
| 18287 | 18387 |
| 18288 void addLast(int value) { | 18388 void addLast(int value) { |
| 18289 throw new UnsupportedError("Cannot add to immutable List."); | 18389 throw new UnsupportedError("Cannot add to immutable List."); |
| 18290 } | 18390 } |
| 18291 | 18391 |
| 18292 void addAll(Collection<int> collection) { | 18392 void addAll(Collection<int> collection) { |
| 18293 throw new UnsupportedError("Cannot add to immutable List."); | 18393 throw new UnsupportedError("Cannot add to immutable List."); |
| 18294 } | 18394 } |
| 18295 | 18395 |
| 18296 bool contains(int element) => _Collections.contains(this, element); | 18396 bool contains(int element) => Collections.contains(this, element); |
| 18297 | 18397 |
| 18298 void forEach(void f(int element)) => _Collections.forEach(this, f); | 18398 void forEach(void f(int element)) => Collections.forEach(this, f); |
| 18299 | 18399 |
| 18300 Collection map(f(int element)) => _Collections.map(this, [], f); | 18400 Collection map(f(int element)) => Collections.map(this, [], f); |
| 18301 | 18401 |
| 18302 Collection<int> filter(bool f(int element)) => | 18402 Collection<int> filter(bool f(int element)) => |
| 18303 _Collections.filter(this, <int>[], f); | 18403 Collections.filter(this, <int>[], f); |
| 18304 | 18404 |
| 18305 bool every(bool f(int element)) => _Collections.every(this, f); | 18405 bool every(bool f(int element)) => Collections.every(this, f); |
| 18306 | 18406 |
| 18307 bool some(bool f(int element)) => _Collections.some(this, f); | 18407 bool some(bool f(int element)) => Collections.some(this, f); |
| 18308 | 18408 |
| 18309 bool get isEmpty => this.length == 0; | 18409 bool get isEmpty => this.length == 0; |
| 18310 | 18410 |
| 18311 // From List<int>: | 18411 // From List<int>: |
| 18312 | 18412 |
| 18313 void sort([Comparator<int> compare = Comparable.compare]) { | 18413 void sort([Comparator<int> compare = Comparable.compare]) { |
| 18314 throw new UnsupportedError("Cannot sort immutable List."); | 18414 throw new UnsupportedError("Cannot sort immutable List."); |
| 18315 } | 18415 } |
| 18316 | 18416 |
| 18317 int indexOf(int element, [int start = 0]) => | 18417 int indexOf(int element, [int start = 0]) => |
| (...skipping 1728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20046 | 20146 |
| 20047 /** | 20147 /** |
| 20048 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent | 20148 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent |
| 20049 */ | 20149 */ |
| 20050 WorkerEvents get on => | 20150 WorkerEvents get on => |
| 20051 new WorkerEvents(this); | 20151 new WorkerEvents(this); |
| 20052 | 20152 |
| 20053 /** @domName Worker.postMessage */ | 20153 /** @domName Worker.postMessage */ |
| 20054 void postMessage(/*SerializedScriptValue*/ message, [List messagePorts]) { | 20154 void postMessage(/*SerializedScriptValue*/ message, [List messagePorts]) { |
| 20055 if (?messagePorts) { | 20155 if (?messagePorts) { |
| 20056 var message_1 = _convertDartToNative_SerializedScriptValue(message); | 20156 var message_1 = convertDartToNative_SerializedScriptValue(message); |
| 20057 _postMessage_1(message_1, messagePorts); | 20157 _postMessage_1(message_1, messagePorts); |
| 20058 return; | 20158 return; |
| 20059 } | 20159 } |
| 20060 var message_2 = _convertDartToNative_SerializedScriptValue(message); | 20160 var message_2 = convertDartToNative_SerializedScriptValue(message); |
| 20061 _postMessage_2(message_2); | 20161 _postMessage_2(message_2); |
| 20062 return; | 20162 return; |
| 20063 } | 20163 } |
| 20064 void _postMessage_1(message, List messagePorts) native "postMessage"; | 20164 void _postMessage_1(message, List messagePorts) native "postMessage"; |
| 20065 void _postMessage_2(message) native "postMessage"; | 20165 void _postMessage_2(message) native "postMessage"; |
| 20066 | 20166 |
| 20067 /** @domName Worker.terminate */ | 20167 /** @domName Worker.terminate */ |
| 20068 void terminate() native; | 20168 void terminate() native; |
| 20069 } | 20169 } |
| 20070 | 20170 |
| (...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20474 } | 20574 } |
| 20475 | 20575 |
| 20476 void addLast(CSSRule value) { | 20576 void addLast(CSSRule value) { |
| 20477 throw new UnsupportedError("Cannot add to immutable List."); | 20577 throw new UnsupportedError("Cannot add to immutable List."); |
| 20478 } | 20578 } |
| 20479 | 20579 |
| 20480 void addAll(Collection<CSSRule> collection) { | 20580 void addAll(Collection<CSSRule> collection) { |
| 20481 throw new UnsupportedError("Cannot add to immutable List."); | 20581 throw new UnsupportedError("Cannot add to immutable List."); |
| 20482 } | 20582 } |
| 20483 | 20583 |
| 20484 bool contains(CSSRule element) => _Collections.contains(this, element); | 20584 bool contains(CSSRule element) => Collections.contains(this, element); |
| 20485 | 20585 |
| 20486 void forEach(void f(CSSRule element)) => _Collections.forEach(this, f); | 20586 void forEach(void f(CSSRule element)) => Collections.forEach(this, f); |
| 20487 | 20587 |
| 20488 Collection map(f(CSSRule element)) => _Collections.map(this, [], f); | 20588 Collection map(f(CSSRule element)) => Collections.map(this, [], f); |
| 20489 | 20589 |
| 20490 Collection<CSSRule> filter(bool f(CSSRule element)) => | 20590 Collection<CSSRule> filter(bool f(CSSRule element)) => |
| 20491 _Collections.filter(this, <CSSRule>[], f); | 20591 Collections.filter(this, <CSSRule>[], f); |
| 20492 | 20592 |
| 20493 bool every(bool f(CSSRule element)) => _Collections.every(this, f); | 20593 bool every(bool f(CSSRule element)) => Collections.every(this, f); |
| 20494 | 20594 |
| 20495 bool some(bool f(CSSRule element)) => _Collections.some(this, f); | 20595 bool some(bool f(CSSRule element)) => Collections.some(this, f); |
| 20496 | 20596 |
| 20497 bool get isEmpty => this.length == 0; | 20597 bool get isEmpty => this.length == 0; |
| 20498 | 20598 |
| 20499 // From List<CSSRule>: | 20599 // From List<CSSRule>: |
| 20500 | 20600 |
| 20501 void sort([Comparator<CSSRule> compare = Comparable.compare]) { | 20601 void sort([Comparator<CSSRule> compare = Comparable.compare]) { |
| 20502 throw new UnsupportedError("Cannot sort immutable List."); | 20602 throw new UnsupportedError("Cannot sort immutable List."); |
| 20503 } | 20603 } |
| 20504 | 20604 |
| 20505 int indexOf(CSSRule element, [int start = 0]) => | 20605 int indexOf(CSSRule element, [int start = 0]) => |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20573 } | 20673 } |
| 20574 | 20674 |
| 20575 void addLast(CSSValue value) { | 20675 void addLast(CSSValue value) { |
| 20576 throw new UnsupportedError("Cannot add to immutable List."); | 20676 throw new UnsupportedError("Cannot add to immutable List."); |
| 20577 } | 20677 } |
| 20578 | 20678 |
| 20579 void addAll(Collection<CSSValue> collection) { | 20679 void addAll(Collection<CSSValue> collection) { |
| 20580 throw new UnsupportedError("Cannot add to immutable List."); | 20680 throw new UnsupportedError("Cannot add to immutable List."); |
| 20581 } | 20681 } |
| 20582 | 20682 |
| 20583 bool contains(CSSValue element) => _Collections.contains(this, element); | 20683 bool contains(CSSValue element) => Collections.contains(this, element); |
| 20584 | 20684 |
| 20585 void forEach(void f(CSSValue element)) => _Collections.forEach(this, f); | 20685 void forEach(void f(CSSValue element)) => Collections.forEach(this, f); |
| 20586 | 20686 |
| 20587 Collection map(f(CSSValue element)) => _Collections.map(this, [], f); | 20687 Collection map(f(CSSValue element)) => Collections.map(this, [], f); |
| 20588 | 20688 |
| 20589 Collection<CSSValue> filter(bool f(CSSValue element)) => | 20689 Collection<CSSValue> filter(bool f(CSSValue element)) => |
| 20590 _Collections.filter(this, <CSSValue>[], f); | 20690 Collections.filter(this, <CSSValue>[], f); |
| 20591 | 20691 |
| 20592 bool every(bool f(CSSValue element)) => _Collections.every(this, f); | 20692 bool every(bool f(CSSValue element)) => Collections.every(this, f); |
| 20593 | 20693 |
| 20594 bool some(bool f(CSSValue element)) => _Collections.some(this, f); | 20694 bool some(bool f(CSSValue element)) => Collections.some(this, f); |
| 20595 | 20695 |
| 20596 bool get isEmpty => this.length == 0; | 20696 bool get isEmpty => this.length == 0; |
| 20597 | 20697 |
| 20598 // From List<CSSValue>: | 20698 // From List<CSSValue>: |
| 20599 | 20699 |
| 20600 void sort([Comparator<CSSValue> compare = Comparable.compare]) { | 20700 void sort([Comparator<CSSValue> compare = Comparable.compare]) { |
| 20601 throw new UnsupportedError("Cannot sort immutable List."); | 20701 throw new UnsupportedError("Cannot sort immutable List."); |
| 20602 } | 20702 } |
| 20603 | 20703 |
| 20604 int indexOf(CSSValue element, [int start = 0]) => | 20704 int indexOf(CSSValue element, [int start = 0]) => |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20672 } | 20772 } |
| 20673 | 20773 |
| 20674 void addLast(ClientRect value) { | 20774 void addLast(ClientRect value) { |
| 20675 throw new UnsupportedError("Cannot add to immutable List."); | 20775 throw new UnsupportedError("Cannot add to immutable List."); |
| 20676 } | 20776 } |
| 20677 | 20777 |
| 20678 void addAll(Collection<ClientRect> collection) { | 20778 void addAll(Collection<ClientRect> collection) { |
| 20679 throw new UnsupportedError("Cannot add to immutable List."); | 20779 throw new UnsupportedError("Cannot add to immutable List."); |
| 20680 } | 20780 } |
| 20681 | 20781 |
| 20682 bool contains(ClientRect element) => _Collections.contains(this, element); | 20782 bool contains(ClientRect element) => Collections.contains(this, element); |
| 20683 | 20783 |
| 20684 void forEach(void f(ClientRect element)) => _Collections.forEach(this, f); | 20784 void forEach(void f(ClientRect element)) => Collections.forEach(this, f); |
| 20685 | 20785 |
| 20686 Collection map(f(ClientRect element)) => _Collections.map(this, [], f); | 20786 Collection map(f(ClientRect element)) => Collections.map(this, [], f); |
| 20687 | 20787 |
| 20688 Collection<ClientRect> filter(bool f(ClientRect element)) => | 20788 Collection<ClientRect> filter(bool f(ClientRect element)) => |
| 20689 _Collections.filter(this, <ClientRect>[], f); | 20789 Collections.filter(this, <ClientRect>[], f); |
| 20690 | 20790 |
| 20691 bool every(bool f(ClientRect element)) => _Collections.every(this, f); | 20791 bool every(bool f(ClientRect element)) => Collections.every(this, f); |
| 20692 | 20792 |
| 20693 bool some(bool f(ClientRect element)) => _Collections.some(this, f); | 20793 bool some(bool f(ClientRect element)) => Collections.some(this, f); |
| 20694 | 20794 |
| 20695 bool get isEmpty => this.length == 0; | 20795 bool get isEmpty => this.length == 0; |
| 20696 | 20796 |
| 20697 // From List<ClientRect>: | 20797 // From List<ClientRect>: |
| 20698 | 20798 |
| 20699 void sort([Comparator<ClientRect> compare = Comparable.compare]) { | 20799 void sort([Comparator<ClientRect> compare = Comparable.compare]) { |
| 20700 throw new UnsupportedError("Cannot sort immutable List."); | 20800 throw new UnsupportedError("Cannot sort immutable List."); |
| 20701 } | 20801 } |
| 20702 | 20802 |
| 20703 int indexOf(ClientRect element, [int start = 0]) => | 20803 int indexOf(ClientRect element, [int start = 0]) => |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20782 void addLast(String value) { | 20882 void addLast(String value) { |
| 20783 throw new UnsupportedError("Cannot add to immutable List."); | 20883 throw new UnsupportedError("Cannot add to immutable List."); |
| 20784 } | 20884 } |
| 20785 | 20885 |
| 20786 void addAll(Collection<String> collection) { | 20886 void addAll(Collection<String> collection) { |
| 20787 throw new UnsupportedError("Cannot add to immutable List."); | 20887 throw new UnsupportedError("Cannot add to immutable List."); |
| 20788 } | 20888 } |
| 20789 | 20889 |
| 20790 // contains() defined by IDL. | 20890 // contains() defined by IDL. |
| 20791 | 20891 |
| 20792 void forEach(void f(String element)) => _Collections.forEach(this, f); | 20892 void forEach(void f(String element)) => Collections.forEach(this, f); |
| 20793 | 20893 |
| 20794 Collection map(f(String element)) => _Collections.map(this, [], f); | 20894 Collection map(f(String element)) => Collections.map(this, [], f); |
| 20795 | 20895 |
| 20796 Collection<String> filter(bool f(String element)) => | 20896 Collection<String> filter(bool f(String element)) => |
| 20797 _Collections.filter(this, <String>[], f); | 20897 Collections.filter(this, <String>[], f); |
| 20798 | 20898 |
| 20799 bool every(bool f(String element)) => _Collections.every(this, f); | 20899 bool every(bool f(String element)) => Collections.every(this, f); |
| 20800 | 20900 |
| 20801 bool some(bool f(String element)) => _Collections.some(this, f); | 20901 bool some(bool f(String element)) => Collections.some(this, f); |
| 20802 | 20902 |
| 20803 bool get isEmpty => this.length == 0; | 20903 bool get isEmpty => this.length == 0; |
| 20804 | 20904 |
| 20805 // From List<String>: | 20905 // From List<String>: |
| 20806 | 20906 |
| 20807 void sort([Comparator<String> compare = Comparable.compare]) { | 20907 void sort([Comparator<String> compare = Comparable.compare]) { |
| 20808 throw new UnsupportedError("Cannot sort immutable List."); | 20908 throw new UnsupportedError("Cannot sort immutable List."); |
| 20809 } | 20909 } |
| 20810 | 20910 |
| 20811 int indexOf(String element, [int start = 0]) => | 20911 int indexOf(String element, [int start = 0]) => |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20899 } | 20999 } |
| 20900 | 21000 |
| 20901 void addLast(Entry value) { | 21001 void addLast(Entry value) { |
| 20902 throw new UnsupportedError("Cannot add to immutable List."); | 21002 throw new UnsupportedError("Cannot add to immutable List."); |
| 20903 } | 21003 } |
| 20904 | 21004 |
| 20905 void addAll(Collection<Entry> collection) { | 21005 void addAll(Collection<Entry> collection) { |
| 20906 throw new UnsupportedError("Cannot add to immutable List."); | 21006 throw new UnsupportedError("Cannot add to immutable List."); |
| 20907 } | 21007 } |
| 20908 | 21008 |
| 20909 bool contains(Entry element) => _Collections.contains(this, element); | 21009 bool contains(Entry element) => Collections.contains(this, element); |
| 20910 | 21010 |
| 20911 void forEach(void f(Entry element)) => _Collections.forEach(this, f); | 21011 void forEach(void f(Entry element)) => Collections.forEach(this, f); |
| 20912 | 21012 |
| 20913 Collection map(f(Entry element)) => _Collections.map(this, [], f); | 21013 Collection map(f(Entry element)) => Collections.map(this, [], f); |
| 20914 | 21014 |
| 20915 Collection<Entry> filter(bool f(Entry element)) => | 21015 Collection<Entry> filter(bool f(Entry element)) => |
| 20916 _Collections.filter(this, <Entry>[], f); | 21016 Collections.filter(this, <Entry>[], f); |
| 20917 | 21017 |
| 20918 bool every(bool f(Entry element)) => _Collections.every(this, f); | 21018 bool every(bool f(Entry element)) => Collections.every(this, f); |
| 20919 | 21019 |
| 20920 bool some(bool f(Entry element)) => _Collections.some(this, f); | 21020 bool some(bool f(Entry element)) => Collections.some(this, f); |
| 20921 | 21021 |
| 20922 bool get isEmpty => this.length == 0; | 21022 bool get isEmpty => this.length == 0; |
| 20923 | 21023 |
| 20924 // From List<Entry>: | 21024 // From List<Entry>: |
| 20925 | 21025 |
| 20926 void sort([Comparator<Entry> compare = Comparable.compare]) { | 21026 void sort([Comparator<Entry> compare = Comparable.compare]) { |
| 20927 throw new UnsupportedError("Cannot sort immutable List."); | 21027 throw new UnsupportedError("Cannot sort immutable List."); |
| 20928 } | 21028 } |
| 20929 | 21029 |
| 20930 int indexOf(Entry element, [int start = 0]) => | 21030 int indexOf(Entry element, [int start = 0]) => |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20998 } | 21098 } |
| 20999 | 21099 |
| 21000 void addLast(EntrySync value) { | 21100 void addLast(EntrySync value) { |
| 21001 throw new UnsupportedError("Cannot add to immutable List."); | 21101 throw new UnsupportedError("Cannot add to immutable List."); |
| 21002 } | 21102 } |
| 21003 | 21103 |
| 21004 void addAll(Collection<EntrySync> collection) { | 21104 void addAll(Collection<EntrySync> collection) { |
| 21005 throw new UnsupportedError("Cannot add to immutable List."); | 21105 throw new UnsupportedError("Cannot add to immutable List."); |
| 21006 } | 21106 } |
| 21007 | 21107 |
| 21008 bool contains(EntrySync element) => _Collections.contains(this, element); | 21108 bool contains(EntrySync element) => Collections.contains(this, element); |
| 21009 | 21109 |
| 21010 void forEach(void f(EntrySync element)) => _Collections.forEach(this, f); | 21110 void forEach(void f(EntrySync element)) => Collections.forEach(this, f); |
| 21011 | 21111 |
| 21012 Collection map(f(EntrySync element)) => _Collections.map(this, [], f); | 21112 Collection map(f(EntrySync element)) => Collections.map(this, [], f); |
| 21013 | 21113 |
| 21014 Collection<EntrySync> filter(bool f(EntrySync element)) => | 21114 Collection<EntrySync> filter(bool f(EntrySync element)) => |
| 21015 _Collections.filter(this, <EntrySync>[], f); | 21115 Collections.filter(this, <EntrySync>[], f); |
| 21016 | 21116 |
| 21017 bool every(bool f(EntrySync element)) => _Collections.every(this, f); | 21117 bool every(bool f(EntrySync element)) => Collections.every(this, f); |
| 21018 | 21118 |
| 21019 bool some(bool f(EntrySync element)) => _Collections.some(this, f); | 21119 bool some(bool f(EntrySync element)) => Collections.some(this, f); |
| 21020 | 21120 |
| 21021 bool get isEmpty => this.length == 0; | 21121 bool get isEmpty => this.length == 0; |
| 21022 | 21122 |
| 21023 // From List<EntrySync>: | 21123 // From List<EntrySync>: |
| 21024 | 21124 |
| 21025 void sort([Comparator<EntrySync> compare = Comparable.compare]) { | 21125 void sort([Comparator<EntrySync> compare = Comparable.compare]) { |
| 21026 throw new UnsupportedError("Cannot sort immutable List."); | 21126 throw new UnsupportedError("Cannot sort immutable List."); |
| 21027 } | 21127 } |
| 21028 | 21128 |
| 21029 int indexOf(EntrySync element, [int start = 0]) => | 21129 int indexOf(EntrySync element, [int start = 0]) => |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21069 | 21169 |
| 21070 class _EventSourceFactoryProvider { | 21170 class _EventSourceFactoryProvider { |
| 21071 static EventSource createEventSource(String scriptUrl) => | 21171 static EventSource createEventSource(String scriptUrl) => |
| 21072 JS('EventSource', 'new EventSource(#)', scriptUrl); | 21172 JS('EventSource', 'new EventSource(#)', scriptUrl); |
| 21073 } | 21173 } |
| 21074 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21174 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 21075 // for details. All rights reserved. Use of this source code is governed by a | 21175 // for details. All rights reserved. Use of this source code is governed by a |
| 21076 // BSD-style license that can be found in the LICENSE file. | 21176 // BSD-style license that can be found in the LICENSE file. |
| 21077 | 21177 |
| 21078 | 21178 |
| 21079 /// @domName FileList | |
| 21080 class _FileList implements JavaScriptIndexingBehavior, List<File> native "*FileL
ist" { | |
| 21081 | |
| 21082 /** @domName FileList.length */ | |
| 21083 final int length; | |
| 21084 | |
| 21085 File operator[](int index) => JS("File", "#[#]", this, index); | |
| 21086 | |
| 21087 void operator[]=(int index, File value) { | |
| 21088 throw new UnsupportedError("Cannot assign element of immutable List."); | |
| 21089 } | |
| 21090 // -- start List<File> mixins. | |
| 21091 // File is the element type. | |
| 21092 | |
| 21093 // From Iterable<File>: | |
| 21094 | |
| 21095 Iterator<File> iterator() { | |
| 21096 // Note: NodeLists are not fixed size. And most probably length shouldn't | |
| 21097 // be cached in both iterator _and_ forEach method. For now caching it | |
| 21098 // for consistency. | |
| 21099 return new FixedSizeListIterator<File>(this); | |
| 21100 } | |
| 21101 | |
| 21102 // From Collection<File>: | |
| 21103 | |
| 21104 void add(File value) { | |
| 21105 throw new UnsupportedError("Cannot add to immutable List."); | |
| 21106 } | |
| 21107 | |
| 21108 void addLast(File value) { | |
| 21109 throw new UnsupportedError("Cannot add to immutable List."); | |
| 21110 } | |
| 21111 | |
| 21112 void addAll(Collection<File> collection) { | |
| 21113 throw new UnsupportedError("Cannot add to immutable List."); | |
| 21114 } | |
| 21115 | |
| 21116 bool contains(File element) => _Collections.contains(this, element); | |
| 21117 | |
| 21118 void forEach(void f(File element)) => _Collections.forEach(this, f); | |
| 21119 | |
| 21120 Collection map(f(File element)) => _Collections.map(this, [], f); | |
| 21121 | |
| 21122 Collection<File> filter(bool f(File element)) => | |
| 21123 _Collections.filter(this, <File>[], f); | |
| 21124 | |
| 21125 bool every(bool f(File element)) => _Collections.every(this, f); | |
| 21126 | |
| 21127 bool some(bool f(File element)) => _Collections.some(this, f); | |
| 21128 | |
| 21129 bool get isEmpty => this.length == 0; | |
| 21130 | |
| 21131 // From List<File>: | |
| 21132 | |
| 21133 void sort([Comparator<File> compare = Comparable.compare]) { | |
| 21134 throw new UnsupportedError("Cannot sort immutable List."); | |
| 21135 } | |
| 21136 | |
| 21137 int indexOf(File element, [int start = 0]) => | |
| 21138 _Lists.indexOf(this, element, start, this.length); | |
| 21139 | |
| 21140 int lastIndexOf(File element, [int start]) { | |
| 21141 if (start == null) start = length - 1; | |
| 21142 return _Lists.lastIndexOf(this, element, start); | |
| 21143 } | |
| 21144 | |
| 21145 File get first => this[0]; | |
| 21146 | |
| 21147 File get last => this[length - 1]; | |
| 21148 | |
| 21149 File removeLast() { | |
| 21150 throw new UnsupportedError("Cannot removeLast on immutable List."); | |
| 21151 } | |
| 21152 | |
| 21153 void setRange(int start, int rangeLength, List<File> from, [int startFrom]) { | |
| 21154 throw new UnsupportedError("Cannot setRange on immutable List."); | |
| 21155 } | |
| 21156 | |
| 21157 void removeRange(int start, int rangeLength) { | |
| 21158 throw new UnsupportedError("Cannot removeRange on immutable List."); | |
| 21159 } | |
| 21160 | |
| 21161 void insertRange(int start, int rangeLength, [File initialValue]) { | |
| 21162 throw new UnsupportedError("Cannot insertRange on immutable List."); | |
| 21163 } | |
| 21164 | |
| 21165 List<File> getRange(int start, int rangeLength) => | |
| 21166 _Lists.getRange(this, start, rangeLength, <File>[]); | |
| 21167 | |
| 21168 // -- end List<File> mixins. | |
| 21169 | |
| 21170 /** @domName FileList.item */ | |
| 21171 File item(int index) native; | |
| 21172 } | |
| 21173 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21174 // for details. All rights reserved. Use of this source code is governed by a | |
| 21175 // BSD-style license that can be found in the LICENSE file. | |
| 21176 | |
| 21177 | |
| 21178 class _FileReaderFactoryProvider { | 21179 class _FileReaderFactoryProvider { |
| 21179 static FileReader createFileReader() => | 21180 static FileReader createFileReader() => |
| 21180 JS('FileReader', 'new FileReader()' ); | 21181 JS('FileReader', 'new FileReader()' ); |
| 21181 } | 21182 } |
| 21182 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21183 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 21183 // for details. All rights reserved. Use of this source code is governed by a | 21184 // for details. All rights reserved. Use of this source code is governed by a |
| 21184 // BSD-style license that can be found in the LICENSE file. | 21185 // BSD-style license that can be found in the LICENSE file. |
| 21185 | 21186 |
| 21186 | 21187 |
| 21187 class _FileReaderSyncFactoryProvider { | 21188 class _FileReaderSyncFactoryProvider { |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21234 } | 21235 } |
| 21235 | 21236 |
| 21236 void addLast(Gamepad value) { | 21237 void addLast(Gamepad value) { |
| 21237 throw new UnsupportedError("Cannot add to immutable List."); | 21238 throw new UnsupportedError("Cannot add to immutable List."); |
| 21238 } | 21239 } |
| 21239 | 21240 |
| 21240 void addAll(Collection<Gamepad> collection) { | 21241 void addAll(Collection<Gamepad> collection) { |
| 21241 throw new UnsupportedError("Cannot add to immutable List."); | 21242 throw new UnsupportedError("Cannot add to immutable List."); |
| 21242 } | 21243 } |
| 21243 | 21244 |
| 21244 bool contains(Gamepad element) => _Collections.contains(this, element); | 21245 bool contains(Gamepad element) => Collections.contains(this, element); |
| 21245 | 21246 |
| 21246 void forEach(void f(Gamepad element)) => _Collections.forEach(this, f); | 21247 void forEach(void f(Gamepad element)) => Collections.forEach(this, f); |
| 21247 | 21248 |
| 21248 Collection map(f(Gamepad element)) => _Collections.map(this, [], f); | 21249 Collection map(f(Gamepad element)) => Collections.map(this, [], f); |
| 21249 | 21250 |
| 21250 Collection<Gamepad> filter(bool f(Gamepad element)) => | 21251 Collection<Gamepad> filter(bool f(Gamepad element)) => |
| 21251 _Collections.filter(this, <Gamepad>[], f); | 21252 Collections.filter(this, <Gamepad>[], f); |
| 21252 | 21253 |
| 21253 bool every(bool f(Gamepad element)) => _Collections.every(this, f); | 21254 bool every(bool f(Gamepad element)) => Collections.every(this, f); |
| 21254 | 21255 |
| 21255 bool some(bool f(Gamepad element)) => _Collections.some(this, f); | 21256 bool some(bool f(Gamepad element)) => Collections.some(this, f); |
| 21256 | 21257 |
| 21257 bool get isEmpty => this.length == 0; | 21258 bool get isEmpty => this.length == 0; |
| 21258 | 21259 |
| 21259 // From List<Gamepad>: | 21260 // From List<Gamepad>: |
| 21260 | 21261 |
| 21261 void sort([Comparator<Gamepad> compare = Comparable.compare]) { | 21262 void sort([Comparator<Gamepad> compare = Comparable.compare]) { |
| 21262 throw new UnsupportedError("Cannot sort immutable List."); | 21263 throw new UnsupportedError("Cannot sort immutable List."); |
| 21263 } | 21264 } |
| 21264 | 21265 |
| 21265 int indexOf(Gamepad element, [int start = 0]) => | 21266 int indexOf(Gamepad element, [int start = 0]) => |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21386 } | 21387 } |
| 21387 | 21388 |
| 21388 void addLast(MediaStream value) { | 21389 void addLast(MediaStream value) { |
| 21389 throw new UnsupportedError("Cannot add to immutable List."); | 21390 throw new UnsupportedError("Cannot add to immutable List."); |
| 21390 } | 21391 } |
| 21391 | 21392 |
| 21392 void addAll(Collection<MediaStream> collection) { | 21393 void addAll(Collection<MediaStream> collection) { |
| 21393 throw new UnsupportedError("Cannot add to immutable List."); | 21394 throw new UnsupportedError("Cannot add to immutable List."); |
| 21394 } | 21395 } |
| 21395 | 21396 |
| 21396 bool contains(MediaStream element) => _Collections.contains(this, element); | 21397 bool contains(MediaStream element) => Collections.contains(this, element); |
| 21397 | 21398 |
| 21398 void forEach(void f(MediaStream element)) => _Collections.forEach(this, f); | 21399 void forEach(void f(MediaStream element)) => Collections.forEach(this, f); |
| 21399 | 21400 |
| 21400 Collection map(f(MediaStream element)) => _Collections.map(this, [], f); | 21401 Collection map(f(MediaStream element)) => Collections.map(this, [], f); |
| 21401 | 21402 |
| 21402 Collection<MediaStream> filter(bool f(MediaStream element)) => | 21403 Collection<MediaStream> filter(bool f(MediaStream element)) => |
| 21403 _Collections.filter(this, <MediaStream>[], f); | 21404 Collections.filter(this, <MediaStream>[], f); |
| 21404 | 21405 |
| 21405 bool every(bool f(MediaStream element)) => _Collections.every(this, f); | 21406 bool every(bool f(MediaStream element)) => Collections.every(this, f); |
| 21406 | 21407 |
| 21407 bool some(bool f(MediaStream element)) => _Collections.some(this, f); | 21408 bool some(bool f(MediaStream element)) => Collections.some(this, f); |
| 21408 | 21409 |
| 21409 bool get isEmpty => this.length == 0; | 21410 bool get isEmpty => this.length == 0; |
| 21410 | 21411 |
| 21411 // From List<MediaStream>: | 21412 // From List<MediaStream>: |
| 21412 | 21413 |
| 21413 void sort([Comparator<MediaStream> compare = Comparable.compare]) { | 21414 void sort([Comparator<MediaStream> compare = Comparable.compare]) { |
| 21414 throw new UnsupportedError("Cannot sort immutable List."); | 21415 throw new UnsupportedError("Cannot sort immutable List."); |
| 21415 } | 21416 } |
| 21416 | 21417 |
| 21417 int indexOf(MediaStream element, [int start = 0]) => | 21418 int indexOf(MediaStream element, [int start = 0]) => |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21530 } | 21531 } |
| 21531 | 21532 |
| 21532 void addLast(Node value) { | 21533 void addLast(Node value) { |
| 21533 throw new UnsupportedError("Cannot add to immutable List."); | 21534 throw new UnsupportedError("Cannot add to immutable List."); |
| 21534 } | 21535 } |
| 21535 | 21536 |
| 21536 void addAll(Collection<Node> collection) { | 21537 void addAll(Collection<Node> collection) { |
| 21537 throw new UnsupportedError("Cannot add to immutable List."); | 21538 throw new UnsupportedError("Cannot add to immutable List."); |
| 21538 } | 21539 } |
| 21539 | 21540 |
| 21540 bool contains(Node element) => _Collections.contains(this, element); | 21541 bool contains(Node element) => Collections.contains(this, element); |
| 21541 | 21542 |
| 21542 void forEach(void f(Node element)) => _Collections.forEach(this, f); | 21543 void forEach(void f(Node element)) => Collections.forEach(this, f); |
| 21543 | 21544 |
| 21544 Collection map(f(Node element)) => _Collections.map(this, [], f); | 21545 Collection map(f(Node element)) => Collections.map(this, [], f); |
| 21545 | 21546 |
| 21546 Collection<Node> filter(bool f(Node element)) => | 21547 Collection<Node> filter(bool f(Node element)) => |
| 21547 _Collections.filter(this, <Node>[], f); | 21548 Collections.filter(this, <Node>[], f); |
| 21548 | 21549 |
| 21549 bool every(bool f(Node element)) => _Collections.every(this, f); | 21550 bool every(bool f(Node element)) => Collections.every(this, f); |
| 21550 | 21551 |
| 21551 bool some(bool f(Node element)) => _Collections.some(this, f); | 21552 bool some(bool f(Node element)) => Collections.some(this, f); |
| 21552 | 21553 |
| 21553 bool get isEmpty => this.length == 0; | 21554 bool get isEmpty => this.length == 0; |
| 21554 | 21555 |
| 21555 // From List<Node>: | 21556 // From List<Node>: |
| 21556 | 21557 |
| 21557 void sort([Comparator<Node> compare = Comparable.compare]) { | 21558 void sort([Comparator<Node> compare = Comparable.compare]) { |
| 21558 throw new UnsupportedError("Cannot sort immutable List."); | 21559 throw new UnsupportedError("Cannot sort immutable List."); |
| 21559 } | 21560 } |
| 21560 | 21561 |
| 21561 int indexOf(Node element, [int start = 0]) => | 21562 int indexOf(Node element, [int start = 0]) => |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21747 } | 21748 } |
| 21748 | 21749 |
| 21749 void addLast(SpeechInputResult value) { | 21750 void addLast(SpeechInputResult value) { |
| 21750 throw new UnsupportedError("Cannot add to immutable List."); | 21751 throw new UnsupportedError("Cannot add to immutable List."); |
| 21751 } | 21752 } |
| 21752 | 21753 |
| 21753 void addAll(Collection<SpeechInputResult> collection) { | 21754 void addAll(Collection<SpeechInputResult> collection) { |
| 21754 throw new UnsupportedError("Cannot add to immutable List."); | 21755 throw new UnsupportedError("Cannot add to immutable List."); |
| 21755 } | 21756 } |
| 21756 | 21757 |
| 21757 bool contains(SpeechInputResult element) => _Collections.contains(this, elemen
t); | 21758 bool contains(SpeechInputResult element) => Collections.contains(this, element
); |
| 21758 | 21759 |
| 21759 void forEach(void f(SpeechInputResult element)) => _Collections.forEach(this,
f); | 21760 void forEach(void f(SpeechInputResult element)) => Collections.forEach(this, f
); |
| 21760 | 21761 |
| 21761 Collection map(f(SpeechInputResult element)) => _Collections.map(this, [], f); | 21762 Collection map(f(SpeechInputResult element)) => Collections.map(this, [], f); |
| 21762 | 21763 |
| 21763 Collection<SpeechInputResult> filter(bool f(SpeechInputResult element)) => | 21764 Collection<SpeechInputResult> filter(bool f(SpeechInputResult element)) => |
| 21764 _Collections.filter(this, <SpeechInputResult>[], f); | 21765 Collections.filter(this, <SpeechInputResult>[], f); |
| 21765 | 21766 |
| 21766 bool every(bool f(SpeechInputResult element)) => _Collections.every(this, f); | 21767 bool every(bool f(SpeechInputResult element)) => Collections.every(this, f); |
| 21767 | 21768 |
| 21768 bool some(bool f(SpeechInputResult element)) => _Collections.some(this, f); | 21769 bool some(bool f(SpeechInputResult element)) => Collections.some(this, f); |
| 21769 | 21770 |
| 21770 bool get isEmpty => this.length == 0; | 21771 bool get isEmpty => this.length == 0; |
| 21771 | 21772 |
| 21772 // From List<SpeechInputResult>: | 21773 // From List<SpeechInputResult>: |
| 21773 | 21774 |
| 21774 void sort([Comparator<SpeechInputResult> compare = Comparable.compare]) { | 21775 void sort([Comparator<SpeechInputResult> compare = Comparable.compare]) { |
| 21775 throw new UnsupportedError("Cannot sort immutable List."); | 21776 throw new UnsupportedError("Cannot sort immutable List."); |
| 21776 } | 21777 } |
| 21777 | 21778 |
| 21778 int indexOf(SpeechInputResult element, [int start = 0]) => | 21779 int indexOf(SpeechInputResult element, [int start = 0]) => |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21855 } | 21856 } |
| 21856 | 21857 |
| 21857 void addLast(SpeechRecognitionResult value) { | 21858 void addLast(SpeechRecognitionResult value) { |
| 21858 throw new UnsupportedError("Cannot add to immutable List."); | 21859 throw new UnsupportedError("Cannot add to immutable List."); |
| 21859 } | 21860 } |
| 21860 | 21861 |
| 21861 void addAll(Collection<SpeechRecognitionResult> collection) { | 21862 void addAll(Collection<SpeechRecognitionResult> collection) { |
| 21862 throw new UnsupportedError("Cannot add to immutable List."); | 21863 throw new UnsupportedError("Cannot add to immutable List."); |
| 21863 } | 21864 } |
| 21864 | 21865 |
| 21865 bool contains(SpeechRecognitionResult element) => _Collections.contains(this,
element); | 21866 bool contains(SpeechRecognitionResult element) => Collections.contains(this, e
lement); |
| 21866 | 21867 |
| 21867 void forEach(void f(SpeechRecognitionResult element)) => _Collections.forEach(
this, f); | 21868 void forEach(void f(SpeechRecognitionResult element)) => Collections.forEach(t
his, f); |
| 21868 | 21869 |
| 21869 Collection map(f(SpeechRecognitionResult element)) => _Collections.map(this, [
], f); | 21870 Collection map(f(SpeechRecognitionResult element)) => Collections.map(this, []
, f); |
| 21870 | 21871 |
| 21871 Collection<SpeechRecognitionResult> filter(bool f(SpeechRecognitionResult elem
ent)) => | 21872 Collection<SpeechRecognitionResult> filter(bool f(SpeechRecognitionResult elem
ent)) => |
| 21872 _Collections.filter(this, <SpeechRecognitionResult>[], f); | 21873 Collections.filter(this, <SpeechRecognitionResult>[], f); |
| 21873 | 21874 |
| 21874 bool every(bool f(SpeechRecognitionResult element)) => _Collections.every(this
, f); | 21875 bool every(bool f(SpeechRecognitionResult element)) => Collections.every(this,
f); |
| 21875 | 21876 |
| 21876 bool some(bool f(SpeechRecognitionResult element)) => _Collections.some(this,
f); | 21877 bool some(bool f(SpeechRecognitionResult element)) => Collections.some(this, f
); |
| 21877 | 21878 |
| 21878 bool get isEmpty => this.length == 0; | 21879 bool get isEmpty => this.length == 0; |
| 21879 | 21880 |
| 21880 // From List<SpeechRecognitionResult>: | 21881 // From List<SpeechRecognitionResult>: |
| 21881 | 21882 |
| 21882 void sort([Comparator<SpeechRecognitionResult> compare = Comparable.compare])
{ | 21883 void sort([Comparator<SpeechRecognitionResult> compare = Comparable.compare])
{ |
| 21883 throw new UnsupportedError("Cannot sort immutable List."); | 21884 throw new UnsupportedError("Cannot sort immutable List."); |
| 21884 } | 21885 } |
| 21885 | 21886 |
| 21886 int indexOf(SpeechRecognitionResult element, [int start = 0]) => | 21887 int indexOf(SpeechRecognitionResult element, [int start = 0]) => |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21954 } | 21955 } |
| 21955 | 21956 |
| 21956 void addLast(StyleSheet value) { | 21957 void addLast(StyleSheet value) { |
| 21957 throw new UnsupportedError("Cannot add to immutable List."); | 21958 throw new UnsupportedError("Cannot add to immutable List."); |
| 21958 } | 21959 } |
| 21959 | 21960 |
| 21960 void addAll(Collection<StyleSheet> collection) { | 21961 void addAll(Collection<StyleSheet> collection) { |
| 21961 throw new UnsupportedError("Cannot add to immutable List."); | 21962 throw new UnsupportedError("Cannot add to immutable List."); |
| 21962 } | 21963 } |
| 21963 | 21964 |
| 21964 bool contains(StyleSheet element) => _Collections.contains(this, element); | 21965 bool contains(StyleSheet element) => Collections.contains(this, element); |
| 21965 | 21966 |
| 21966 void forEach(void f(StyleSheet element)) => _Collections.forEach(this, f); | 21967 void forEach(void f(StyleSheet element)) => Collections.forEach(this, f); |
| 21967 | 21968 |
| 21968 Collection map(f(StyleSheet element)) => _Collections.map(this, [], f); | 21969 Collection map(f(StyleSheet element)) => Collections.map(this, [], f); |
| 21969 | 21970 |
| 21970 Collection<StyleSheet> filter(bool f(StyleSheet element)) => | 21971 Collection<StyleSheet> filter(bool f(StyleSheet element)) => |
| 21971 _Collections.filter(this, <StyleSheet>[], f); | 21972 Collections.filter(this, <StyleSheet>[], f); |
| 21972 | 21973 |
| 21973 bool every(bool f(StyleSheet element)) => _Collections.every(this, f); | 21974 bool every(bool f(StyleSheet element)) => Collections.every(this, f); |
| 21974 | 21975 |
| 21975 bool some(bool f(StyleSheet element)) => _Collections.some(this, f); | 21976 bool some(bool f(StyleSheet element)) => Collections.some(this, f); |
| 21976 | 21977 |
| 21977 bool get isEmpty => this.length == 0; | 21978 bool get isEmpty => this.length == 0; |
| 21978 | 21979 |
| 21979 // From List<StyleSheet>: | 21980 // From List<StyleSheet>: |
| 21980 | 21981 |
| 21981 void sort([Comparator<StyleSheet> compare = Comparable.compare]) { | 21982 void sort([Comparator<StyleSheet> compare = Comparable.compare]) { |
| 21982 throw new UnsupportedError("Cannot sort immutable List."); | 21983 throw new UnsupportedError("Cannot sort immutable List."); |
| 21983 } | 21984 } |
| 21984 | 21985 |
| 21985 int indexOf(StyleSheet element, [int start = 0]) => | 21986 int indexOf(StyleSheet element, [int start = 0]) => |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 22077 } | 22078 } |
| 22078 | 22079 |
| 22079 void addLast(Animation value) { | 22080 void addLast(Animation value) { |
| 22080 throw new UnsupportedError("Cannot add to immutable List."); | 22081 throw new UnsupportedError("Cannot add to immutable List."); |
| 22081 } | 22082 } |
| 22082 | 22083 |
| 22083 void addAll(Collection<Animation> collection) { | 22084 void addAll(Collection<Animation> collection) { |
| 22084 throw new UnsupportedError("Cannot add to immutable List."); | 22085 throw new UnsupportedError("Cannot add to immutable List."); |
| 22085 } | 22086 } |
| 22086 | 22087 |
| 22087 bool contains(Animation element) => _Collections.contains(this, element); | 22088 bool contains(Animation element) => Collections.contains(this, element); |
| 22088 | 22089 |
| 22089 void forEach(void f(Animation element)) => _Collections.forEach(this, f); | 22090 void forEach(void f(Animation element)) => Collections.forEach(this, f); |
| 22090 | 22091 |
| 22091 Collection map(f(Animation element)) => _Collections.map(this, [], f); | 22092 Collection map(f(Animation element)) => Collections.map(this, [], f); |
| 22092 | 22093 |
| 22093 Collection<Animation> filter(bool f(Animation element)) => | 22094 Collection<Animation> filter(bool f(Animation element)) => |
| 22094 _Collections.filter(this, <Animation>[], f); | 22095 Collections.filter(this, <Animation>[], f); |
| 22095 | 22096 |
| 22096 bool every(bool f(Animation element)) => _Collections.every(this, f); | 22097 bool every(bool f(Animation element)) => Collections.every(this, f); |
| 22097 | 22098 |
| 22098 bool some(bool f(Animation element)) => _Collections.some(this, f); | 22099 bool some(bool f(Animation element)) => Collections.some(this, f); |
| 22099 | 22100 |
| 22100 bool get isEmpty => this.length == 0; | 22101 bool get isEmpty => this.length == 0; |
| 22101 | 22102 |
| 22102 // From List<Animation>: | 22103 // From List<Animation>: |
| 22103 | 22104 |
| 22104 void sort([Comparator<Animation> compare = Comparable.compare]) { | 22105 void sort([Comparator<Animation> compare = Comparable.compare]) { |
| 22105 throw new UnsupportedError("Cannot sort immutable List."); | 22106 throw new UnsupportedError("Cannot sort immutable List."); |
| 22106 } | 22107 } |
| 22107 | 22108 |
| 22108 int indexOf(Animation element, [int start = 0]) => | 22109 int indexOf(Animation element, [int start = 0]) => |
| (...skipping 1225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 23334 canceller = window.clearInterval; | 23335 canceller = window.clearInterval; |
| 23335 } else { | 23336 } else { |
| 23336 maker = window.setTimeout; | 23337 maker = window.setTimeout; |
| 23337 canceller = window.clearTimeout; | 23338 canceller = window.clearTimeout; |
| 23338 } | 23339 } |
| 23339 Timer timer; | 23340 Timer timer; |
| 23340 final int id = maker(() { callback(timer); }, milliSeconds); | 23341 final int id = maker(() { callback(timer); }, milliSeconds); |
| 23341 timer = new _Timer(() { canceller(id); }); | 23342 timer = new _Timer(() { canceller(id); }); |
| 23342 return timer; | 23343 return timer; |
| 23343 }; | 23344 }; |
| 23344 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 23345 // for details. All rights reserved. Use of this source code is governed by a | |
| 23346 // BSD-style license that can be found in the LICENSE file. | |
| 23347 | |
| 23348 | |
| 23349 /** | |
| 23350 * The [Collections] class implements static methods useful when | |
| 23351 * writing a class that implements [Collection] and the [iterator] | |
| 23352 * method. | |
| 23353 */ | |
| 23354 class _Collections { | |
| 23355 static bool contains(Iterable<Object> iterable, Object element) { | |
| 23356 for (final e in iterable) { | |
| 23357 if (e == element) return true; | |
| 23358 } | |
| 23359 return false; | |
| 23360 } | |
| 23361 | |
| 23362 static void forEach(Iterable<Object> iterable, void f(Object o)) { | |
| 23363 for (final e in iterable) { | |
| 23364 f(e); | |
| 23365 } | |
| 23366 } | |
| 23367 | |
| 23368 static List map(Iterable<Object> source, | |
| 23369 List<Object> destination, | |
| 23370 f(o)) { | |
| 23371 for (final e in source) { | |
| 23372 destination.add(f(e)); | |
| 23373 } | |
| 23374 return destination; | |
| 23375 } | |
| 23376 | |
| 23377 static bool some(Iterable<Object> iterable, bool f(Object o)) { | |
| 23378 for (final e in iterable) { | |
| 23379 if (f(e)) return true; | |
| 23380 } | |
| 23381 return false; | |
| 23382 } | |
| 23383 | |
| 23384 static bool every(Iterable<Object> iterable, bool f(Object o)) { | |
| 23385 for (final e in iterable) { | |
| 23386 if (!f(e)) return false; | |
| 23387 } | |
| 23388 return true; | |
| 23389 } | |
| 23390 | |
| 23391 static List filter(Iterable<Object> source, | |
| 23392 List<Object> destination, | |
| 23393 bool f(o)) { | |
| 23394 for (final e in source) { | |
| 23395 if (f(e)) destination.add(e); | |
| 23396 } | |
| 23397 return destination; | |
| 23398 } | |
| 23399 | |
| 23400 static bool isEmpty(Iterable<Object> iterable) { | |
| 23401 return !iterable.iterator().hasNext; | |
| 23402 } | |
| 23403 } | |
| 23404 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 23345 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 23405 // for details. All rights reserved. Use of this source code is governed by a | 23346 // for details. All rights reserved. Use of this source code is governed by a |
| 23406 // BSD-style license that can be found in the LICENSE file. | 23347 // BSD-style license that can be found in the LICENSE file. |
| 23407 | 23348 |
| 23408 | 23349 |
| 23409 class _HttpRequestUtils { | 23350 class _HttpRequestUtils { |
| 23410 | 23351 |
| 23411 // Helper for factory HttpRequest.get | 23352 // Helper for factory HttpRequest.get |
| 23412 static HttpRequest get(String url, | 23353 static HttpRequest get(String url, |
| 23413 onSuccess(HttpRequest request), | 23354 onSuccess(HttpRequest request), |
| (...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 24216 // with native names. | 24157 // with native names. |
| 24217 _convertDartToNative_ImageData(ImageData imageData) { | 24158 _convertDartToNative_ImageData(ImageData imageData) { |
| 24218 if (imageData is _TypedImageData) { | 24159 if (imageData is _TypedImageData) { |
| 24219 return JS('', '{data: #, height: #, width: #}', | 24160 return JS('', '{data: #, height: #, width: #}', |
| 24220 imageData.data, imageData.height, imageData.width); | 24161 imageData.data, imageData.height, imageData.width); |
| 24221 } | 24162 } |
| 24222 return imageData; | 24163 return imageData; |
| 24223 } | 24164 } |
| 24224 | 24165 |
| 24225 | 24166 |
| 24226 /// Converts a JavaScript object with properties into a Dart Map. | |
| 24227 /// Not suitable for nested objects. | |
| 24228 Map _convertNativeToDart_Dictionary(object) { | |
| 24229 if (object == null) return null; | |
| 24230 var dict = {}; | |
| 24231 for (final key in JS('=List', 'Object.getOwnPropertyNames(#)', object)) { | |
| 24232 dict[key] = JS('var', '#[#]', object, key); | |
| 24233 } | |
| 24234 return dict; | |
| 24235 } | |
| 24236 | |
| 24237 /// Converts a flat Dart map into a JavaScript object with properties. | |
| 24238 _convertDartToNative_Dictionary(Map dict) { | |
| 24239 if (dict == null) return null; | |
| 24240 var object = JS('var', '{}'); | |
| 24241 dict.forEach((String key, value) { | |
| 24242 JS('void', '#[#] = #', object, key, value); | |
| 24243 }); | |
| 24244 return object; | |
| 24245 } | |
| 24246 | |
| 24247 | |
| 24248 /** | |
| 24249 * Ensures that the input is a JavaScript Array. | |
| 24250 * | |
| 24251 * Creates a new JavaScript array if necessary, otherwise returns the original. | |
| 24252 */ | |
| 24253 List _convertDartToNative_StringArray(List<String> input) { | |
| 24254 // TODO(sra). Implement this. | |
| 24255 return input; | |
| 24256 } | |
| 24257 | |
| 24258 | |
| 24259 // ----------------------------------------------------------------------------- | 24167 // ----------------------------------------------------------------------------- |
| 24260 | 24168 |
| 24261 /** | 24169 /** |
| 24262 * Converts a native IDBKey into a Dart object. | 24170 * Converts a native IDBKey into a Dart object. |
| 24263 * | 24171 * |
| 24264 * May return the original input. May mutate the original input (but will be | 24172 * May return the original input. May mutate the original input (but will be |
| 24265 * idempotent if mutation occurs). It is assumed that this conversion happens | 24173 * idempotent if mutation occurs). It is assumed that this conversion happens |
| 24266 * on native IDBKeys on all paths that return IDBKeys from native DOM calls. | 24174 * on native IDBKeys on all paths that return IDBKeys from native DOM calls. |
| 24267 * | 24175 * |
| 24268 * If necessary, JavaScript Dates are converted into Dart Dates. | 24176 * If necessary, JavaScript Dates are converted into Dart Dates. |
| 24269 */ | 24177 */ |
| 24270 _convertNativeToDart_IDBKey(nativeKey) { | 24178 _convertNativeToDart_IDBKey(nativeKey) { |
| 24271 containsDate(object) { | 24179 containsDate(object) { |
| 24272 if (_isJavaScriptDate(object)) return true; | 24180 if (isJavaScriptDate(object)) return true; |
| 24273 if (object is List) { | 24181 if (object is List) { |
| 24274 for (int i = 0; i < object.length; i++) { | 24182 for (int i = 0; i < object.length; i++) { |
| 24275 if (containsDate(object[i])) return true; | 24183 if (containsDate(object[i])) return true; |
| 24276 } | 24184 } |
| 24277 } | 24185 } |
| 24278 return false; // number, string. | 24186 return false; // number, string. |
| 24279 } | 24187 } |
| 24280 if (containsDate(nativeKey)) { | 24188 if (containsDate(nativeKey)) { |
| 24281 throw new UnimplementedError('IDBKey containing Date'); | 24189 throw new UnimplementedError('IDBKey containing Date'); |
| 24282 } | 24190 } |
| (...skipping 11 matching lines...) Expand all Loading... |
| 24294 */ | 24202 */ |
| 24295 _convertDartToNative_IDBKey(dartKey) { | 24203 _convertDartToNative_IDBKey(dartKey) { |
| 24296 // TODO: Implement. | 24204 // TODO: Implement. |
| 24297 return dartKey; | 24205 return dartKey; |
| 24298 } | 24206 } |
| 24299 | 24207 |
| 24300 | 24208 |
| 24301 | 24209 |
| 24302 /// May modify original. If so, action is idempotent. | 24210 /// May modify original. If so, action is idempotent. |
| 24303 _convertNativeToDart_IDBAny(object) { | 24211 _convertNativeToDart_IDBAny(object) { |
| 24304 return _convertNativeToDart_AcceptStructuredClone(object, mustCopy: false); | 24212 return convertNativeToDart_AcceptStructuredClone(object, mustCopy: false); |
| 24305 } | |
| 24306 | |
| 24307 /// Converts a Dart value into a JavaScript SerializedScriptValue. | |
| 24308 _convertDartToNative_SerializedScriptValue(value) { | |
| 24309 return _convertDartToNative_PrepareForStructuredClone(value); | |
| 24310 } | |
| 24311 | |
| 24312 /// Since the source object may be viewed via a JavaScript event listener the | |
| 24313 /// original may not be modified. | |
| 24314 _convertNativeToDart_SerializedScriptValue(object) { | |
| 24315 return _convertNativeToDart_AcceptStructuredClone(object, mustCopy: true); | |
| 24316 } | 24213 } |
| 24317 | 24214 |
| 24318 | 24215 |
| 24319 /** | |
| 24320 * Converts a Dart value into a JavaScript SerializedScriptValue. Returns the | |
| 24321 * original input or a functional 'copy'. Does not mutate the original. | |
| 24322 * | |
| 24323 * The main transformation is the translation of Dart Maps are converted to | |
| 24324 * JavaScript Objects. | |
| 24325 * | |
| 24326 * The algorithm is essentially a dry-run of the structured clone algorithm | |
| 24327 * described at | |
| 24328 * http://www.whatwg.org/specs/web-apps/current-work/multipage/common-dom-interf
aces.html#structured-clone | |
| 24329 * https://www.khronos.org/registry/typedarray/specs/latest/#9 | |
| 24330 * | |
| 24331 * Since the result of this function is expected to be passed only to JavaScript | |
| 24332 * operations that perform the structured clone algorithm which does not mutate | |
| 24333 * its output, the result may share structure with the input [value]. | |
| 24334 */ | |
| 24335 _convertDartToNative_PrepareForStructuredClone(value) { | |
| 24336 | |
| 24337 // TODO(sra): Replace slots with identity hash table. | |
| 24338 var values = []; | |
| 24339 var copies = []; // initially 'null', 'true' during initial DFS, then a copy. | |
| 24340 | |
| 24341 int findSlot(value) { | |
| 24342 int length = values.length; | |
| 24343 for (int i = 0; i < length; i++) { | |
| 24344 if (identical(values[i], value)) return i; | |
| 24345 } | |
| 24346 values.add(value); | |
| 24347 copies.add(null); | |
| 24348 return length; | |
| 24349 } | |
| 24350 readSlot(int i) => copies[i]; | |
| 24351 writeSlot(int i, x) { copies[i] = x; } | |
| 24352 cleanupSlots() {} // Will be needed if we mark objects with a property. | |
| 24353 | |
| 24354 // Returns the input, or a clone of the input. | |
| 24355 walk(e) { | |
| 24356 if (e == null) return e; | |
| 24357 if (e is bool) return e; | |
| 24358 if (e is num) return e; | |
| 24359 if (e is String) return e; | |
| 24360 if (e is Date) { | |
| 24361 // TODO(sra). | |
| 24362 throw new UnimplementedError('structured clone of Date'); | |
| 24363 } | |
| 24364 if (e is RegExp) { | |
| 24365 // TODO(sra). | |
| 24366 throw new UnimplementedError('structured clone of RegExp'); | |
| 24367 } | |
| 24368 | |
| 24369 // The browser's internal structured cloning algorithm will copy certain | |
| 24370 // types of object, but it will copy only its own implementations and not | |
| 24371 // just any Dart implementations of the interface. | |
| 24372 | |
| 24373 // TODO(sra): The JavaScript objects suitable for direct cloning by the | |
| 24374 // structured clone algorithm could be tagged with an private interface. | |
| 24375 | |
| 24376 if (e is File) return e; | |
| 24377 if (e is Blob) return e; | |
| 24378 if (e is _FileList) return e; | |
| 24379 | |
| 24380 // TODO(sra): Firefox: How to convert _TypedImageData on the other end? | |
| 24381 if (e is ImageData) return e; | |
| 24382 if (e is ArrayBuffer) return e; | |
| 24383 | |
| 24384 if (e is ArrayBufferView) return e; | |
| 24385 | |
| 24386 if (e is Map) { | |
| 24387 var slot = findSlot(e); | |
| 24388 var copy = readSlot(slot); | |
| 24389 if (copy != null) return copy; | |
| 24390 copy = JS('var', '{}'); | |
| 24391 writeSlot(slot, copy); | |
| 24392 e.forEach((key, value) { | |
| 24393 JS('void', '#[#] = #', copy, key, walk(value)); | |
| 24394 }); | |
| 24395 return copy; | |
| 24396 } | |
| 24397 | |
| 24398 if (e is List) { | |
| 24399 // Since a JavaScript Array is an instance of Dart List it is possible to | |
| 24400 // avoid making a copy of the list if there is no need to copy anything | |
| 24401 // reachable from the array. We defer creating a new array until a cycle | |
| 24402 // is detected or a subgraph was copied. | |
| 24403 int length = e.length; | |
| 24404 var slot = findSlot(e); | |
| 24405 var copy = readSlot(slot); | |
| 24406 if (copy != null) { | |
| 24407 if (true == copy) { // Cycle, so commit to making a copy. | |
| 24408 copy = JS('=List', 'new Array(#)', length); | |
| 24409 writeSlot(slot, copy); | |
| 24410 } | |
| 24411 return copy; | |
| 24412 } | |
| 24413 | |
| 24414 int i = 0; | |
| 24415 | |
| 24416 if (_isJavaScriptArray(e) && | |
| 24417 // We have to copy immutable lists, otherwise the structured clone | |
| 24418 // algorithm will copy the .immutable$list marker property, making the | |
| 24419 // list immutable when received! | |
| 24420 !_isImmutableJavaScriptArray(e)) { | |
| 24421 writeSlot(slot, true); // Deferred copy. | |
| 24422 for ( ; i < length; i++) { | |
| 24423 var element = e[i]; | |
| 24424 var elementCopy = walk(element); | |
| 24425 if (!identical(elementCopy, element)) { | |
| 24426 copy = readSlot(slot); // Cyclic reference may have created it. | |
| 24427 if (true == copy) { | |
| 24428 copy = JS('=List', 'new Array(#)', length); | |
| 24429 writeSlot(slot, copy); | |
| 24430 } | |
| 24431 for (int j = 0; j < i; j++) { | |
| 24432 copy[j] = e[j]; | |
| 24433 } | |
| 24434 copy[i] = elementCopy; | |
| 24435 i++; | |
| 24436 break; | |
| 24437 } | |
| 24438 } | |
| 24439 if (copy == null) { | |
| 24440 copy = e; | |
| 24441 writeSlot(slot, copy); | |
| 24442 } | |
| 24443 } else { | |
| 24444 // Not a JavaScript Array. We are forced to make a copy. | |
| 24445 copy = JS('=List', 'new Array(#)', length); | |
| 24446 writeSlot(slot, copy); | |
| 24447 } | |
| 24448 | |
| 24449 for ( ; i < length; i++) { | |
| 24450 copy[i] = walk(e[i]); | |
| 24451 } | |
| 24452 return copy; | |
| 24453 } | |
| 24454 | |
| 24455 throw new UnimplementedError('structured clone of other type'); | |
| 24456 } | |
| 24457 | |
| 24458 var copy = walk(value); | |
| 24459 cleanupSlots(); | |
| 24460 return copy; | |
| 24461 } | |
| 24462 | |
| 24463 /** | |
| 24464 * Converts a native value into a Dart object. | |
| 24465 * | |
| 24466 * If [mustCopy] is [:false:], may return the original input. May mutate the | |
| 24467 * original input (but will be idempotent if mutation occurs). It is assumed | |
| 24468 * that this conversion happens on native serializable script values such values | |
| 24469 * from native DOM calls. | |
| 24470 * | |
| 24471 * [object] is the result of a structured clone operation. | |
| 24472 * | |
| 24473 * If necessary, JavaScript Dates are converted into Dart Dates. | |
| 24474 * | |
| 24475 * If [mustCopy] is [:true:], the entire object is copied and the original input | |
| 24476 * is not mutated. This should be the case where Dart and JavaScript code can | |
| 24477 * access the value, for example, via multiple event listeners for | |
| 24478 * MessageEvents. Mutating the object to make it more 'Dart-like' would corrupt | |
| 24479 * the value as seen from the JavaScript listeners. | |
| 24480 */ | |
| 24481 _convertNativeToDart_AcceptStructuredClone(object, {mustCopy = false}) { | |
| 24482 | |
| 24483 // TODO(sra): Replace slots with identity hash table that works on non-dart | |
| 24484 // objects. | |
| 24485 var values = []; | |
| 24486 var copies = []; | |
| 24487 | |
| 24488 int findSlot(value) { | |
| 24489 int length = values.length; | |
| 24490 for (int i = 0; i < length; i++) { | |
| 24491 if (identical(values[i], value)) return i; | |
| 24492 } | |
| 24493 values.add(value); | |
| 24494 copies.add(null); | |
| 24495 return length; | |
| 24496 } | |
| 24497 readSlot(int i) => copies[i]; | |
| 24498 writeSlot(int i, x) { copies[i] = x; } | |
| 24499 | |
| 24500 walk(e) { | |
| 24501 if (e == null) return e; | |
| 24502 if (e is bool) return e; | |
| 24503 if (e is num) return e; | |
| 24504 if (e is String) return e; | |
| 24505 | |
| 24506 if (_isJavaScriptDate(e)) { | |
| 24507 // TODO(sra). | |
| 24508 throw new UnimplementedError('structured clone of Date'); | |
| 24509 } | |
| 24510 | |
| 24511 if (_isJavaScriptRegExp(e)) { | |
| 24512 // TODO(sra). | |
| 24513 throw new UnimplementedError('structured clone of RegExp'); | |
| 24514 } | |
| 24515 | |
| 24516 if (_isJavaScriptSimpleObject(e)) { | |
| 24517 // TODO(sra): If mustCopy is false, swizzle the prototype for one of a Map | |
| 24518 // implementation that uses the properies as storage. | |
| 24519 var slot = findSlot(e); | |
| 24520 var copy = readSlot(slot); | |
| 24521 if (copy != null) return copy; | |
| 24522 copy = {}; | |
| 24523 | |
| 24524 writeSlot(slot, copy); | |
| 24525 for (final key in JS('=List', 'Object.keys(#)', e)) { | |
| 24526 copy[key] = walk(JS('var', '#[#]', e, key)); | |
| 24527 } | |
| 24528 return copy; | |
| 24529 } | |
| 24530 | |
| 24531 if (_isJavaScriptArray(e)) { | |
| 24532 var slot = findSlot(e); | |
| 24533 var copy = readSlot(slot); | |
| 24534 if (copy != null) return copy; | |
| 24535 | |
| 24536 int length = e.length; | |
| 24537 // Since a JavaScript Array is an instance of Dart List, we can modify it | |
| 24538 // in-place unless we must copy. | |
| 24539 copy = mustCopy ? JS('=List', 'new Array(#)', length) : e; | |
| 24540 writeSlot(slot, copy); | |
| 24541 | |
| 24542 for (int i = 0; i < length; i++) { | |
| 24543 copy[i] = walk(e[i]); | |
| 24544 } | |
| 24545 return copy; | |
| 24546 } | |
| 24547 | |
| 24548 // Assume anything else is already a valid Dart object, either by having | |
| 24549 // already been processed, or e.g. a clonable native class. | |
| 24550 return e; | |
| 24551 } | |
| 24552 | |
| 24553 var copy = walk(object); | |
| 24554 return copy; | |
| 24555 } | |
| 24556 | |
| 24557 | |
| 24558 bool _isJavaScriptDate(value) => JS('bool', '# instanceof Date', value); | |
| 24559 bool _isJavaScriptRegExp(value) => JS('bool', '# instanceof RegExp', value); | |
| 24560 bool _isJavaScriptArray(value) => JS('bool', '# instanceof Array', value); | |
| 24561 bool _isJavaScriptSimpleObject(value) => | |
| 24562 JS('bool', 'Object.getPrototypeOf(#) === Object.prototype', value); | |
| 24563 bool _isImmutableJavaScriptArray(value) => | |
| 24564 JS('bool', r'!!(#.immutable$list)', value); | |
| 24565 | |
| 24566 | |
| 24567 | |
| 24568 const String _serializedScriptValue = | |
| 24569 'num|String|bool|' | |
| 24570 '=List|=Object|' | |
| 24571 'Blob|File|ArrayBuffer|ArrayBufferView' | |
| 24572 // TODO(sra): Add Date, RegExp. | |
| 24573 ; | |
| 24574 const _annotation_Creates_SerializedScriptValue = | |
| 24575 const Creates(_serializedScriptValue); | |
| 24576 const _annotation_Returns_SerializedScriptValue = | |
| 24577 const Returns(_serializedScriptValue); | |
| 24578 | |
| 24579 const String _idbKey = '=List|=Object|num|String'; // TODO(sra): Add Date. | 24216 const String _idbKey = '=List|=Object|num|String'; // TODO(sra): Add Date. |
| 24580 const _annotation_Creates_IDBKey = const Creates(_idbKey); | 24217 const _annotation_Creates_IDBKey = const Creates(_idbKey); |
| 24581 const _annotation_Returns_IDBKey = const Returns(_idbKey); | 24218 const _annotation_Returns_IDBKey = const Returns(_idbKey); |
| 24582 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 24219 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 24583 // for details. All rights reserved. Use of this source code is governed by a | 24220 // for details. All rights reserved. Use of this source code is governed by a |
| 24584 // BSD-style license that can be found in the LICENSE file. | 24221 // BSD-style license that can be found in the LICENSE file. |
| 24585 | 24222 |
| 24586 | 24223 |
| 24587 // TODO(vsm): Unify with Dartium version. | 24224 // TODO(vsm): Unify with Dartium version. |
| 24588 class _DOMWindowCrossFrame implements Window { | 24225 class _DOMWindowCrossFrame implements Window { |
| (...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 25119 if (length < 0) throw new ArgumentError('length'); | 24756 if (length < 0) throw new ArgumentError('length'); |
| 25120 if (start < 0) throw new RangeError.value(start); | 24757 if (start < 0) throw new RangeError.value(start); |
| 25121 int end = start + length; | 24758 int end = start + length; |
| 25122 if (end > a.length) throw new RangeError.value(end); | 24759 if (end > a.length) throw new RangeError.value(end); |
| 25123 for (int i = start; i < end; i++) { | 24760 for (int i = start; i < end; i++) { |
| 25124 accumulator.add(a[i]); | 24761 accumulator.add(a[i]); |
| 25125 } | 24762 } |
| 25126 return accumulator; | 24763 return accumulator; |
| 25127 } | 24764 } |
| 25128 } | 24765 } |
| OLD | NEW |