| OLD | NEW |
| 1 /// The Dart HTML library. | 1 /// The Dart HTML library. |
| 2 /// | 2 /// |
| 3 /// For examples, see | 3 /// For examples, see |
| 4 /// [Dart HTML5 Samples](https://github.com/dart-lang/dart-html5-samples) | 4 /// [Dart HTML5 Samples](https://github.com/dart-lang/dart-html5-samples) |
| 5 /// on Github. | 5 /// on Github. |
| 6 library dart.dom.html; | 6 library dart.dom.html; |
| 7 | 7 |
| 8 import 'dart:async'; | 8 import 'dart:async'; |
| 9 import 'dart:collection'; | 9 import 'dart:collection'; |
| 10 import 'dart:_collection-dev' hide Symbol; | 10 import 'dart:_collection-dev' hide Symbol; |
| (...skipping 1159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1170 @DocsEditable | 1170 @DocsEditable |
| 1171 @Creates('ImageData|=Object') | 1171 @Creates('ImageData|=Object') |
| 1172 _createImageDataFromImageData_1(imagedata) native; | 1172 _createImageDataFromImageData_1(imagedata) native; |
| 1173 | 1173 |
| 1174 @DomName('CanvasRenderingContext2D.createLinearGradient') | 1174 @DomName('CanvasRenderingContext2D.createLinearGradient') |
| 1175 @DocsEditable | 1175 @DocsEditable |
| 1176 CanvasGradient createLinearGradient(num x0, num y0, num x1, num y1) native; | 1176 CanvasGradient createLinearGradient(num x0, num y0, num x1, num y1) native; |
| 1177 | 1177 |
| 1178 @DomName('CanvasRenderingContext2D.createPattern') | 1178 @DomName('CanvasRenderingContext2D.createPattern') |
| 1179 @DocsEditable | 1179 @DocsEditable |
| 1180 CanvasPattern createPattern(canvas_OR_image, String repetitionType) native; | 1180 CanvasPattern createPattern(CanvasElement canvas, String repetitionType) nativ
e; |
| 1181 |
| 1182 @JSName('createPattern') |
| 1183 @DomName('CanvasRenderingContext2D.createPattern') |
| 1184 @DocsEditable |
| 1185 CanvasPattern createPatternFromImage(ImageElement image, String repetitionType
) native; |
| 1181 | 1186 |
| 1182 @DomName('CanvasRenderingContext2D.createRadialGradient') | 1187 @DomName('CanvasRenderingContext2D.createRadialGradient') |
| 1183 @DocsEditable | 1188 @DocsEditable |
| 1184 CanvasGradient createRadialGradient(num x0, num y0, num r0, num x1, num y1, nu
m r1) native; | 1189 CanvasGradient createRadialGradient(num x0, num y0, num r0, num x1, num y1, nu
m r1) native; |
| 1185 | 1190 |
| 1186 @DomName('CanvasRenderingContext2D.fill') | 1191 @DomName('CanvasRenderingContext2D.fill') |
| 1187 @DocsEditable | 1192 @DocsEditable |
| 1188 void fill([String winding]) native; | 1193 void fill([String winding]) native; |
| 1189 | 1194 |
| 1190 @DomName('CanvasRenderingContext2D.fillRect') | 1195 @DomName('CanvasRenderingContext2D.fillRect') |
| (...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1914 | 1919 |
| 1915 | 1920 |
| 1916 @DocsEditable | 1921 @DocsEditable |
| 1917 @DomName('CSS') | 1922 @DomName('CSS') |
| 1918 // http://www.w3.org/TR/css3-conditional/#the-css-interface | 1923 // http://www.w3.org/TR/css3-conditional/#the-css-interface |
| 1919 @Experimental // None | 1924 @Experimental // None |
| 1920 class Css native "CSS" { | 1925 class Css native "CSS" { |
| 1921 | 1926 |
| 1922 @DomName('CSS.supports') | 1927 @DomName('CSS.supports') |
| 1923 @DocsEditable | 1928 @DocsEditable |
| 1924 bool supports(String conditionText_OR_property, [String value]) native; | 1929 bool supports(String property, String value) native; |
| 1930 |
| 1931 @JSName('supports') |
| 1932 @DomName('CSS.supports') |
| 1933 @DocsEditable |
| 1934 bool supportsCondition(String conditionText) native; |
| 1925 } | 1935 } |
| 1926 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1936 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1927 // for details. All rights reserved. Use of this source code is governed by a | 1937 // for details. All rights reserved. Use of this source code is governed by a |
| 1928 // BSD-style license that can be found in the LICENSE file. | 1938 // BSD-style license that can be found in the LICENSE file. |
| 1929 | 1939 |
| 1930 | 1940 |
| 1931 @DocsEditable | 1941 @DocsEditable |
| 1932 @DomName('CSSCharsetRule') | 1942 @DomName('CSSCharsetRule') |
| 1933 // http://dev.w3.org/csswg/cssom/#the-csscharsetrule-interface | 1943 // http://dev.w3.org/csswg/cssom/#the-csscharsetrule-interface |
| 1934 @Experimental | 1944 @Experimental |
| (...skipping 4199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6134 class DataTransferItemList native "DataTransferItemList" { | 6144 class DataTransferItemList native "DataTransferItemList" { |
| 6135 | 6145 |
| 6136 @DomName('DataTransferItemList.length') | 6146 @DomName('DataTransferItemList.length') |
| 6137 @DocsEditable | 6147 @DocsEditable |
| 6138 final int length; | 6148 final int length; |
| 6139 | 6149 |
| 6140 @DomName('DataTransferItemList.add') | 6150 @DomName('DataTransferItemList.add') |
| 6141 @DocsEditable | 6151 @DocsEditable |
| 6142 void add(data_OR_file, [String type]) native; | 6152 void add(data_OR_file, [String type]) native; |
| 6143 | 6153 |
| 6154 @JSName('add') |
| 6155 @DomName('DataTransferItemList.add') |
| 6156 @DocsEditable |
| 6157 void addData(String data, String type) native; |
| 6158 |
| 6159 @JSName('add') |
| 6160 @DomName('DataTransferItemList.add') |
| 6161 @DocsEditable |
| 6162 void addFile(File file) native; |
| 6163 |
| 6144 @DomName('DataTransferItemList.clear') | 6164 @DomName('DataTransferItemList.clear') |
| 6145 @DocsEditable | 6165 @DocsEditable |
| 6146 void clear() native; | 6166 void clear() native; |
| 6147 | 6167 |
| 6148 @DomName('DataTransferItemList.item') | 6168 @DomName('DataTransferItemList.item') |
| 6149 @DocsEditable | 6169 @DocsEditable |
| 6150 DataTransferItem item(int index) native; | 6170 DataTransferItem item(int index) native; |
| 6151 } | 6171 } |
| 6152 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6172 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6153 // for details. All rights reserved. Use of this source code is governed by a | 6173 // for details. All rights reserved. Use of this source code is governed by a |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6373 | 6393 |
| 6374 @DomName('DirectoryEntry.createReader') | 6394 @DomName('DirectoryEntry.createReader') |
| 6375 @DocsEditable | 6395 @DocsEditable |
| 6376 DirectoryReader createReader() native; | 6396 DirectoryReader createReader() native; |
| 6377 | 6397 |
| 6378 @DomName('DirectoryEntry.getDirectory') | 6398 @DomName('DirectoryEntry.getDirectory') |
| 6379 @DocsEditable | 6399 @DocsEditable |
| 6380 void __getDirectory(String path, {Map options, _EntryCallback successCallback,
_ErrorCallback errorCallback}) { | 6400 void __getDirectory(String path, {Map options, _EntryCallback successCallback,
_ErrorCallback errorCallback}) { |
| 6381 if (errorCallback != null) { | 6401 if (errorCallback != null) { |
| 6382 var options_1 = convertDartToNative_Dictionary(options); | 6402 var options_1 = convertDartToNative_Dictionary(options); |
| 6383 ___getDirectory_1(path, options_1, successCallback, errorCallback); | 6403 __getDirectory_1(path, options_1, successCallback, errorCallback); |
| 6384 return; | 6404 return; |
| 6385 } | 6405 } |
| 6386 if (successCallback != null) { | 6406 if (successCallback != null) { |
| 6387 var options_2 = convertDartToNative_Dictionary(options); | 6407 var options_2 = convertDartToNative_Dictionary(options); |
| 6388 ___getDirectory_2(path, options_2, successCallback); | 6408 __getDirectory_2(path, options_2, successCallback); |
| 6389 return; | 6409 return; |
| 6390 } | 6410 } |
| 6391 if (options != null) { | 6411 if (options != null) { |
| 6392 var options_3 = convertDartToNative_Dictionary(options); | 6412 var options_3 = convertDartToNative_Dictionary(options); |
| 6393 ___getDirectory_3(path, options_3); | 6413 __getDirectory_3(path, options_3); |
| 6394 return; | 6414 return; |
| 6395 } | 6415 } |
| 6396 ___getDirectory_4(path); | 6416 __getDirectory_4(path); |
| 6397 return; | 6417 return; |
| 6398 } | 6418 } |
| 6399 @JSName('getDirectory') | 6419 @JSName('getDirectory') |
| 6400 @DomName('DirectoryEntry.getDirectory') | 6420 @DomName('DirectoryEntry.getDirectory') |
| 6401 @DocsEditable | 6421 @DocsEditable |
| 6402 void ___getDirectory_1(path, options, _EntryCallback successCallback, _ErrorCa
llback errorCallback) native; | 6422 void __getDirectory_1(path, options, _EntryCallback successCallback, _ErrorCal
lback errorCallback) native; |
| 6403 @JSName('getDirectory') | 6423 @JSName('getDirectory') |
| 6404 @DomName('DirectoryEntry.getDirectory') | 6424 @DomName('DirectoryEntry.getDirectory') |
| 6405 @DocsEditable | 6425 @DocsEditable |
| 6406 void ___getDirectory_2(path, options, _EntryCallback successCallback) native; | 6426 void __getDirectory_2(path, options, _EntryCallback successCallback) native; |
| 6407 @JSName('getDirectory') | 6427 @JSName('getDirectory') |
| 6408 @DomName('DirectoryEntry.getDirectory') | 6428 @DomName('DirectoryEntry.getDirectory') |
| 6409 @DocsEditable | 6429 @DocsEditable |
| 6410 void ___getDirectory_3(path, options) native; | 6430 void __getDirectory_3(path, options) native; |
| 6411 @JSName('getDirectory') | 6431 @JSName('getDirectory') |
| 6412 @DomName('DirectoryEntry.getDirectory') | 6432 @DomName('DirectoryEntry.getDirectory') |
| 6413 @DocsEditable | 6433 @DocsEditable |
| 6414 void ___getDirectory_4(path) native; | 6434 void __getDirectory_4(path) native; |
| 6415 | 6435 |
| 6416 @JSName('getDirectory') | 6436 @JSName('getDirectory') |
| 6417 @DomName('DirectoryEntry.getDirectory') | 6437 @DomName('DirectoryEntry.getDirectory') |
| 6418 @DocsEditable | 6438 @DocsEditable |
| 6419 Future<Entry> _getDirectory(String path, {Map options}) { | 6439 Future<Entry> _getDirectory(String path, {Map options}) { |
| 6420 var completer = new Completer<Entry>(); | 6440 var completer = new Completer<Entry>(); |
| 6421 __getDirectory(path, options : options, | 6441 __getDirectory(path, options : options, |
| 6422 successCallback : (value) { completer.complete(value); }, | 6442 successCallback : (value) { completer.complete(value); }, |
| 6423 errorCallback : (error) { completer.completeError(error); }); | 6443 errorCallback : (error) { completer.completeError(error); }); |
| 6424 return completer.future; | 6444 return completer.future; |
| 6425 } | 6445 } |
| 6426 | 6446 |
| 6427 @DomName('DirectoryEntry.getFile') | 6447 @DomName('DirectoryEntry.getFile') |
| 6428 @DocsEditable | 6448 @DocsEditable |
| 6429 void __getFile(String path, {Map options, _EntryCallback successCallback, _Err
orCallback errorCallback}) { | 6449 void __getFile(String path, {Map options, _EntryCallback successCallback, _Err
orCallback errorCallback}) { |
| 6430 if (errorCallback != null) { | 6450 if (errorCallback != null) { |
| 6431 var options_1 = convertDartToNative_Dictionary(options); | 6451 var options_1 = convertDartToNative_Dictionary(options); |
| 6432 ___getFile_1(path, options_1, successCallback, errorCallback); | 6452 __getFile_1(path, options_1, successCallback, errorCallback); |
| 6433 return; | 6453 return; |
| 6434 } | 6454 } |
| 6435 if (successCallback != null) { | 6455 if (successCallback != null) { |
| 6436 var options_2 = convertDartToNative_Dictionary(options); | 6456 var options_2 = convertDartToNative_Dictionary(options); |
| 6437 ___getFile_2(path, options_2, successCallback); | 6457 __getFile_2(path, options_2, successCallback); |
| 6438 return; | 6458 return; |
| 6439 } | 6459 } |
| 6440 if (options != null) { | 6460 if (options != null) { |
| 6441 var options_3 = convertDartToNative_Dictionary(options); | 6461 var options_3 = convertDartToNative_Dictionary(options); |
| 6442 ___getFile_3(path, options_3); | 6462 __getFile_3(path, options_3); |
| 6443 return; | 6463 return; |
| 6444 } | 6464 } |
| 6445 ___getFile_4(path); | 6465 __getFile_4(path); |
| 6446 return; | 6466 return; |
| 6447 } | 6467 } |
| 6448 @JSName('getFile') | 6468 @JSName('getFile') |
| 6449 @DomName('DirectoryEntry.getFile') | 6469 @DomName('DirectoryEntry.getFile') |
| 6450 @DocsEditable | 6470 @DocsEditable |
| 6451 void ___getFile_1(path, options, _EntryCallback successCallback, _ErrorCallbac
k errorCallback) native; | 6471 void __getFile_1(path, options, _EntryCallback successCallback, _ErrorCallback
errorCallback) native; |
| 6452 @JSName('getFile') | 6472 @JSName('getFile') |
| 6453 @DomName('DirectoryEntry.getFile') | 6473 @DomName('DirectoryEntry.getFile') |
| 6454 @DocsEditable | 6474 @DocsEditable |
| 6455 void ___getFile_2(path, options, _EntryCallback successCallback) native; | 6475 void __getFile_2(path, options, _EntryCallback successCallback) native; |
| 6456 @JSName('getFile') | 6476 @JSName('getFile') |
| 6457 @DomName('DirectoryEntry.getFile') | 6477 @DomName('DirectoryEntry.getFile') |
| 6458 @DocsEditable | 6478 @DocsEditable |
| 6459 void ___getFile_3(path, options) native; | 6479 void __getFile_3(path, options) native; |
| 6460 @JSName('getFile') | 6480 @JSName('getFile') |
| 6461 @DomName('DirectoryEntry.getFile') | 6481 @DomName('DirectoryEntry.getFile') |
| 6462 @DocsEditable | 6482 @DocsEditable |
| 6463 void ___getFile_4(path) native; | 6483 void __getFile_4(path) native; |
| 6464 | 6484 |
| 6465 @JSName('getFile') | 6485 @JSName('getFile') |
| 6466 @DomName('DirectoryEntry.getFile') | 6486 @DomName('DirectoryEntry.getFile') |
| 6467 @DocsEditable | 6487 @DocsEditable |
| 6468 Future<Entry> _getFile(String path, {Map options}) { | 6488 Future<Entry> _getFile(String path, {Map options}) { |
| 6469 var completer = new Completer<Entry>(); | 6489 var completer = new Completer<Entry>(); |
| 6470 __getFile(path, options : options, | 6490 __getFile(path, options : options, |
| 6471 successCallback : (value) { completer.complete(value); }, | 6491 successCallback : (value) { completer.complete(value); }, |
| 6472 errorCallback : (error) { completer.completeError(error); }); | 6492 errorCallback : (error) { completer.completeError(error); }); |
| 6473 return completer.future; | 6493 return completer.future; |
| (...skipping 4310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10784 return FormData._create_1(form); | 10804 return FormData._create_1(form); |
| 10785 } | 10805 } |
| 10786 return FormData._create_2(); | 10806 return FormData._create_2(); |
| 10787 } | 10807 } |
| 10788 static FormData _create_1(form) => JS('FormData', 'new FormData(#)', form); | 10808 static FormData _create_1(form) => JS('FormData', 'new FormData(#)', form); |
| 10789 static FormData _create_2() => JS('FormData', 'new FormData()'); | 10809 static FormData _create_2() => JS('FormData', 'new FormData()'); |
| 10790 | 10810 |
| 10791 /// Checks if this type is supported on the current platform. | 10811 /// Checks if this type is supported on the current platform. |
| 10792 static bool get supported => JS('bool', '!!(window.FormData)'); | 10812 static bool get supported => JS('bool', '!!(window.FormData)'); |
| 10793 | 10813 |
| 10814 @JSName('append') |
| 10794 @DomName('FormData.append') | 10815 @DomName('FormData.append') |
| 10795 @DocsEditable | 10816 @DocsEditable |
| 10796 void append(String name, value, [String filename]) native; | 10817 void appendBlob(String name, Blob value, [String filename]) native; |
| 10818 |
| 10819 @JSName('append') |
| 10820 @DomName('FormData.append') |
| 10821 @DocsEditable |
| 10822 void appendString(String name, String value) native; |
| 10797 } | 10823 } |
| 10798 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10824 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 10799 // for details. All rights reserved. Use of this source code is governed by a | 10825 // for details. All rights reserved. Use of this source code is governed by a |
| 10800 // BSD-style license that can be found in the LICENSE file. | 10826 // BSD-style license that can be found in the LICENSE file. |
| 10801 | 10827 |
| 10802 | 10828 |
| 10803 @DocsEditable | 10829 @DocsEditable |
| 10804 @DomName('HTMLFormElement') | 10830 @DomName('HTMLFormElement') |
| 10805 class FormElement extends _HTMLElement native "HTMLFormElement" { | 10831 class FormElement extends _HTMLElement native "HTMLFormElement" { |
| 10806 | 10832 |
| (...skipping 4872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15679 class MutationObserver native "MutationObserver,WebKitMutationObserver" { | 15705 class MutationObserver native "MutationObserver,WebKitMutationObserver" { |
| 15680 | 15706 |
| 15681 @DomName('MutationObserver.disconnect') | 15707 @DomName('MutationObserver.disconnect') |
| 15682 @DocsEditable | 15708 @DocsEditable |
| 15683 void disconnect() native; | 15709 void disconnect() native; |
| 15684 | 15710 |
| 15685 @DomName('MutationObserver.observe') | 15711 @DomName('MutationObserver.observe') |
| 15686 @DocsEditable | 15712 @DocsEditable |
| 15687 void _observe(Node target, Map options) { | 15713 void _observe(Node target, Map options) { |
| 15688 var options_1 = convertDartToNative_Dictionary(options); | 15714 var options_1 = convertDartToNative_Dictionary(options); |
| 15689 __observe_1(target, options_1); | 15715 _observe_1(target, options_1); |
| 15690 return; | 15716 return; |
| 15691 } | 15717 } |
| 15692 @JSName('observe') | 15718 @JSName('observe') |
| 15693 @DomName('MutationObserver.observe') | 15719 @DomName('MutationObserver.observe') |
| 15694 @DocsEditable | 15720 @DocsEditable |
| 15695 void __observe_1(Node target, options) native; | 15721 void _observe_1(Node target, options) native; |
| 15696 | 15722 |
| 15697 @DomName('MutationObserver.takeRecords') | 15723 @DomName('MutationObserver.takeRecords') |
| 15698 @DocsEditable | 15724 @DocsEditable |
| 15699 List<MutationRecord> takeRecords() native; | 15725 List<MutationRecord> takeRecords() native; |
| 15700 | 15726 |
| 15701 /** | 15727 /** |
| 15702 * Checks to see if the mutation observer API is supported on the current | 15728 * Checks to see if the mutation observer API is supported on the current |
| 15703 * platform. | 15729 * platform. |
| 15704 */ | 15730 */ |
| 15705 static bool get supported { | 15731 static bool get supported { |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15917 * | 15943 * |
| 15918 * Use [MediaStream.supported] to check if this is supported by the current | 15944 * Use [MediaStream.supported] to check if this is supported by the current |
| 15919 * platform. The arguments `audio` and `video` default to `false` (stream does | 15945 * platform. The arguments `audio` and `video` default to `false` (stream does |
| 15920 * not use audio or video, respectively). | 15946 * not use audio or video, respectively). |
| 15921 * | 15947 * |
| 15922 * Simple example usage: | 15948 * Simple example usage: |
| 15923 * | 15949 * |
| 15924 * window.navigator.getUserMedia(audio: true, video: true).then((stream) { | 15950 * window.navigator.getUserMedia(audio: true, video: true).then((stream) { |
| 15925 * var video = new VideoElement() | 15951 * var video = new VideoElement() |
| 15926 * ..autoplay = true | 15952 * ..autoplay = true |
| 15927 * ..src = Url.createObjectUrl(stream); | 15953 * ..src = Url.createObjectUrlFromStream(stream); |
| 15928 * document.body.append(video); | 15954 * document.body.append(video); |
| 15929 * }); | 15955 * }); |
| 15930 * | 15956 * |
| 15931 * The user can also pass in Maps to the audio or video parameters to specify | 15957 * The user can also pass in Maps to the audio or video parameters to specify |
| 15932 * mandatory and optional constraints for the media stream. Not passing in a | 15958 * mandatory and optional constraints for the media stream. Not passing in a |
| 15933 * map, but passing in `true` will provide a MediaStream with audio or | 15959 * map, but passing in `true` will provide a MediaStream with audio or |
| 15934 * video capabilities, but without any additional constraints. The particular | 15960 * video capabilities, but without any additional constraints. The particular |
| 15935 * constraint names for audio and video are still in flux, but as of this | 15961 * constraint names for audio and video are still in flux, but as of this |
| 15936 * writing, here is an example providing more constraints. | 15962 * writing, here is an example providing more constraints. |
| 15937 * | 15963 * |
| (...skipping 2412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18350 | 18376 |
| 18351 @JSName('removeEventListener') | 18377 @JSName('removeEventListener') |
| 18352 @DomName('RTCDataChannel.removeEventListener') | 18378 @DomName('RTCDataChannel.removeEventListener') |
| 18353 @DocsEditable | 18379 @DocsEditable |
| 18354 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 18380 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
| 18355 | 18381 |
| 18356 @DomName('RTCDataChannel.send') | 18382 @DomName('RTCDataChannel.send') |
| 18357 @DocsEditable | 18383 @DocsEditable |
| 18358 void send(data) native; | 18384 void send(data) native; |
| 18359 | 18385 |
| 18386 @JSName('send') |
| 18387 @DomName('RTCDataChannel.send') |
| 18388 @DocsEditable |
| 18389 void sendBlob(Blob data) native; |
| 18390 |
| 18391 @JSName('send') |
| 18392 @DomName('RTCDataChannel.send') |
| 18393 @DocsEditable |
| 18394 void sendByteBuffer(ByteBuffer data) native; |
| 18395 |
| 18396 @JSName('send') |
| 18397 @DomName('RTCDataChannel.send') |
| 18398 @DocsEditable |
| 18399 void sendString(String data) native; |
| 18400 |
| 18401 @JSName('send') |
| 18402 @DomName('RTCDataChannel.send') |
| 18403 @DocsEditable |
| 18404 void sendTypedData(TypedData data) native; |
| 18405 |
| 18360 @DomName('RTCDataChannel.onclose') | 18406 @DomName('RTCDataChannel.onclose') |
| 18361 @DocsEditable | 18407 @DocsEditable |
| 18362 Stream<Event> get onClose => closeEvent.forTarget(this); | 18408 Stream<Event> get onClose => closeEvent.forTarget(this); |
| 18363 | 18409 |
| 18364 @DomName('RTCDataChannel.onerror') | 18410 @DomName('RTCDataChannel.onerror') |
| 18365 @DocsEditable | 18411 @DocsEditable |
| 18366 Stream<Event> get onError => errorEvent.forTarget(this); | 18412 Stream<Event> get onError => errorEvent.forTarget(this); |
| 18367 | 18413 |
| 18368 @DomName('RTCDataChannel.onmessage') | 18414 @DomName('RTCDataChannel.onmessage') |
| 18369 @DocsEditable | 18415 @DocsEditable |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18645 | 18691 |
| 18646 @DomName('RTCPeerConnection.close') | 18692 @DomName('RTCPeerConnection.close') |
| 18647 @DocsEditable | 18693 @DocsEditable |
| 18648 void close() native; | 18694 void close() native; |
| 18649 | 18695 |
| 18650 @DomName('RTCPeerConnection.createAnswer') | 18696 @DomName('RTCPeerConnection.createAnswer') |
| 18651 @DocsEditable | 18697 @DocsEditable |
| 18652 void _createAnswer(_RtcSessionDescriptionCallback successCallback, [_RtcErrorC
allback failureCallback, Map mediaConstraints]) { | 18698 void _createAnswer(_RtcSessionDescriptionCallback successCallback, [_RtcErrorC
allback failureCallback, Map mediaConstraints]) { |
| 18653 if (mediaConstraints != null) { | 18699 if (mediaConstraints != null) { |
| 18654 var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints); | 18700 var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints); |
| 18655 __createAnswer_1(successCallback, failureCallback, mediaConstraints_1); | 18701 _createAnswer_1(successCallback, failureCallback, mediaConstraints_1); |
| 18656 return; | 18702 return; |
| 18657 } | 18703 } |
| 18658 __createAnswer_2(successCallback, failureCallback); | 18704 _createAnswer_2(successCallback, failureCallback); |
| 18659 return; | 18705 return; |
| 18660 } | 18706 } |
| 18661 @JSName('createAnswer') | 18707 @JSName('createAnswer') |
| 18662 @DomName('RTCPeerConnection.createAnswer') | 18708 @DomName('RTCPeerConnection.createAnswer') |
| 18663 @DocsEditable | 18709 @DocsEditable |
| 18664 void __createAnswer_1(_RtcSessionDescriptionCallback successCallback, _RtcErro
rCallback failureCallback, mediaConstraints) native; | 18710 void _createAnswer_1(_RtcSessionDescriptionCallback successCallback, _RtcError
Callback failureCallback, mediaConstraints) native; |
| 18665 @JSName('createAnswer') | 18711 @JSName('createAnswer') |
| 18666 @DomName('RTCPeerConnection.createAnswer') | 18712 @DomName('RTCPeerConnection.createAnswer') |
| 18667 @DocsEditable | 18713 @DocsEditable |
| 18668 void __createAnswer_2(_RtcSessionDescriptionCallback successCallback, _RtcErro
rCallback failureCallback) native; | 18714 void _createAnswer_2(_RtcSessionDescriptionCallback successCallback, _RtcError
Callback failureCallback) native; |
| 18669 | 18715 |
| 18670 @JSName('createDTMFSender') | 18716 @JSName('createDTMFSender') |
| 18671 @DomName('RTCPeerConnection.createDTMFSender') | 18717 @DomName('RTCPeerConnection.createDTMFSender') |
| 18672 @DocsEditable | 18718 @DocsEditable |
| 18673 RtcDtmfSender createDtmfSender(MediaStreamTrack track) native; | 18719 RtcDtmfSender createDtmfSender(MediaStreamTrack track) native; |
| 18674 | 18720 |
| 18675 @DomName('RTCPeerConnection.createDataChannel') | 18721 @DomName('RTCPeerConnection.createDataChannel') |
| 18676 @DocsEditable | 18722 @DocsEditable |
| 18677 RtcDataChannel createDataChannel(String label, [Map options]) { | 18723 RtcDataChannel createDataChannel(String label, [Map options]) { |
| 18678 if (options != null) { | 18724 if (options != null) { |
| 18679 var options_1 = convertDartToNative_Dictionary(options); | 18725 var options_1 = convertDartToNative_Dictionary(options); |
| 18680 return _createDataChannel_1(label, options_1); | 18726 return _createDataChannel_1(label, options_1); |
| 18681 } | 18727 } |
| 18682 return _createDataChannel_2(label); | 18728 return _createDataChannel_2(label); |
| 18683 } | 18729 } |
| 18684 @JSName('createDataChannel') | 18730 @JSName('createDataChannel') |
| 18685 @DomName('RTCPeerConnection.createDataChannel') | 18731 @DomName('RTCPeerConnection.createDataChannel') |
| 18686 @DocsEditable | 18732 @DocsEditable |
| 18687 RtcDataChannel _createDataChannel_1(label, options) native; | 18733 RtcDataChannel _createDataChannel_1(label, options) native; |
| 18688 @JSName('createDataChannel') | 18734 @JSName('createDataChannel') |
| 18689 @DomName('RTCPeerConnection.createDataChannel') | 18735 @DomName('RTCPeerConnection.createDataChannel') |
| 18690 @DocsEditable | 18736 @DocsEditable |
| 18691 RtcDataChannel _createDataChannel_2(label) native; | 18737 RtcDataChannel _createDataChannel_2(label) native; |
| 18692 | 18738 |
| 18693 @DomName('RTCPeerConnection.createOffer') | 18739 @DomName('RTCPeerConnection.createOffer') |
| 18694 @DocsEditable | 18740 @DocsEditable |
| 18695 void _createOffer(_RtcSessionDescriptionCallback successCallback, [_RtcErrorCa
llback failureCallback, Map mediaConstraints]) { | 18741 void _createOffer(_RtcSessionDescriptionCallback successCallback, [_RtcErrorCa
llback failureCallback, Map mediaConstraints]) { |
| 18696 if (mediaConstraints != null) { | 18742 if (mediaConstraints != null) { |
| 18697 var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints); | 18743 var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints); |
| 18698 __createOffer_1(successCallback, failureCallback, mediaConstraints_1); | 18744 _createOffer_1(successCallback, failureCallback, mediaConstraints_1); |
| 18699 return; | 18745 return; |
| 18700 } | 18746 } |
| 18701 __createOffer_2(successCallback, failureCallback); | 18747 _createOffer_2(successCallback, failureCallback); |
| 18702 return; | 18748 return; |
| 18703 } | 18749 } |
| 18704 @JSName('createOffer') | 18750 @JSName('createOffer') |
| 18705 @DomName('RTCPeerConnection.createOffer') | 18751 @DomName('RTCPeerConnection.createOffer') |
| 18706 @DocsEditable | 18752 @DocsEditable |
| 18707 void __createOffer_1(_RtcSessionDescriptionCallback successCallback, _RtcError
Callback failureCallback, mediaConstraints) native; | 18753 void _createOffer_1(_RtcSessionDescriptionCallback successCallback, _RtcErrorC
allback failureCallback, mediaConstraints) native; |
| 18708 @JSName('createOffer') | 18754 @JSName('createOffer') |
| 18709 @DomName('RTCPeerConnection.createOffer') | 18755 @DomName('RTCPeerConnection.createOffer') |
| 18710 @DocsEditable | 18756 @DocsEditable |
| 18711 void __createOffer_2(_RtcSessionDescriptionCallback successCallback, _RtcError
Callback failureCallback) native; | 18757 void _createOffer_2(_RtcSessionDescriptionCallback successCallback, _RtcErrorC
allback failureCallback) native; |
| 18712 | 18758 |
| 18713 @DomName('RTCPeerConnection.dispatchEvent') | 18759 @DomName('RTCPeerConnection.dispatchEvent') |
| 18714 @DocsEditable | 18760 @DocsEditable |
| 18715 bool dispatchEvent(Event event) native; | 18761 bool dispatchEvent(Event event) native; |
| 18716 | 18762 |
| 18717 @DomName('RTCPeerConnection.getLocalStreams') | 18763 @DomName('RTCPeerConnection.getLocalStreams') |
| 18718 @DocsEditable | 18764 @DocsEditable |
| 18719 List<MediaStream> getLocalStreams() native; | 18765 List<MediaStream> getLocalStreams() native; |
| 18720 | 18766 |
| 18721 @DomName('RTCPeerConnection.getRemoteStreams') | 18767 @DomName('RTCPeerConnection.getRemoteStreams') |
| (...skipping 2600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21322 void select() native; | 21368 void select() native; |
| 21323 | 21369 |
| 21324 @DomName('HTMLTextAreaElement.setCustomValidity') | 21370 @DomName('HTMLTextAreaElement.setCustomValidity') |
| 21325 @DocsEditable | 21371 @DocsEditable |
| 21326 void setCustomValidity(String error) native; | 21372 void setCustomValidity(String error) native; |
| 21327 | 21373 |
| 21328 @DomName('HTMLTextAreaElement.setRangeText') | 21374 @DomName('HTMLTextAreaElement.setRangeText') |
| 21329 @DocsEditable | 21375 @DocsEditable |
| 21330 // http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-
controls-and-forms.html#dom-textarea/input-setrangetext | 21376 // http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-
controls-and-forms.html#dom-textarea/input-setrangetext |
| 21331 @Experimental | 21377 @Experimental |
| 21332 void setRangeText(String replacement, [int start, int end, String selectionMod
e]) native; | 21378 void setRangeText(String replacement, {int start, int end, String selectionMod
e}) native; |
| 21333 | 21379 |
| 21334 @DomName('HTMLTextAreaElement.setSelectionRange') | 21380 @DomName('HTMLTextAreaElement.setSelectionRange') |
| 21335 @DocsEditable | 21381 @DocsEditable |
| 21336 void setSelectionRange(int start, int end, [String direction]) native; | 21382 void setSelectionRange(int start, int end, [String direction]) native; |
| 21337 } | 21383 } |
| 21338 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 21384 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 21339 // for details. All rights reserved. Use of this source code is governed by a | 21385 // for details. All rights reserved. Use of this source code is governed by a |
| 21340 // BSD-style license that can be found in the LICENSE file. | 21386 // BSD-style license that can be found in the LICENSE file. |
| 21341 | 21387 |
| 21342 // WARNING: Do not edit - generated code. | 21388 // WARNING: Do not edit - generated code. |
| (...skipping 945 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 22288 // for details. All rights reserved. Use of this source code is governed by a | 22334 // for details. All rights reserved. Use of this source code is governed by a |
| 22289 // BSD-style license that can be found in the LICENSE file. | 22335 // BSD-style license that can be found in the LICENSE file. |
| 22290 | 22336 |
| 22291 | 22337 |
| 22292 @DomName('URL') | 22338 @DomName('URL') |
| 22293 class Url native "URL" { | 22339 class Url native "URL" { |
| 22294 | 22340 |
| 22295 static String createObjectUrl(blob_OR_source_OR_stream) => | 22341 static String createObjectUrl(blob_OR_source_OR_stream) => |
| 22296 JS('String', | 22342 JS('String', |
| 22297 '(self.URL || self.webkitURL).createObjectURL(#)', | 22343 '(self.URL || self.webkitURL).createObjectURL(#)', |
| 22298 blob_OR_source_OR_stream); | 22344 blob_OR_source_OR_stream); |
| 22345 |
| 22346 static String createObjectUrlFromSource(MediaSource source) => |
| 22347 JS('String', '(self.URL || self.webkitURL).createObjectURL(#)', source); |
| 22348 |
| 22349 static String createObjectUrlFromStream(MediaStream stream) => |
| 22350 JS('String', '(self.URL || self.webkitURL).createObjectURL(#)', stream); |
| 22351 |
| 22352 static String createObjectUrlFromBlob(Blob blob) => |
| 22353 JS('String', '(self.URL || self.webkitURL).createObjectURL(#)', blob); |
| 22299 | 22354 |
| 22300 static void revokeObjectUrl(String url) => | 22355 static void revokeObjectUrl(String url) => |
| 22301 JS('void', | 22356 JS('void', |
| 22302 '(self.URL || self.webkitURL).revokeObjectURL(#)', url); | 22357 '(self.URL || self.webkitURL).revokeObjectURL(#)', url); |
| 22303 | 22358 |
| 22304 } | 22359 } |
| 22305 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22360 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 22306 // for details. All rights reserved. Use of this source code is governed by a | 22361 // for details. All rights reserved. Use of this source code is governed by a |
| 22307 // BSD-style license that can be found in the LICENSE file. | 22362 // BSD-style license that can be found in the LICENSE file. |
| 22308 | 22363 |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 22615 | 22670 |
| 22616 @JSName('removeEventListener') | 22671 @JSName('removeEventListener') |
| 22617 @DomName('WebSocket.removeEventListener') | 22672 @DomName('WebSocket.removeEventListener') |
| 22618 @DocsEditable | 22673 @DocsEditable |
| 22619 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 22674 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
| 22620 | 22675 |
| 22621 @DomName('WebSocket.send') | 22676 @DomName('WebSocket.send') |
| 22622 @DocsEditable | 22677 @DocsEditable |
| 22623 void send(data) native; | 22678 void send(data) native; |
| 22624 | 22679 |
| 22680 @JSName('send') |
| 22681 @DomName('WebSocket.send') |
| 22682 @DocsEditable |
| 22683 void sendBlob(Blob data) native; |
| 22684 |
| 22685 @JSName('send') |
| 22686 @DomName('WebSocket.send') |
| 22687 @DocsEditable |
| 22688 void sendByteBuffer(ByteBuffer data) native; |
| 22689 |
| 22690 @JSName('send') |
| 22691 @DomName('WebSocket.send') |
| 22692 @DocsEditable |
| 22693 void sendString(String data) native; |
| 22694 |
| 22695 @JSName('send') |
| 22696 @DomName('WebSocket.send') |
| 22697 @DocsEditable |
| 22698 void sendTypeData(TypedData data) native; |
| 22699 |
| 22625 @DomName('WebSocket.onclose') | 22700 @DomName('WebSocket.onclose') |
| 22626 @DocsEditable | 22701 @DocsEditable |
| 22627 Stream<CloseEvent> get onClose => closeEvent.forTarget(this); | 22702 Stream<CloseEvent> get onClose => closeEvent.forTarget(this); |
| 22628 | 22703 |
| 22629 @DomName('WebSocket.onerror') | 22704 @DomName('WebSocket.onerror') |
| 22630 @DocsEditable | 22705 @DocsEditable |
| 22631 Stream<Event> get onError => errorEvent.forTarget(this); | 22706 Stream<Event> get onError => errorEvent.forTarget(this); |
| 22632 | 22707 |
| 22633 @DomName('WebSocket.onmessage') | 22708 @DomName('WebSocket.onmessage') |
| 22634 @DocsEditable | 22709 @DocsEditable |
| (...skipping 811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 23446 @Creates('Window|=Object') | 23521 @Creates('Window|=Object') |
| 23447 @Returns('Window|=Object') | 23522 @Returns('Window|=Object') |
| 23448 final dynamic _get_window; | 23523 final dynamic _get_window; |
| 23449 | 23524 |
| 23450 @DomName('Window.__getter__') | 23525 @DomName('Window.__getter__') |
| 23451 @DocsEditable | 23526 @DocsEditable |
| 23452 @Creates('Window|=Object') | 23527 @Creates('Window|=Object') |
| 23453 @Returns('Window|=Object') | 23528 @Returns('Window|=Object') |
| 23454 WindowBase __getter__(index_OR_name) { | 23529 WindowBase __getter__(index_OR_name) { |
| 23455 if ((index_OR_name is int || index_OR_name == null)) { | 23530 if ((index_OR_name is int || index_OR_name == null)) { |
| 23456 return _convertNativeToDart_Window(___getter___1(index_OR_name)); | 23531 return _convertNativeToDart_Window(__getter___1(index_OR_name)); |
| 23457 } | 23532 } |
| 23458 if ((index_OR_name is String || index_OR_name == null)) { | 23533 if ((index_OR_name is String || index_OR_name == null)) { |
| 23459 return _convertNativeToDart_Window(___getter___2(index_OR_name)); | 23534 return _convertNativeToDart_Window(__getter___2(index_OR_name)); |
| 23460 } | 23535 } |
| 23461 throw new ArgumentError("Incorrect number or type of arguments"); | 23536 throw new ArgumentError("Incorrect number or type of arguments"); |
| 23462 } | 23537 } |
| 23463 @JSName('__getter__') | 23538 @JSName('__getter__') |
| 23464 @DomName('Window.__getter__') | 23539 @DomName('Window.__getter__') |
| 23465 @DocsEditable | 23540 @DocsEditable |
| 23466 @Creates('Window|=Object') | 23541 @Creates('Window|=Object') |
| 23467 @Returns('Window|=Object') | 23542 @Returns('Window|=Object') |
| 23468 ___getter___1(int index) native; | 23543 __getter___1(int index) native; |
| 23469 @JSName('__getter__') | 23544 @JSName('__getter__') |
| 23470 @DomName('Window.__getter__') | 23545 @DomName('Window.__getter__') |
| 23471 @DocsEditable | 23546 @DocsEditable |
| 23472 @Creates('Window|=Object') | 23547 @Creates('Window|=Object') |
| 23473 @Returns('Window|=Object') | 23548 @Returns('Window|=Object') |
| 23474 ___getter___2(String name) native; | 23549 __getter___2(String name) native; |
| 23475 | 23550 |
| 23476 @JSName('addEventListener') | 23551 @JSName('addEventListener') |
| 23477 @DomName('Window.addEventListener') | 23552 @DomName('Window.addEventListener') |
| 23478 @DocsEditable | 23553 @DocsEditable |
| 23479 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 23554 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
| 23480 | 23555 |
| 23481 @DomName('Window.alert') | 23556 @DomName('Window.alert') |
| 23482 @DocsEditable | 23557 @DocsEditable |
| 23483 void alert(String message) native; | 23558 void alert(String message) native; |
| 23484 | 23559 |
| (...skipping 5306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 28791 _position = nextPosition; | 28866 _position = nextPosition; |
| 28792 return true; | 28867 return true; |
| 28793 } | 28868 } |
| 28794 _current = null; | 28869 _current = null; |
| 28795 _position = _array.length; | 28870 _position = _array.length; |
| 28796 return false; | 28871 return false; |
| 28797 } | 28872 } |
| 28798 | 28873 |
| 28799 T get current => _current; | 28874 T get current => _current; |
| 28800 } | 28875 } |
| OLD | NEW |