Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /// The Dart HTML library. | 1 /// The Dart HTML library. |
| 2 library dart.dom.html; | 2 library dart.dom.html; |
| 3 | 3 |
| 4 import 'dart:async'; | 4 import 'dart:async'; |
| 5 import 'dart:collection'; | 5 import 'dart:collection'; |
| 6 import 'dart:_collection-dev' hide Symbol; | 6 import 'dart:_collection-dev' hide Symbol; |
| 7 import 'dart:html_common'; | 7 import 'dart:html_common'; |
| 8 import 'dart:indexed_db'; | 8 import 'dart:indexed_db'; |
| 9 import 'dart:isolate'; | 9 import 'dart:isolate'; |
| 10 import 'dart:json' as json; | 10 import 'dart:json' as json; |
| (...skipping 1140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1151 @DocsEditable | 1151 @DocsEditable |
| 1152 @Creates('ImageData|=Object') | 1152 @Creates('ImageData|=Object') |
| 1153 _createImageDataFromImageData_1(imagedata) native; | 1153 _createImageDataFromImageData_1(imagedata) native; |
| 1154 | 1154 |
| 1155 @DomName('CanvasRenderingContext2D.createLinearGradient') | 1155 @DomName('CanvasRenderingContext2D.createLinearGradient') |
| 1156 @DocsEditable | 1156 @DocsEditable |
| 1157 CanvasGradient createLinearGradient(num x0, num y0, num x1, num y1) native; | 1157 CanvasGradient createLinearGradient(num x0, num y0, num x1, num y1) native; |
| 1158 | 1158 |
| 1159 @DomName('CanvasRenderingContext2D.createPattern') | 1159 @DomName('CanvasRenderingContext2D.createPattern') |
| 1160 @DocsEditable | 1160 @DocsEditable |
| 1161 CanvasPattern createPattern(canvas_OR_image, String repetitionType) native; | 1161 CanvasPattern createPattern(CanvasElement canvas, String repetitionType) nativ e; |
|
blois
2013/06/18 18:11:21
I think that all variants should be named, in case
| |
| 1162 | |
| 1163 @JSName('createPattern') | |
| 1164 @DomName('CanvasRenderingContext2D.createPattern') | |
| 1165 @DocsEditable | |
| 1166 CanvasPattern createPatternFromImage(ImageElement image, String repetitionType ) native; | |
| 1162 | 1167 |
| 1163 @DomName('CanvasRenderingContext2D.createRadialGradient') | 1168 @DomName('CanvasRenderingContext2D.createRadialGradient') |
| 1164 @DocsEditable | 1169 @DocsEditable |
| 1165 CanvasGradient createRadialGradient(num x0, num y0, num r0, num x1, num y1, nu m r1) native; | 1170 CanvasGradient createRadialGradient(num x0, num y0, num r0, num x1, num y1, nu m r1) native; |
| 1166 | 1171 |
| 1167 @DomName('CanvasRenderingContext2D.fill') | 1172 @DomName('CanvasRenderingContext2D.fill') |
| 1168 @DocsEditable | 1173 @DocsEditable |
| 1169 void fill([String winding]) native; | 1174 void fill([String winding]) native; |
| 1170 | 1175 |
| 1171 @DomName('CanvasRenderingContext2D.fillRect') | 1176 @DomName('CanvasRenderingContext2D.fillRect') |
| (...skipping 5011 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 6183 // http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#the-data transferitemlist-interface | 6188 // http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#the-data transferitemlist-interface |
| 6184 @Experimental | 6189 @Experimental |
| 6185 class DataTransferItemList native "DataTransferItemList" { | 6190 class DataTransferItemList native "DataTransferItemList" { |
| 6186 | 6191 |
| 6187 @DomName('DataTransferItemList.length') | 6192 @DomName('DataTransferItemList.length') |
| 6188 @DocsEditable | 6193 @DocsEditable |
| 6189 final int length; | 6194 final int length; |
| 6190 | 6195 |
| 6191 @DomName('DataTransferItemList.add') | 6196 @DomName('DataTransferItemList.add') |
| 6192 @DocsEditable | 6197 @DocsEditable |
| 6193 void add(data_OR_file, [String type]) native; | 6198 void add(String data, String type) native; |
| 6199 | |
| 6200 @JSName('add') | |
| 6201 @DomName('DataTransferItemList.add') | |
| 6202 @DocsEditable | |
| 6203 void addFile(File file) native; | |
| 6194 | 6204 |
| 6195 @DomName('DataTransferItemList.clear') | 6205 @DomName('DataTransferItemList.clear') |
| 6196 @DocsEditable | 6206 @DocsEditable |
| 6197 void clear() native; | 6207 void clear() native; |
| 6198 | 6208 |
| 6199 @DomName('DataTransferItemList.item') | 6209 @DomName('DataTransferItemList.item') |
| 6200 @DocsEditable | 6210 @DocsEditable |
| 6201 DataTransferItem item(int index) native; | 6211 DataTransferItem item(int index) native; |
| 6202 } | 6212 } |
| 6203 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6213 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 6424 | 6434 |
| 6425 @DomName('DirectoryEntry.createReader') | 6435 @DomName('DirectoryEntry.createReader') |
| 6426 @DocsEditable | 6436 @DocsEditable |
| 6427 DirectoryReader createReader() native; | 6437 DirectoryReader createReader() native; |
| 6428 | 6438 |
| 6429 @DomName('DirectoryEntry.getDirectory') | 6439 @DomName('DirectoryEntry.getDirectory') |
| 6430 @DocsEditable | 6440 @DocsEditable |
| 6431 void __getDirectory(String path, {Map options, _EntryCallback successCallback, _ErrorCallback errorCallback}) { | 6441 void __getDirectory(String path, {Map options, _EntryCallback successCallback, _ErrorCallback errorCallback}) { |
| 6432 if (errorCallback != null) { | 6442 if (errorCallback != null) { |
| 6433 var options_1 = convertDartToNative_Dictionary(options); | 6443 var options_1 = convertDartToNative_Dictionary(options); |
| 6434 ___getDirectory_1(path, options_1, successCallback, errorCallback); | 6444 __getDirectory_1(path, options_1, successCallback, errorCallback); |
| 6435 return; | 6445 return; |
| 6436 } | 6446 } |
| 6437 if (successCallback != null) { | 6447 if (successCallback != null) { |
| 6438 var options_2 = convertDartToNative_Dictionary(options); | 6448 var options_2 = convertDartToNative_Dictionary(options); |
| 6439 ___getDirectory_2(path, options_2, successCallback); | 6449 __getDirectory_2(path, options_2, successCallback); |
| 6440 return; | 6450 return; |
| 6441 } | 6451 } |
| 6442 if (options != null) { | 6452 if (options != null) { |
| 6443 var options_3 = convertDartToNative_Dictionary(options); | 6453 var options_3 = convertDartToNative_Dictionary(options); |
| 6444 ___getDirectory_3(path, options_3); | 6454 __getDirectory_3(path, options_3); |
| 6445 return; | 6455 return; |
| 6446 } | 6456 } |
| 6447 ___getDirectory_4(path); | 6457 __getDirectory_4(path); |
| 6448 return; | 6458 return; |
| 6449 } | 6459 } |
| 6450 @JSName('getDirectory') | 6460 @JSName('getDirectory') |
| 6451 @DomName('DirectoryEntry.getDirectory') | 6461 @DomName('DirectoryEntry.getDirectory') |
| 6452 @DocsEditable | 6462 @DocsEditable |
| 6453 void ___getDirectory_1(path, options, _EntryCallback successCallback, _ErrorCa llback errorCallback) native; | 6463 void __getDirectory_1(path, options, _EntryCallback successCallback, _ErrorCal lback errorCallback) native; |
| 6454 @JSName('getDirectory') | 6464 @JSName('getDirectory') |
| 6455 @DomName('DirectoryEntry.getDirectory') | 6465 @DomName('DirectoryEntry.getDirectory') |
| 6456 @DocsEditable | 6466 @DocsEditable |
| 6457 void ___getDirectory_2(path, options, _EntryCallback successCallback) native; | 6467 void __getDirectory_2(path, options, _EntryCallback successCallback) native; |
| 6458 @JSName('getDirectory') | 6468 @JSName('getDirectory') |
| 6459 @DomName('DirectoryEntry.getDirectory') | 6469 @DomName('DirectoryEntry.getDirectory') |
| 6460 @DocsEditable | 6470 @DocsEditable |
| 6461 void ___getDirectory_3(path, options) native; | 6471 void __getDirectory_3(path, options) native; |
| 6462 @JSName('getDirectory') | 6472 @JSName('getDirectory') |
| 6463 @DomName('DirectoryEntry.getDirectory') | 6473 @DomName('DirectoryEntry.getDirectory') |
| 6464 @DocsEditable | 6474 @DocsEditable |
| 6465 void ___getDirectory_4(path) native; | 6475 void __getDirectory_4(path) native; |
| 6466 | 6476 |
| 6467 @JSName('getDirectory') | 6477 @JSName('getDirectory') |
| 6468 @DomName('DirectoryEntry.getDirectory') | 6478 @DomName('DirectoryEntry.getDirectory') |
| 6469 @DocsEditable | 6479 @DocsEditable |
| 6470 Future<Entry> _getDirectory(String path, {Map options}) { | 6480 Future<Entry> _getDirectory(String path, {Map options}) { |
| 6471 var completer = new Completer<Entry>(); | 6481 var completer = new Completer<Entry>(); |
| 6472 __getDirectory(path, options : options, | 6482 __getDirectory(path, options : options, |
| 6473 successCallback : (value) { completer.complete(value); }, | 6483 successCallback : (value) { completer.complete(value); }, |
| 6474 errorCallback : (error) { completer.completeError(error); }); | 6484 errorCallback : (error) { completer.completeError(error); }); |
| 6475 return completer.future; | 6485 return completer.future; |
| 6476 } | 6486 } |
| 6477 | 6487 |
| 6478 @DomName('DirectoryEntry.getFile') | 6488 @DomName('DirectoryEntry.getFile') |
| 6479 @DocsEditable | 6489 @DocsEditable |
| 6480 void __getFile(String path, {Map options, _EntryCallback successCallback, _Err orCallback errorCallback}) { | 6490 void __getFile(String path, {Map options, _EntryCallback successCallback, _Err orCallback errorCallback}) { |
| 6481 if (errorCallback != null) { | 6491 if (errorCallback != null) { |
| 6482 var options_1 = convertDartToNative_Dictionary(options); | 6492 var options_1 = convertDartToNative_Dictionary(options); |
| 6483 ___getFile_1(path, options_1, successCallback, errorCallback); | 6493 __getFile_1(path, options_1, successCallback, errorCallback); |
| 6484 return; | 6494 return; |
| 6485 } | 6495 } |
| 6486 if (successCallback != null) { | 6496 if (successCallback != null) { |
| 6487 var options_2 = convertDartToNative_Dictionary(options); | 6497 var options_2 = convertDartToNative_Dictionary(options); |
| 6488 ___getFile_2(path, options_2, successCallback); | 6498 __getFile_2(path, options_2, successCallback); |
| 6489 return; | 6499 return; |
| 6490 } | 6500 } |
| 6491 if (options != null) { | 6501 if (options != null) { |
| 6492 var options_3 = convertDartToNative_Dictionary(options); | 6502 var options_3 = convertDartToNative_Dictionary(options); |
| 6493 ___getFile_3(path, options_3); | 6503 __getFile_3(path, options_3); |
| 6494 return; | 6504 return; |
| 6495 } | 6505 } |
| 6496 ___getFile_4(path); | 6506 __getFile_4(path); |
| 6497 return; | 6507 return; |
| 6498 } | 6508 } |
| 6499 @JSName('getFile') | 6509 @JSName('getFile') |
| 6500 @DomName('DirectoryEntry.getFile') | 6510 @DomName('DirectoryEntry.getFile') |
| 6501 @DocsEditable | 6511 @DocsEditable |
| 6502 void ___getFile_1(path, options, _EntryCallback successCallback, _ErrorCallbac k errorCallback) native; | 6512 void __getFile_1(path, options, _EntryCallback successCallback, _ErrorCallback errorCallback) native; |
| 6503 @JSName('getFile') | 6513 @JSName('getFile') |
| 6504 @DomName('DirectoryEntry.getFile') | 6514 @DomName('DirectoryEntry.getFile') |
| 6505 @DocsEditable | 6515 @DocsEditable |
| 6506 void ___getFile_2(path, options, _EntryCallback successCallback) native; | 6516 void __getFile_2(path, options, _EntryCallback successCallback) native; |
| 6507 @JSName('getFile') | 6517 @JSName('getFile') |
| 6508 @DomName('DirectoryEntry.getFile') | 6518 @DomName('DirectoryEntry.getFile') |
| 6509 @DocsEditable | 6519 @DocsEditable |
| 6510 void ___getFile_3(path, options) native; | 6520 void __getFile_3(path, options) native; |
| 6511 @JSName('getFile') | 6521 @JSName('getFile') |
| 6512 @DomName('DirectoryEntry.getFile') | 6522 @DomName('DirectoryEntry.getFile') |
| 6513 @DocsEditable | 6523 @DocsEditable |
| 6514 void ___getFile_4(path) native; | 6524 void __getFile_4(path) native; |
| 6515 | 6525 |
| 6516 @JSName('getFile') | 6526 @JSName('getFile') |
| 6517 @DomName('DirectoryEntry.getFile') | 6527 @DomName('DirectoryEntry.getFile') |
| 6518 @DocsEditable | 6528 @DocsEditable |
| 6519 Future<Entry> _getFile(String path, {Map options}) { | 6529 Future<Entry> _getFile(String path, {Map options}) { |
| 6520 var completer = new Completer<Entry>(); | 6530 var completer = new Completer<Entry>(); |
| 6521 __getFile(path, options : options, | 6531 __getFile(path, options : options, |
| 6522 successCallback : (value) { completer.complete(value); }, | 6532 successCallback : (value) { completer.complete(value); }, |
| 6523 errorCallback : (error) { completer.completeError(error); }); | 6533 errorCallback : (error) { completer.completeError(error); }); |
| 6524 return completer.future; | 6534 return completer.future; |
| (...skipping 9331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 15856 class MutationObserver native "MutationObserver,WebKitMutationObserver" { | 15866 class MutationObserver native "MutationObserver,WebKitMutationObserver" { |
| 15857 | 15867 |
| 15858 @DomName('MutationObserver.disconnect') | 15868 @DomName('MutationObserver.disconnect') |
| 15859 @DocsEditable | 15869 @DocsEditable |
| 15860 void disconnect() native; | 15870 void disconnect() native; |
| 15861 | 15871 |
| 15862 @DomName('MutationObserver.observe') | 15872 @DomName('MutationObserver.observe') |
| 15863 @DocsEditable | 15873 @DocsEditable |
| 15864 void _observe(Node target, Map options) { | 15874 void _observe(Node target, Map options) { |
| 15865 var options_1 = convertDartToNative_Dictionary(options); | 15875 var options_1 = convertDartToNative_Dictionary(options); |
| 15866 __observe_1(target, options_1); | 15876 _observe_1(target, options_1); |
| 15867 return; | 15877 return; |
| 15868 } | 15878 } |
| 15869 @JSName('observe') | 15879 @JSName('observe') |
| 15870 @DomName('MutationObserver.observe') | 15880 @DomName('MutationObserver.observe') |
| 15871 @DocsEditable | 15881 @DocsEditable |
| 15872 void __observe_1(Node target, options) native; | 15882 void _observe_1(Node target, options) native; |
| 15873 | 15883 |
| 15874 @DomName('MutationObserver.takeRecords') | 15884 @DomName('MutationObserver.takeRecords') |
| 15875 @DocsEditable | 15885 @DocsEditable |
| 15876 List<MutationRecord> takeRecords() native; | 15886 List<MutationRecord> takeRecords() native; |
| 15877 | 15887 |
| 15878 /** | 15888 /** |
| 15879 * Checks to see if the mutation observer API is supported on the current | 15889 * Checks to see if the mutation observer API is supported on the current |
| 15880 * platform. | 15890 * platform. |
| 15881 */ | 15891 */ |
| 15882 static bool get supported { | 15892 static bool get supported { |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 16095 * | 16105 * |
| 16096 * Use [MediaStream.supported] to check if this is supported by the current | 16106 * Use [MediaStream.supported] to check if this is supported by the current |
| 16097 * platform. The arguments `audio` and `video` default to `false` (stream does | 16107 * platform. The arguments `audio` and `video` default to `false` (stream does |
| 16098 * not use audio or video, respectively). | 16108 * not use audio or video, respectively). |
| 16099 * | 16109 * |
| 16100 * Simple example usage: | 16110 * Simple example usage: |
| 16101 * | 16111 * |
| 16102 * window.navigator.getUserMedia(audio: true, video: true).then((stream) { | 16112 * window.navigator.getUserMedia(audio: true, video: true).then((stream) { |
| 16103 * var video = new VideoElement() | 16113 * var video = new VideoElement() |
| 16104 * ..autoplay = true | 16114 * ..autoplay = true |
| 16105 * ..src = Url.createObjectUrl(stream); | 16115 * ..src = Url.createObjectUrlFromStream(stream); |
| 16106 * document.body.append(video); | 16116 * document.body.append(video); |
| 16107 * }); | 16117 * }); |
| 16108 * | 16118 * |
| 16109 * The user can also pass in Maps to the audio or video parameters to specify | 16119 * The user can also pass in Maps to the audio or video parameters to specify |
| 16110 * mandatory and optional constraints for the media stream. Not passing in a | 16120 * mandatory and optional constraints for the media stream. Not passing in a |
| 16111 * map, but passing in `true` will provide a MediaStream with audio or | 16121 * map, but passing in `true` will provide a MediaStream with audio or |
| 16112 * video capabilities, but without any additional constraints. The particular | 16122 * video capabilities, but without any additional constraints. The particular |
| 16113 * constraint names for audio and video are still in flux, but as of this | 16123 * constraint names for audio and video are still in flux, but as of this |
| 16114 * writing, here is an example providing more constraints. | 16124 * writing, here is an example providing more constraints. |
| 16115 * | 16125 * |
| (...skipping 2394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 18510 @DocsEditable | 18520 @DocsEditable |
| 18511 bool dispatchEvent(Event event) native; | 18521 bool dispatchEvent(Event event) native; |
| 18512 | 18522 |
| 18513 @JSName('removeEventListener') | 18523 @JSName('removeEventListener') |
| 18514 @DomName('RTCDataChannel.removeEventListener') | 18524 @DomName('RTCDataChannel.removeEventListener') |
| 18515 @DocsEditable | 18525 @DocsEditable |
| 18516 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; | 18526 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; |
| 18517 | 18527 |
| 18518 @DomName('RTCDataChannel.send') | 18528 @DomName('RTCDataChannel.send') |
| 18519 @DocsEditable | 18529 @DocsEditable |
| 18520 void send(data) native; | 18530 void send(String data) native; |
| 18531 | |
| 18532 @JSName('send') | |
| 18533 @DomName('RTCDataChannel.send') | |
| 18534 @DocsEditable | |
| 18535 void sendBlob(Blob data) native; | |
| 18536 | |
| 18537 @JSName('send') | |
| 18538 @DomName('RTCDataChannel.send') | |
| 18539 @DocsEditable | |
| 18540 void sendByteBuffer(ByteBuffer data) native; | |
| 18541 | |
| 18542 @JSName('send') | |
| 18543 @DomName('RTCDataChannel.send') | |
| 18544 @DocsEditable | |
| 18545 void sendTypedData(TypedData data) native; | |
| 18521 | 18546 |
| 18522 @DomName('RTCDataChannel.onclose') | 18547 @DomName('RTCDataChannel.onclose') |
| 18523 @DocsEditable | 18548 @DocsEditable |
| 18524 Stream<Event> get onClose => closeEvent.forTarget(this); | 18549 Stream<Event> get onClose => closeEvent.forTarget(this); |
| 18525 | 18550 |
| 18526 @DomName('RTCDataChannel.onerror') | 18551 @DomName('RTCDataChannel.onerror') |
| 18527 @DocsEditable | 18552 @DocsEditable |
| 18528 Stream<Event> get onError => errorEvent.forTarget(this); | 18553 Stream<Event> get onError => errorEvent.forTarget(this); |
| 18529 | 18554 |
| 18530 @DomName('RTCDataChannel.onmessage') | 18555 @DomName('RTCDataChannel.onmessage') |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 18807 | 18832 |
| 18808 @DomName('RTCPeerConnection.close') | 18833 @DomName('RTCPeerConnection.close') |
| 18809 @DocsEditable | 18834 @DocsEditable |
| 18810 void close() native; | 18835 void close() native; |
| 18811 | 18836 |
| 18812 @DomName('RTCPeerConnection.createAnswer') | 18837 @DomName('RTCPeerConnection.createAnswer') |
| 18813 @DocsEditable | 18838 @DocsEditable |
| 18814 void _createAnswer(_RtcSessionDescriptionCallback successCallback, [_RtcErrorC allback failureCallback, Map mediaConstraints]) { | 18839 void _createAnswer(_RtcSessionDescriptionCallback successCallback, [_RtcErrorC allback failureCallback, Map mediaConstraints]) { |
| 18815 if (mediaConstraints != null) { | 18840 if (mediaConstraints != null) { |
| 18816 var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints); | 18841 var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints); |
| 18817 __createAnswer_1(successCallback, failureCallback, mediaConstraints_1); | 18842 _createAnswer_1(successCallback, failureCallback, mediaConstraints_1); |
| 18818 return; | 18843 return; |
| 18819 } | 18844 } |
| 18820 __createAnswer_2(successCallback, failureCallback); | 18845 _createAnswer_2(successCallback, failureCallback); |
| 18821 return; | 18846 return; |
| 18822 } | 18847 } |
| 18823 @JSName('createAnswer') | 18848 @JSName('createAnswer') |
| 18824 @DomName('RTCPeerConnection.createAnswer') | 18849 @DomName('RTCPeerConnection.createAnswer') |
| 18825 @DocsEditable | 18850 @DocsEditable |
| 18826 void __createAnswer_1(_RtcSessionDescriptionCallback successCallback, _RtcErro rCallback failureCallback, mediaConstraints) native; | 18851 void _createAnswer_1(_RtcSessionDescriptionCallback successCallback, _RtcError Callback failureCallback, mediaConstraints) native; |
| 18827 @JSName('createAnswer') | 18852 @JSName('createAnswer') |
| 18828 @DomName('RTCPeerConnection.createAnswer') | 18853 @DomName('RTCPeerConnection.createAnswer') |
| 18829 @DocsEditable | 18854 @DocsEditable |
| 18830 void __createAnswer_2(_RtcSessionDescriptionCallback successCallback, _RtcErro rCallback failureCallback) native; | 18855 void _createAnswer_2(_RtcSessionDescriptionCallback successCallback, _RtcError Callback failureCallback) native; |
| 18831 | 18856 |
| 18832 @JSName('createDTMFSender') | 18857 @JSName('createDTMFSender') |
| 18833 @DomName('RTCPeerConnection.createDTMFSender') | 18858 @DomName('RTCPeerConnection.createDTMFSender') |
| 18834 @DocsEditable | 18859 @DocsEditable |
| 18835 RtcDtmfSender createDtmfSender(MediaStreamTrack track) native; | 18860 RtcDtmfSender createDtmfSender(MediaStreamTrack track) native; |
| 18836 | 18861 |
| 18837 @DomName('RTCPeerConnection.createDataChannel') | 18862 @DomName('RTCPeerConnection.createDataChannel') |
| 18838 @DocsEditable | 18863 @DocsEditable |
| 18839 RtcDataChannel createDataChannel(String label, [Map options]) { | 18864 RtcDataChannel createDataChannel(String label, [Map options]) { |
| 18840 if (options != null) { | 18865 if (options != null) { |
| 18841 var options_1 = convertDartToNative_Dictionary(options); | 18866 var options_1 = convertDartToNative_Dictionary(options); |
| 18842 return _createDataChannel_1(label, options_1); | 18867 return _createDataChannel_1(label, options_1); |
| 18843 } | 18868 } |
| 18844 return _createDataChannel_2(label); | 18869 return _createDataChannel_2(label); |
| 18845 } | 18870 } |
| 18846 @JSName('createDataChannel') | 18871 @JSName('createDataChannel') |
| 18847 @DomName('RTCPeerConnection.createDataChannel') | 18872 @DomName('RTCPeerConnection.createDataChannel') |
| 18848 @DocsEditable | 18873 @DocsEditable |
| 18849 RtcDataChannel _createDataChannel_1(label, options) native; | 18874 RtcDataChannel _createDataChannel_1(label, options) native; |
| 18850 @JSName('createDataChannel') | 18875 @JSName('createDataChannel') |
| 18851 @DomName('RTCPeerConnection.createDataChannel') | 18876 @DomName('RTCPeerConnection.createDataChannel') |
| 18852 @DocsEditable | 18877 @DocsEditable |
| 18853 RtcDataChannel _createDataChannel_2(label) native; | 18878 RtcDataChannel _createDataChannel_2(label) native; |
| 18854 | 18879 |
| 18855 @DomName('RTCPeerConnection.createOffer') | 18880 @DomName('RTCPeerConnection.createOffer') |
| 18856 @DocsEditable | 18881 @DocsEditable |
| 18857 void _createOffer(_RtcSessionDescriptionCallback successCallback, [_RtcErrorCa llback failureCallback, Map mediaConstraints]) { | 18882 void _createOffer(_RtcSessionDescriptionCallback successCallback, [_RtcErrorCa llback failureCallback, Map mediaConstraints]) { |
| 18858 if (mediaConstraints != null) { | 18883 if (mediaConstraints != null) { |
| 18859 var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints); | 18884 var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints); |
| 18860 __createOffer_1(successCallback, failureCallback, mediaConstraints_1); | 18885 _createOffer_1(successCallback, failureCallback, mediaConstraints_1); |
| 18861 return; | 18886 return; |
| 18862 } | 18887 } |
| 18863 __createOffer_2(successCallback, failureCallback); | 18888 _createOffer_2(successCallback, failureCallback); |
| 18864 return; | 18889 return; |
| 18865 } | 18890 } |
| 18866 @JSName('createOffer') | 18891 @JSName('createOffer') |
| 18867 @DomName('RTCPeerConnection.createOffer') | 18892 @DomName('RTCPeerConnection.createOffer') |
| 18868 @DocsEditable | 18893 @DocsEditable |
| 18869 void __createOffer_1(_RtcSessionDescriptionCallback successCallback, _RtcError Callback failureCallback, mediaConstraints) native; | 18894 void _createOffer_1(_RtcSessionDescriptionCallback successCallback, _RtcErrorC allback failureCallback, mediaConstraints) native; |
| 18870 @JSName('createOffer') | 18895 @JSName('createOffer') |
| 18871 @DomName('RTCPeerConnection.createOffer') | 18896 @DomName('RTCPeerConnection.createOffer') |
| 18872 @DocsEditable | 18897 @DocsEditable |
| 18873 void __createOffer_2(_RtcSessionDescriptionCallback successCallback, _RtcError Callback failureCallback) native; | 18898 void _createOffer_2(_RtcSessionDescriptionCallback successCallback, _RtcErrorC allback failureCallback) native; |
| 18874 | 18899 |
| 18875 @DomName('RTCPeerConnection.dispatchEvent') | 18900 @DomName('RTCPeerConnection.dispatchEvent') |
| 18876 @DocsEditable | 18901 @DocsEditable |
| 18877 bool dispatchEvent(Event event) native; | 18902 bool dispatchEvent(Event event) native; |
| 18878 | 18903 |
| 18879 @DomName('RTCPeerConnection.getLocalStreams') | 18904 @DomName('RTCPeerConnection.getLocalStreams') |
| 18880 @DocsEditable | 18905 @DocsEditable |
| 18881 List<MediaStream> getLocalStreams() native; | 18906 List<MediaStream> getLocalStreams() native; |
| 18882 | 18907 |
| 18883 @DomName('RTCPeerConnection.getRemoteStreams') | 18908 @DomName('RTCPeerConnection.getRemoteStreams') |
| (...skipping 2461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 21345 void select() native; | 21370 void select() native; |
| 21346 | 21371 |
| 21347 @DomName('HTMLTextAreaElement.setCustomValidity') | 21372 @DomName('HTMLTextAreaElement.setCustomValidity') |
| 21348 @DocsEditable | 21373 @DocsEditable |
| 21349 void setCustomValidity(String error) native; | 21374 void setCustomValidity(String error) native; |
| 21350 | 21375 |
| 21351 @DomName('HTMLTextAreaElement.setRangeText') | 21376 @DomName('HTMLTextAreaElement.setRangeText') |
| 21352 @DocsEditable | 21377 @DocsEditable |
| 21353 // http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of- controls-and-forms.html#dom-textarea/input-setrangetext | 21378 // http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of- controls-and-forms.html#dom-textarea/input-setrangetext |
| 21354 @Experimental | 21379 @Experimental |
| 21355 void setRangeText(String replacement, [int start, int end, String selectionMod e]) native; | 21380 void setRangeText(String replacement, {int start, int end, String selectionMod e}) native; |
| 21356 | 21381 |
| 21357 @DomName('HTMLTextAreaElement.setSelectionRange') | 21382 @DomName('HTMLTextAreaElement.setSelectionRange') |
| 21358 @DocsEditable | 21383 @DocsEditable |
| 21359 void setSelectionRange(int start, int end, [String direction]) native; | 21384 void setSelectionRange(int start, int end, [String direction]) native; |
| 21360 } | 21385 } |
| 21361 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 21386 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 21362 // for details. All rights reserved. Use of this source code is governed by a | 21387 // for details. All rights reserved. Use of this source code is governed by a |
| 21363 // BSD-style license that can be found in the LICENSE file. | 21388 // BSD-style license that can be found in the LICENSE file. |
| 21364 | 21389 |
| 21365 // WARNING: Do not edit - generated code. | 21390 // WARNING: Do not edit - generated code. |
| (...skipping 941 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 22307 class UnknownElement extends Element native "HTMLUnknownElement" { | 22332 class UnknownElement extends Element native "HTMLUnknownElement" { |
| 22308 } | 22333 } |
| 22309 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22334 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 22310 // for details. All rights reserved. Use of this source code is governed by a | 22335 // for details. All rights reserved. Use of this source code is governed by a |
| 22311 // BSD-style license that can be found in the LICENSE file. | 22336 // BSD-style license that can be found in the LICENSE file. |
| 22312 | 22337 |
| 22313 | 22338 |
| 22314 @DomName('URL') | 22339 @DomName('URL') |
| 22315 class Url native "URL" { | 22340 class Url native "URL" { |
| 22316 | 22341 |
| 22317 static String createObjectUrl(blob_OR_source_OR_stream) => | 22342 static String createObjectUrl(MediaSource source) => |
| 22318 JS('String', | 22343 JS('String', '(self.URL || self.webkitURL).createObjectURL(#)', source); |
| 22319 '(self.URL || self.webkitURL).createObjectURL(#)', | 22344 |
| 22320 blob_OR_source_OR_stream); | 22345 static String createObjectUrlFromStream(MediaStream stream) => |
| 22346 JS('String', '(self.URL || self.webkitURL).createObjectURL(#)', stream); | |
| 22347 | |
| 22348 static String createObjectUrlFromBlob(Blob blob) => | |
| 22349 JS('String', '(self.URL || self.webkitURL).createObjectURL(#)', blob); | |
| 22321 | 22350 |
| 22322 static void revokeObjectUrl(String url) => | 22351 static void revokeObjectUrl(String url) => |
| 22323 JS('void', | 22352 JS('void', |
| 22324 '(self.URL || self.webkitURL).revokeObjectURL(#)', url); | 22353 '(self.URL || self.webkitURL).revokeObjectURL(#)', url); |
| 22325 | 22354 |
| 22326 } | 22355 } |
| 22327 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22356 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 22328 // for details. All rights reserved. Use of this source code is governed by a | 22357 // for details. All rights reserved. Use of this source code is governed by a |
| 22329 // BSD-style license that can be found in the LICENSE file. | 22358 // BSD-style license that can be found in the LICENSE file. |
| 22330 | 22359 |
| (...skipping 1133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 23464 @Returns('Window|=Object') | 23493 @Returns('Window|=Object') |
| 23465 final dynamic _get_window; | 23494 final dynamic _get_window; |
| 23466 | 23495 |
| 23467 @DomName('Window.__getter__') | 23496 @DomName('Window.__getter__') |
| 23468 @DocsEditable | 23497 @DocsEditable |
| 23469 @Experimental // untriaged | 23498 @Experimental // untriaged |
| 23470 @Creates('Window|=Object') | 23499 @Creates('Window|=Object') |
| 23471 @Returns('Window|=Object') | 23500 @Returns('Window|=Object') |
| 23472 WindowBase __getter__(index_OR_name) { | 23501 WindowBase __getter__(index_OR_name) { |
| 23473 if ((index_OR_name is int || index_OR_name == null)) { | 23502 if ((index_OR_name is int || index_OR_name == null)) { |
| 23474 return _convertNativeToDart_Window(___getter___1(index_OR_name)); | 23503 return _convertNativeToDart_Window(__getter___1(index_OR_name)); |
| 23475 } | 23504 } |
| 23476 if ((index_OR_name is String || index_OR_name == null)) { | 23505 if ((index_OR_name is String || index_OR_name == null)) { |
| 23477 return _convertNativeToDart_Window(___getter___2(index_OR_name)); | 23506 return _convertNativeToDart_Window(__getter___2(index_OR_name)); |
| 23478 } | 23507 } |
| 23479 throw new ArgumentError("Incorrect number or type of arguments"); | 23508 throw new ArgumentError("Incorrect number or type of arguments"); |
| 23480 } | 23509 } |
| 23481 @JSName('__getter__') | 23510 @JSName('__getter__') |
| 23482 @DomName('Window.__getter__') | 23511 @DomName('Window.__getter__') |
| 23483 @DocsEditable | 23512 @DocsEditable |
| 23484 @Experimental // untriaged | 23513 @Experimental // untriaged |
| 23485 @Creates('Window|=Object') | 23514 @Creates('Window|=Object') |
| 23486 @Returns('Window|=Object') | 23515 @Returns('Window|=Object') |
| 23487 ___getter___1(int index) native; | 23516 __getter___1(int index) native; |
| 23488 @JSName('__getter__') | 23517 @JSName('__getter__') |
| 23489 @DomName('Window.__getter__') | 23518 @DomName('Window.__getter__') |
| 23490 @DocsEditable | 23519 @DocsEditable |
| 23491 @Experimental // untriaged | 23520 @Experimental // untriaged |
| 23492 @Creates('Window|=Object') | 23521 @Creates('Window|=Object') |
| 23493 @Returns('Window|=Object') | 23522 @Returns('Window|=Object') |
| 23494 ___getter___2(String name) native; | 23523 __getter___2(String name) native; |
| 23495 | 23524 |
| 23496 @JSName('addEventListener') | 23525 @JSName('addEventListener') |
| 23497 @DomName('Window.addEventListener') | 23526 @DomName('Window.addEventListener') |
| 23498 @DocsEditable | 23527 @DocsEditable |
| 23499 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; | 23528 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; |
| 23500 | 23529 |
| 23501 @DomName('Window.alert') | 23530 @DomName('Window.alert') |
| 23502 @DocsEditable | 23531 @DocsEditable |
| 23503 void alert(String message) native; | 23532 void alert(String message) native; |
| 23504 | 23533 |
| (...skipping 6382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 29887 _position = nextPosition; | 29916 _position = nextPosition; |
| 29888 return true; | 29917 return true; |
| 29889 } | 29918 } |
| 29890 _current = null; | 29919 _current = null; |
| 29891 _position = _array.length; | 29920 _position = _array.length; |
| 29892 return false; | 29921 return false; |
| 29893 } | 29922 } |
| 29894 | 29923 |
| 29895 T get current => _current; | 29924 T get current => _current; |
| 29896 } | 29925 } |
| OLD | NEW |