| 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 1189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1200 @DocsEditable() | 1200 @DocsEditable() |
| 1201 @Creates('ImageData|=Object') | 1201 @Creates('ImageData|=Object') |
| 1202 _createImageDataFromImageData_1(imagedata) native; | 1202 _createImageDataFromImageData_1(imagedata) native; |
| 1203 | 1203 |
| 1204 @DomName('CanvasRenderingContext2D.createLinearGradient') | 1204 @DomName('CanvasRenderingContext2D.createLinearGradient') |
| 1205 @DocsEditable() | 1205 @DocsEditable() |
| 1206 CanvasGradient createLinearGradient(num x0, num y0, num x1, num y1) native; | 1206 CanvasGradient createLinearGradient(num x0, num y0, num x1, num y1) native; |
| 1207 | 1207 |
| 1208 @DomName('CanvasRenderingContext2D.createPattern') | 1208 @DomName('CanvasRenderingContext2D.createPattern') |
| 1209 @DocsEditable() | 1209 @DocsEditable() |
| 1210 CanvasPattern createPattern(CanvasElement canvas, String repetitionType) nativ
e; | 1210 CanvasPattern createPattern(canvas_OR_image, String repetitionType) native; |
| 1211 | |
| 1212 @JSName('createPattern') | |
| 1213 @DomName('CanvasRenderingContext2D.createPattern') | |
| 1214 @DocsEditable() | |
| 1215 CanvasPattern createPatternFromImage(ImageElement image, String repetitionType
) native; | |
| 1216 | 1211 |
| 1217 @DomName('CanvasRenderingContext2D.createRadialGradient') | 1212 @DomName('CanvasRenderingContext2D.createRadialGradient') |
| 1218 @DocsEditable() | 1213 @DocsEditable() |
| 1219 CanvasGradient createRadialGradient(num x0, num y0, num r0, num x1, num y1, nu
m r1) native; | 1214 CanvasGradient createRadialGradient(num x0, num y0, num r0, num x1, num y1, nu
m r1) native; |
| 1220 | 1215 |
| 1221 @DomName('CanvasRenderingContext2D.fill') | 1216 @DomName('CanvasRenderingContext2D.fill') |
| 1222 @DocsEditable() | 1217 @DocsEditable() |
| 1223 void fill([String winding]) native; | 1218 void fill([String winding]) native; |
| 1224 | 1219 |
| 1225 @DomName('CanvasRenderingContext2D.fillRect') | 1220 @DomName('CanvasRenderingContext2D.fillRect') |
| (...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1959 | 1954 |
| 1960 | 1955 |
| 1961 @DocsEditable() | 1956 @DocsEditable() |
| 1962 @DomName('CSS') | 1957 @DomName('CSS') |
| 1963 // http://www.w3.org/TR/css3-conditional/#the-css-interface | 1958 // http://www.w3.org/TR/css3-conditional/#the-css-interface |
| 1964 @Experimental() // None | 1959 @Experimental() // None |
| 1965 class Css extends Interceptor native "CSS" { | 1960 class Css extends Interceptor native "CSS" { |
| 1966 | 1961 |
| 1967 @DomName('CSS.supports') | 1962 @DomName('CSS.supports') |
| 1968 @DocsEditable() | 1963 @DocsEditable() |
| 1969 bool supports(String property, String value) native; | 1964 bool supports(String conditionText_OR_property, [String value]) native; |
| 1970 | |
| 1971 @JSName('supports') | |
| 1972 @DomName('CSS.supports') | |
| 1973 @DocsEditable() | |
| 1974 bool supportsCondition(String conditionText) native; | |
| 1975 } | 1965 } |
| 1976 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1966 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1977 // for details. All rights reserved. Use of this source code is governed by a | 1967 // for details. All rights reserved. Use of this source code is governed by a |
| 1978 // BSD-style license that can be found in the LICENSE file. | 1968 // BSD-style license that can be found in the LICENSE file. |
| 1979 | 1969 |
| 1980 | 1970 |
| 1981 @DocsEditable() | 1971 @DocsEditable() |
| 1982 @DomName('CSSCharsetRule') | 1972 @DomName('CSSCharsetRule') |
| 1983 // http://dev.w3.org/csswg/cssom/#the-csscharsetrule-interface | 1973 // http://dev.w3.org/csswg/cssom/#the-csscharsetrule-interface |
| 1984 @Experimental() | 1974 @Experimental() |
| (...skipping 4241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6226 class DataTransferItemList extends Interceptor native "DataTransferItemList" { | 6216 class DataTransferItemList extends Interceptor native "DataTransferItemList" { |
| 6227 | 6217 |
| 6228 @DomName('DataTransferItemList.length') | 6218 @DomName('DataTransferItemList.length') |
| 6229 @DocsEditable() | 6219 @DocsEditable() |
| 6230 final int length; | 6220 final int length; |
| 6231 | 6221 |
| 6232 @DomName('DataTransferItemList.add') | 6222 @DomName('DataTransferItemList.add') |
| 6233 @DocsEditable() | 6223 @DocsEditable() |
| 6234 void add(data_OR_file, [String type]) native; | 6224 void add(data_OR_file, [String type]) native; |
| 6235 | 6225 |
| 6236 @JSName('add') | |
| 6237 @DomName('DataTransferItemList.add') | |
| 6238 @DocsEditable() | |
| 6239 void addData(String data, String type) native; | |
| 6240 | |
| 6241 @JSName('add') | |
| 6242 @DomName('DataTransferItemList.add') | |
| 6243 @DocsEditable() | |
| 6244 void addFile(File file) native; | |
| 6245 | |
| 6246 @DomName('DataTransferItemList.clear') | 6226 @DomName('DataTransferItemList.clear') |
| 6247 @DocsEditable() | 6227 @DocsEditable() |
| 6248 void clear() native; | 6228 void clear() native; |
| 6249 | 6229 |
| 6250 @DomName('DataTransferItemList.item') | 6230 @DomName('DataTransferItemList.item') |
| 6251 @DocsEditable() | 6231 @DocsEditable() |
| 6252 DataTransferItem item(int index) native; | 6232 DataTransferItem item(int index) native; |
| 6253 } | 6233 } |
| 6254 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6234 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6255 // for details. All rights reserved. Use of this source code is governed by a | 6235 // for details. All rights reserved. Use of this source code is governed by a |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6484 | 6464 |
| 6485 @DomName('DirectoryEntry.createReader') | 6465 @DomName('DirectoryEntry.createReader') |
| 6486 @DocsEditable() | 6466 @DocsEditable() |
| 6487 DirectoryReader createReader() native; | 6467 DirectoryReader createReader() native; |
| 6488 | 6468 |
| 6489 @DomName('DirectoryEntry.getDirectory') | 6469 @DomName('DirectoryEntry.getDirectory') |
| 6490 @DocsEditable() | 6470 @DocsEditable() |
| 6491 void __getDirectory(String path, {Map options, _EntryCallback successCallback,
_ErrorCallback errorCallback}) { | 6471 void __getDirectory(String path, {Map options, _EntryCallback successCallback,
_ErrorCallback errorCallback}) { |
| 6492 if (errorCallback != null) { | 6472 if (errorCallback != null) { |
| 6493 var options_1 = convertDartToNative_Dictionary(options); | 6473 var options_1 = convertDartToNative_Dictionary(options); |
| 6494 __getDirectory_1(path, options_1, successCallback, errorCallback); | 6474 ___getDirectory_1(path, options_1, successCallback, errorCallback); |
| 6495 return; | 6475 return; |
| 6496 } | 6476 } |
| 6497 if (successCallback != null) { | 6477 if (successCallback != null) { |
| 6498 var options_2 = convertDartToNative_Dictionary(options); | 6478 var options_2 = convertDartToNative_Dictionary(options); |
| 6499 __getDirectory_2(path, options_2, successCallback); | 6479 ___getDirectory_2(path, options_2, successCallback); |
| 6500 return; | 6480 return; |
| 6501 } | 6481 } |
| 6502 if (options != null) { | 6482 if (options != null) { |
| 6503 var options_3 = convertDartToNative_Dictionary(options); | 6483 var options_3 = convertDartToNative_Dictionary(options); |
| 6504 __getDirectory_3(path, options_3); | 6484 ___getDirectory_3(path, options_3); |
| 6505 return; | 6485 return; |
| 6506 } | 6486 } |
| 6507 __getDirectory_4(path); | 6487 ___getDirectory_4(path); |
| 6508 return; | 6488 return; |
| 6509 } | 6489 } |
| 6510 @JSName('getDirectory') | 6490 @JSName('getDirectory') |
| 6511 @DomName('DirectoryEntry.getDirectory') | 6491 @DomName('DirectoryEntry.getDirectory') |
| 6512 @DocsEditable() | 6492 @DocsEditable() |
| 6513 void __getDirectory_1(path, options, _EntryCallback successCallback, _ErrorCal
lback errorCallback) native; | 6493 void ___getDirectory_1(path, options, _EntryCallback successCallback, _ErrorCa
llback errorCallback) native; |
| 6514 @JSName('getDirectory') | 6494 @JSName('getDirectory') |
| 6515 @DomName('DirectoryEntry.getDirectory') | 6495 @DomName('DirectoryEntry.getDirectory') |
| 6516 @DocsEditable() | 6496 @DocsEditable() |
| 6517 void __getDirectory_2(path, options, _EntryCallback successCallback) native; | 6497 void ___getDirectory_2(path, options, _EntryCallback successCallback) native; |
| 6518 @JSName('getDirectory') | 6498 @JSName('getDirectory') |
| 6519 @DomName('DirectoryEntry.getDirectory') | 6499 @DomName('DirectoryEntry.getDirectory') |
| 6520 @DocsEditable() | 6500 @DocsEditable() |
| 6521 void __getDirectory_3(path, options) native; | 6501 void ___getDirectory_3(path, options) native; |
| 6522 @JSName('getDirectory') | 6502 @JSName('getDirectory') |
| 6523 @DomName('DirectoryEntry.getDirectory') | 6503 @DomName('DirectoryEntry.getDirectory') |
| 6524 @DocsEditable() | 6504 @DocsEditable() |
| 6525 void __getDirectory_4(path) native; | 6505 void ___getDirectory_4(path) native; |
| 6526 | 6506 |
| 6527 @JSName('getDirectory') | 6507 @JSName('getDirectory') |
| 6528 @DomName('DirectoryEntry.getDirectory') | 6508 @DomName('DirectoryEntry.getDirectory') |
| 6529 @DocsEditable() | 6509 @DocsEditable() |
| 6530 Future<Entry> _getDirectory(String path, {Map options}) { | 6510 Future<Entry> _getDirectory(String path, {Map options}) { |
| 6531 var completer = new Completer<Entry>(); | 6511 var completer = new Completer<Entry>(); |
| 6532 __getDirectory(path, options : options, | 6512 __getDirectory(path, options : options, |
| 6533 successCallback : (value) { completer.complete(value); }, | 6513 successCallback : (value) { completer.complete(value); }, |
| 6534 errorCallback : (error) { completer.completeError(error); }); | 6514 errorCallback : (error) { completer.completeError(error); }); |
| 6535 return completer.future; | 6515 return completer.future; |
| 6536 } | 6516 } |
| 6537 | 6517 |
| 6538 @DomName('DirectoryEntry.getFile') | 6518 @DomName('DirectoryEntry.getFile') |
| 6539 @DocsEditable() | 6519 @DocsEditable() |
| 6540 void __getFile(String path, {Map options, _EntryCallback successCallback, _Err
orCallback errorCallback}) { | 6520 void __getFile(String path, {Map options, _EntryCallback successCallback, _Err
orCallback errorCallback}) { |
| 6541 if (errorCallback != null) { | 6521 if (errorCallback != null) { |
| 6542 var options_1 = convertDartToNative_Dictionary(options); | 6522 var options_1 = convertDartToNative_Dictionary(options); |
| 6543 __getFile_1(path, options_1, successCallback, errorCallback); | 6523 ___getFile_1(path, options_1, successCallback, errorCallback); |
| 6544 return; | 6524 return; |
| 6545 } | 6525 } |
| 6546 if (successCallback != null) { | 6526 if (successCallback != null) { |
| 6547 var options_2 = convertDartToNative_Dictionary(options); | 6527 var options_2 = convertDartToNative_Dictionary(options); |
| 6548 __getFile_2(path, options_2, successCallback); | 6528 ___getFile_2(path, options_2, successCallback); |
| 6549 return; | 6529 return; |
| 6550 } | 6530 } |
| 6551 if (options != null) { | 6531 if (options != null) { |
| 6552 var options_3 = convertDartToNative_Dictionary(options); | 6532 var options_3 = convertDartToNative_Dictionary(options); |
| 6553 __getFile_3(path, options_3); | 6533 ___getFile_3(path, options_3); |
| 6554 return; | 6534 return; |
| 6555 } | 6535 } |
| 6556 __getFile_4(path); | 6536 ___getFile_4(path); |
| 6557 return; | 6537 return; |
| 6558 } | 6538 } |
| 6559 @JSName('getFile') | 6539 @JSName('getFile') |
| 6560 @DomName('DirectoryEntry.getFile') | 6540 @DomName('DirectoryEntry.getFile') |
| 6561 @DocsEditable() | 6541 @DocsEditable() |
| 6562 void __getFile_1(path, options, _EntryCallback successCallback, _ErrorCallback
errorCallback) native; | 6542 void ___getFile_1(path, options, _EntryCallback successCallback, _ErrorCallbac
k errorCallback) native; |
| 6563 @JSName('getFile') | 6543 @JSName('getFile') |
| 6564 @DomName('DirectoryEntry.getFile') | 6544 @DomName('DirectoryEntry.getFile') |
| 6565 @DocsEditable() | 6545 @DocsEditable() |
| 6566 void __getFile_2(path, options, _EntryCallback successCallback) native; | 6546 void ___getFile_2(path, options, _EntryCallback successCallback) native; |
| 6567 @JSName('getFile') | 6547 @JSName('getFile') |
| 6568 @DomName('DirectoryEntry.getFile') | 6548 @DomName('DirectoryEntry.getFile') |
| 6569 @DocsEditable() | 6549 @DocsEditable() |
| 6570 void __getFile_3(path, options) native; | 6550 void ___getFile_3(path, options) native; |
| 6571 @JSName('getFile') | 6551 @JSName('getFile') |
| 6572 @DomName('DirectoryEntry.getFile') | 6552 @DomName('DirectoryEntry.getFile') |
| 6573 @DocsEditable() | 6553 @DocsEditable() |
| 6574 void __getFile_4(path) native; | 6554 void ___getFile_4(path) native; |
| 6575 | 6555 |
| 6576 @JSName('getFile') | 6556 @JSName('getFile') |
| 6577 @DomName('DirectoryEntry.getFile') | 6557 @DomName('DirectoryEntry.getFile') |
| 6578 @DocsEditable() | 6558 @DocsEditable() |
| 6579 Future<Entry> _getFile(String path, {Map options}) { | 6559 Future<Entry> _getFile(String path, {Map options}) { |
| 6580 var completer = new Completer<Entry>(); | 6560 var completer = new Completer<Entry>(); |
| 6581 __getFile(path, options : options, | 6561 __getFile(path, options : options, |
| 6582 successCallback : (value) { completer.complete(value); }, | 6562 successCallback : (value) { completer.complete(value); }, |
| 6583 errorCallback : (error) { completer.completeError(error); }); | 6563 errorCallback : (error) { completer.completeError(error); }); |
| 6584 return completer.future; | 6564 return completer.future; |
| (...skipping 4492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11077 return FormData._create_2(); | 11057 return FormData._create_2(); |
| 11078 } | 11058 } |
| 11079 static FormData _create_1(form) => JS('FormData', 'new FormData(#)', form); | 11059 static FormData _create_1(form) => JS('FormData', 'new FormData(#)', form); |
| 11080 static FormData _create_2() => JS('FormData', 'new FormData()'); | 11060 static FormData _create_2() => JS('FormData', 'new FormData()'); |
| 11081 | 11061 |
| 11082 /// Checks if this type is supported on the current platform. | 11062 /// Checks if this type is supported on the current platform. |
| 11083 static bool get supported => JS('bool', '!!(window.FormData)'); | 11063 static bool get supported => JS('bool', '!!(window.FormData)'); |
| 11084 | 11064 |
| 11085 @DomName('FormData.append') | 11065 @DomName('FormData.append') |
| 11086 @DocsEditable() | 11066 @DocsEditable() |
| 11087 void append(String name, String value) native; | 11067 void append(String name, value, [String filename]) native; |
| 11088 | |
| 11089 @JSName('append') | |
| 11090 @DomName('FormData.append') | |
| 11091 @DocsEditable() | |
| 11092 void appendBlob(String name, Blob value, [String filename]) native; | |
| 11093 } | 11068 } |
| 11094 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11069 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 11095 // for details. All rights reserved. Use of this source code is governed by a | 11070 // for details. All rights reserved. Use of this source code is governed by a |
| 11096 // BSD-style license that can be found in the LICENSE file. | 11071 // BSD-style license that can be found in the LICENSE file. |
| 11097 | 11072 |
| 11098 | 11073 |
| 11099 @DocsEditable() | 11074 @DocsEditable() |
| 11100 @DomName('HTMLFormElement') | 11075 @DomName('HTMLFormElement') |
| 11101 class FormElement extends _HTMLElement native "HTMLFormElement" { | 11076 class FormElement extends _HTMLElement native "HTMLFormElement" { |
| 11102 // To suppress missing implicit constructor warnings. | 11077 // To suppress missing implicit constructor warnings. |
| (...skipping 4965 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16068 class MutationObserver extends Interceptor native "MutationObserver,WebKitMutati
onObserver" { | 16043 class MutationObserver extends Interceptor native "MutationObserver,WebKitMutati
onObserver" { |
| 16069 | 16044 |
| 16070 @DomName('MutationObserver.disconnect') | 16045 @DomName('MutationObserver.disconnect') |
| 16071 @DocsEditable() | 16046 @DocsEditable() |
| 16072 void disconnect() native; | 16047 void disconnect() native; |
| 16073 | 16048 |
| 16074 @DomName('MutationObserver.observe') | 16049 @DomName('MutationObserver.observe') |
| 16075 @DocsEditable() | 16050 @DocsEditable() |
| 16076 void _observe(Node target, Map options) { | 16051 void _observe(Node target, Map options) { |
| 16077 var options_1 = convertDartToNative_Dictionary(options); | 16052 var options_1 = convertDartToNative_Dictionary(options); |
| 16078 _observe_1(target, options_1); | 16053 __observe_1(target, options_1); |
| 16079 return; | 16054 return; |
| 16080 } | 16055 } |
| 16081 @JSName('observe') | 16056 @JSName('observe') |
| 16082 @DomName('MutationObserver.observe') | 16057 @DomName('MutationObserver.observe') |
| 16083 @DocsEditable() | 16058 @DocsEditable() |
| 16084 void _observe_1(Node target, options) native; | 16059 void __observe_1(Node target, options) native; |
| 16085 | 16060 |
| 16086 @DomName('MutationObserver.takeRecords') | 16061 @DomName('MutationObserver.takeRecords') |
| 16087 @DocsEditable() | 16062 @DocsEditable() |
| 16088 List<MutationRecord> takeRecords() native; | 16063 List<MutationRecord> takeRecords() native; |
| 16089 | 16064 |
| 16090 /** | 16065 /** |
| 16091 * Checks to see if the mutation observer API is supported on the current | 16066 * Checks to see if the mutation observer API is supported on the current |
| 16092 * platform. | 16067 * platform. |
| 16093 */ | 16068 */ |
| 16094 static bool get supported { | 16069 static bool get supported { |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16308 * | 16283 * |
| 16309 * Use [MediaStream.supported] to check if this is supported by the current | 16284 * Use [MediaStream.supported] to check if this is supported by the current |
| 16310 * platform. The arguments `audio` and `video` default to `false` (stream does | 16285 * platform. The arguments `audio` and `video` default to `false` (stream does |
| 16311 * not use audio or video, respectively). | 16286 * not use audio or video, respectively). |
| 16312 * | 16287 * |
| 16313 * Simple example usage: | 16288 * Simple example usage: |
| 16314 * | 16289 * |
| 16315 * window.navigator.getUserMedia(audio: true, video: true).then((stream) { | 16290 * window.navigator.getUserMedia(audio: true, video: true).then((stream) { |
| 16316 * var video = new VideoElement() | 16291 * var video = new VideoElement() |
| 16317 * ..autoplay = true | 16292 * ..autoplay = true |
| 16318 * ..src = Url.createObjectUrlFromStream(stream); | 16293 * ..src = Url.createObjectUrl(stream); |
| 16319 * document.body.append(video); | 16294 * document.body.append(video); |
| 16320 * }); | 16295 * }); |
| 16321 * | 16296 * |
| 16322 * The user can also pass in Maps to the audio or video parameters to specify | 16297 * The user can also pass in Maps to the audio or video parameters to specify |
| 16323 * mandatory and optional constraints for the media stream. Not passing in a | 16298 * mandatory and optional constraints for the media stream. Not passing in a |
| 16324 * map, but passing in `true` will provide a MediaStream with audio or | 16299 * map, but passing in `true` will provide a MediaStream with audio or |
| 16325 * video capabilities, but without any additional constraints. The particular | 16300 * video capabilities, but without any additional constraints. The particular |
| 16326 * constraint names for audio and video are still in flux, but as of this | 16301 * constraint names for audio and video are still in flux, but as of this |
| 16327 * writing, here is an example providing more constraints. | 16302 * writing, here is an example providing more constraints. |
| 16328 * | 16303 * |
| (...skipping 2460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18789 | 18764 |
| 18790 @JSName('removeEventListener') | 18765 @JSName('removeEventListener') |
| 18791 @DomName('RTCDataChannel.removeEventListener') | 18766 @DomName('RTCDataChannel.removeEventListener') |
| 18792 @DocsEditable() | 18767 @DocsEditable() |
| 18793 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 18768 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
| 18794 | 18769 |
| 18795 @DomName('RTCDataChannel.send') | 18770 @DomName('RTCDataChannel.send') |
| 18796 @DocsEditable() | 18771 @DocsEditable() |
| 18797 void send(data) native; | 18772 void send(data) native; |
| 18798 | 18773 |
| 18799 @JSName('send') | |
| 18800 @DomName('RTCDataChannel.send') | |
| 18801 @DocsEditable() | |
| 18802 void sendBlob(Blob data) native; | |
| 18803 | |
| 18804 @JSName('send') | |
| 18805 @DomName('RTCDataChannel.send') | |
| 18806 @DocsEditable() | |
| 18807 void sendByteBuffer(ByteBuffer data) native; | |
| 18808 | |
| 18809 @JSName('send') | |
| 18810 @DomName('RTCDataChannel.send') | |
| 18811 @DocsEditable() | |
| 18812 void sendString(String data) native; | |
| 18813 | |
| 18814 @JSName('send') | |
| 18815 @DomName('RTCDataChannel.send') | |
| 18816 @DocsEditable() | |
| 18817 void sendTypedData(TypedData data) native; | |
| 18818 | |
| 18819 @DomName('RTCDataChannel.onclose') | 18774 @DomName('RTCDataChannel.onclose') |
| 18820 @DocsEditable() | 18775 @DocsEditable() |
| 18821 Stream<Event> get onClose => closeEvent.forTarget(this); | 18776 Stream<Event> get onClose => closeEvent.forTarget(this); |
| 18822 | 18777 |
| 18823 @DomName('RTCDataChannel.onerror') | 18778 @DomName('RTCDataChannel.onerror') |
| 18824 @DocsEditable() | 18779 @DocsEditable() |
| 18825 Stream<Event> get onError => errorEvent.forTarget(this); | 18780 Stream<Event> get onError => errorEvent.forTarget(this); |
| 18826 | 18781 |
| 18827 @DomName('RTCDataChannel.onmessage') | 18782 @DomName('RTCDataChannel.onmessage') |
| 18828 @DocsEditable() | 18783 @DocsEditable() |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 19114 | 19069 |
| 19115 @DomName('RTCPeerConnection.close') | 19070 @DomName('RTCPeerConnection.close') |
| 19116 @DocsEditable() | 19071 @DocsEditable() |
| 19117 void close() native; | 19072 void close() native; |
| 19118 | 19073 |
| 19119 @DomName('RTCPeerConnection.createAnswer') | 19074 @DomName('RTCPeerConnection.createAnswer') |
| 19120 @DocsEditable() | 19075 @DocsEditable() |
| 19121 void _createAnswer(_RtcSessionDescriptionCallback successCallback, [_RtcErrorC
allback failureCallback, Map mediaConstraints]) { | 19076 void _createAnswer(_RtcSessionDescriptionCallback successCallback, [_RtcErrorC
allback failureCallback, Map mediaConstraints]) { |
| 19122 if (mediaConstraints != null) { | 19077 if (mediaConstraints != null) { |
| 19123 var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints); | 19078 var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints); |
| 19124 _createAnswer_1(successCallback, failureCallback, mediaConstraints_1); | 19079 __createAnswer_1(successCallback, failureCallback, mediaConstraints_1); |
| 19125 return; | 19080 return; |
| 19126 } | 19081 } |
| 19127 _createAnswer_2(successCallback, failureCallback); | 19082 __createAnswer_2(successCallback, failureCallback); |
| 19128 return; | 19083 return; |
| 19129 } | 19084 } |
| 19130 @JSName('createAnswer') | 19085 @JSName('createAnswer') |
| 19131 @DomName('RTCPeerConnection.createAnswer') | 19086 @DomName('RTCPeerConnection.createAnswer') |
| 19132 @DocsEditable() | 19087 @DocsEditable() |
| 19133 void _createAnswer_1(_RtcSessionDescriptionCallback successCallback, _RtcError
Callback failureCallback, mediaConstraints) native; | 19088 void __createAnswer_1(_RtcSessionDescriptionCallback successCallback, _RtcErro
rCallback failureCallback, mediaConstraints) native; |
| 19134 @JSName('createAnswer') | 19089 @JSName('createAnswer') |
| 19135 @DomName('RTCPeerConnection.createAnswer') | 19090 @DomName('RTCPeerConnection.createAnswer') |
| 19136 @DocsEditable() | 19091 @DocsEditable() |
| 19137 void _createAnswer_2(_RtcSessionDescriptionCallback successCallback, _RtcError
Callback failureCallback) native; | 19092 void __createAnswer_2(_RtcSessionDescriptionCallback successCallback, _RtcErro
rCallback failureCallback) native; |
| 19138 | 19093 |
| 19139 @JSName('createDTMFSender') | 19094 @JSName('createDTMFSender') |
| 19140 @DomName('RTCPeerConnection.createDTMFSender') | 19095 @DomName('RTCPeerConnection.createDTMFSender') |
| 19141 @DocsEditable() | 19096 @DocsEditable() |
| 19142 RtcDtmfSender createDtmfSender(MediaStreamTrack track) native; | 19097 RtcDtmfSender createDtmfSender(MediaStreamTrack track) native; |
| 19143 | 19098 |
| 19144 @DomName('RTCPeerConnection.createDataChannel') | 19099 @DomName('RTCPeerConnection.createDataChannel') |
| 19145 @DocsEditable() | 19100 @DocsEditable() |
| 19146 RtcDataChannel createDataChannel(String label, [Map options]) { | 19101 RtcDataChannel createDataChannel(String label, [Map options]) { |
| 19147 if (options != null) { | 19102 if (options != null) { |
| 19148 var options_1 = convertDartToNative_Dictionary(options); | 19103 var options_1 = convertDartToNative_Dictionary(options); |
| 19149 return _createDataChannel_1(label, options_1); | 19104 return _createDataChannel_1(label, options_1); |
| 19150 } | 19105 } |
| 19151 return _createDataChannel_2(label); | 19106 return _createDataChannel_2(label); |
| 19152 } | 19107 } |
| 19153 @JSName('createDataChannel') | 19108 @JSName('createDataChannel') |
| 19154 @DomName('RTCPeerConnection.createDataChannel') | 19109 @DomName('RTCPeerConnection.createDataChannel') |
| 19155 @DocsEditable() | 19110 @DocsEditable() |
| 19156 RtcDataChannel _createDataChannel_1(label, options) native; | 19111 RtcDataChannel _createDataChannel_1(label, options) native; |
| 19157 @JSName('createDataChannel') | 19112 @JSName('createDataChannel') |
| 19158 @DomName('RTCPeerConnection.createDataChannel') | 19113 @DomName('RTCPeerConnection.createDataChannel') |
| 19159 @DocsEditable() | 19114 @DocsEditable() |
| 19160 RtcDataChannel _createDataChannel_2(label) native; | 19115 RtcDataChannel _createDataChannel_2(label) native; |
| 19161 | 19116 |
| 19162 @DomName('RTCPeerConnection.createOffer') | 19117 @DomName('RTCPeerConnection.createOffer') |
| 19163 @DocsEditable() | 19118 @DocsEditable() |
| 19164 void _createOffer(_RtcSessionDescriptionCallback successCallback, [_RtcErrorCa
llback failureCallback, Map mediaConstraints]) { | 19119 void _createOffer(_RtcSessionDescriptionCallback successCallback, [_RtcErrorCa
llback failureCallback, Map mediaConstraints]) { |
| 19165 if (mediaConstraints != null) { | 19120 if (mediaConstraints != null) { |
| 19166 var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints); | 19121 var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints); |
| 19167 _createOffer_1(successCallback, failureCallback, mediaConstraints_1); | 19122 __createOffer_1(successCallback, failureCallback, mediaConstraints_1); |
| 19168 return; | 19123 return; |
| 19169 } | 19124 } |
| 19170 _createOffer_2(successCallback, failureCallback); | 19125 __createOffer_2(successCallback, failureCallback); |
| 19171 return; | 19126 return; |
| 19172 } | 19127 } |
| 19173 @JSName('createOffer') | 19128 @JSName('createOffer') |
| 19174 @DomName('RTCPeerConnection.createOffer') | 19129 @DomName('RTCPeerConnection.createOffer') |
| 19175 @DocsEditable() | 19130 @DocsEditable() |
| 19176 void _createOffer_1(_RtcSessionDescriptionCallback successCallback, _RtcErrorC
allback failureCallback, mediaConstraints) native; | 19131 void __createOffer_1(_RtcSessionDescriptionCallback successCallback, _RtcError
Callback failureCallback, mediaConstraints) native; |
| 19177 @JSName('createOffer') | 19132 @JSName('createOffer') |
| 19178 @DomName('RTCPeerConnection.createOffer') | 19133 @DomName('RTCPeerConnection.createOffer') |
| 19179 @DocsEditable() | 19134 @DocsEditable() |
| 19180 void _createOffer_2(_RtcSessionDescriptionCallback successCallback, _RtcErrorC
allback failureCallback) native; | 19135 void __createOffer_2(_RtcSessionDescriptionCallback successCallback, _RtcError
Callback failureCallback) native; |
| 19181 | 19136 |
| 19182 @DomName('RTCPeerConnection.dispatchEvent') | 19137 @DomName('RTCPeerConnection.dispatchEvent') |
| 19183 @DocsEditable() | 19138 @DocsEditable() |
| 19184 bool dispatchEvent(Event event) native; | 19139 bool dispatchEvent(Event event) native; |
| 19185 | 19140 |
| 19186 @DomName('RTCPeerConnection.getLocalStreams') | 19141 @DomName('RTCPeerConnection.getLocalStreams') |
| 19187 @DocsEditable() | 19142 @DocsEditable() |
| 19188 List<MediaStream> getLocalStreams() native; | 19143 List<MediaStream> getLocalStreams() native; |
| 19189 | 19144 |
| 19190 @DomName('RTCPeerConnection.getRemoteStreams') | 19145 @DomName('RTCPeerConnection.getRemoteStreams') |
| (...skipping 2650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21841 void select() native; | 21796 void select() native; |
| 21842 | 21797 |
| 21843 @DomName('HTMLTextAreaElement.setCustomValidity') | 21798 @DomName('HTMLTextAreaElement.setCustomValidity') |
| 21844 @DocsEditable() | 21799 @DocsEditable() |
| 21845 void setCustomValidity(String error) native; | 21800 void setCustomValidity(String error) native; |
| 21846 | 21801 |
| 21847 @DomName('HTMLTextAreaElement.setRangeText') | 21802 @DomName('HTMLTextAreaElement.setRangeText') |
| 21848 @DocsEditable() | 21803 @DocsEditable() |
| 21849 // http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-
controls-and-forms.html#dom-textarea/input-setrangetext | 21804 // http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-
controls-and-forms.html#dom-textarea/input-setrangetext |
| 21850 @Experimental() | 21805 @Experimental() |
| 21851 void setRangeText(String replacement, {int start, int end, String selectionMod
e}) native; | 21806 void setRangeText(String replacement, [int start, int end, String selectionMod
e]) native; |
| 21852 | 21807 |
| 21853 @DomName('HTMLTextAreaElement.setSelectionRange') | 21808 @DomName('HTMLTextAreaElement.setSelectionRange') |
| 21854 @DocsEditable() | 21809 @DocsEditable() |
| 21855 void setSelectionRange(int start, int end, [String direction]) native; | 21810 void setSelectionRange(int start, int end, [String direction]) native; |
| 21856 } | 21811 } |
| 21857 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 21812 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 21858 // for details. All rights reserved. Use of this source code is governed by a | 21813 // for details. All rights reserved. Use of this source code is governed by a |
| 21859 // BSD-style license that can be found in the LICENSE file. | 21814 // BSD-style license that can be found in the LICENSE file. |
| 21860 | 21815 |
| 21861 // WARNING: Do not edit - generated code. | 21816 // WARNING: Do not edit - generated code. |
| (...skipping 969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 22831 // for details. All rights reserved. Use of this source code is governed by a | 22786 // for details. All rights reserved. Use of this source code is governed by a |
| 22832 // BSD-style license that can be found in the LICENSE file. | 22787 // BSD-style license that can be found in the LICENSE file. |
| 22833 | 22788 |
| 22834 | 22789 |
| 22835 @DomName('URL') | 22790 @DomName('URL') |
| 22836 class Url extends Interceptor native "URL" { | 22791 class Url extends Interceptor native "URL" { |
| 22837 | 22792 |
| 22838 static String createObjectUrl(blob_OR_source_OR_stream) => | 22793 static String createObjectUrl(blob_OR_source_OR_stream) => |
| 22839 JS('String', | 22794 JS('String', |
| 22840 '(self.URL || self.webkitURL).createObjectURL(#)', | 22795 '(self.URL || self.webkitURL).createObjectURL(#)', |
| 22841 blob_OR_source_OR_stream); | 22796 blob_OR_source_OR_stream); |
| 22842 | |
| 22843 static String createObjectUrlFromSource(MediaSource source) => | |
| 22844 JS('String', '(self.URL || self.webkitURL).createObjectURL(#)', source); | |
| 22845 | |
| 22846 static String createObjectUrlFromStream(MediaStream stream) => | |
| 22847 JS('String', '(self.URL || self.webkitURL).createObjectURL(#)', stream); | |
| 22848 | |
| 22849 static String createObjectUrlFromBlob(Blob blob) => | |
| 22850 JS('String', '(self.URL || self.webkitURL).createObjectURL(#)', blob); | |
| 22851 | 22797 |
| 22852 static void revokeObjectUrl(String url) => | 22798 static void revokeObjectUrl(String url) => |
| 22853 JS('void', | 22799 JS('void', |
| 22854 '(self.URL || self.webkitURL).revokeObjectURL(#)', url); | 22800 '(self.URL || self.webkitURL).revokeObjectURL(#)', url); |
| 22855 | 22801 |
| 22856 } | 22802 } |
| 22857 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22803 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 22858 // for details. All rights reserved. Use of this source code is governed by a | 22804 // for details. All rights reserved. Use of this source code is governed by a |
| 22859 // BSD-style license that can be found in the LICENSE file. | 22805 // BSD-style license that can be found in the LICENSE file. |
| 22860 | 22806 |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 23171 | 23117 |
| 23172 @JSName('removeEventListener') | 23118 @JSName('removeEventListener') |
| 23173 @DomName('WebSocket.removeEventListener') | 23119 @DomName('WebSocket.removeEventListener') |
| 23174 @DocsEditable() | 23120 @DocsEditable() |
| 23175 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 23121 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
| 23176 | 23122 |
| 23177 @DomName('WebSocket.send') | 23123 @DomName('WebSocket.send') |
| 23178 @DocsEditable() | 23124 @DocsEditable() |
| 23179 void send(data) native; | 23125 void send(data) native; |
| 23180 | 23126 |
| 23181 @JSName('send') | |
| 23182 @DomName('WebSocket.send') | |
| 23183 @DocsEditable() | |
| 23184 void sendBlob(Blob data) native; | |
| 23185 | |
| 23186 @JSName('send') | |
| 23187 @DomName('WebSocket.send') | |
| 23188 @DocsEditable() | |
| 23189 void sendByteBuffer(ByteBuffer data) native; | |
| 23190 | |
| 23191 @JSName('send') | |
| 23192 @DomName('WebSocket.send') | |
| 23193 @DocsEditable() | |
| 23194 void sendString(String data) native; | |
| 23195 | |
| 23196 @JSName('send') | |
| 23197 @DomName('WebSocket.send') | |
| 23198 @DocsEditable() | |
| 23199 void sendTypeData(TypedData data) native; | |
| 23200 | |
| 23201 @DomName('WebSocket.onclose') | 23127 @DomName('WebSocket.onclose') |
| 23202 @DocsEditable() | 23128 @DocsEditable() |
| 23203 Stream<CloseEvent> get onClose => closeEvent.forTarget(this); | 23129 Stream<CloseEvent> get onClose => closeEvent.forTarget(this); |
| 23204 | 23130 |
| 23205 @DomName('WebSocket.onerror') | 23131 @DomName('WebSocket.onerror') |
| 23206 @DocsEditable() | 23132 @DocsEditable() |
| 23207 Stream<Event> get onError => errorEvent.forTarget(this); | 23133 Stream<Event> get onError => errorEvent.forTarget(this); |
| 23208 | 23134 |
| 23209 @DomName('WebSocket.onmessage') | 23135 @DomName('WebSocket.onmessage') |
| 23210 @DocsEditable() | 23136 @DocsEditable() |
| (...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 24026 @Creates('Window|=Object') | 23952 @Creates('Window|=Object') |
| 24027 @Returns('Window|=Object') | 23953 @Returns('Window|=Object') |
| 24028 final dynamic _get_window; | 23954 final dynamic _get_window; |
| 24029 | 23955 |
| 24030 @DomName('Window.__getter__') | 23956 @DomName('Window.__getter__') |
| 24031 @DocsEditable() | 23957 @DocsEditable() |
| 24032 @Creates('Window|=Object') | 23958 @Creates('Window|=Object') |
| 24033 @Returns('Window|=Object') | 23959 @Returns('Window|=Object') |
| 24034 WindowBase __getter__(index_OR_name) { | 23960 WindowBase __getter__(index_OR_name) { |
| 24035 if ((index_OR_name is int || index_OR_name == null)) { | 23961 if ((index_OR_name is int || index_OR_name == null)) { |
| 24036 return _convertNativeToDart_Window(__getter___1(index_OR_name)); | 23962 return _convertNativeToDart_Window(___getter___1(index_OR_name)); |
| 24037 } | 23963 } |
| 24038 if ((index_OR_name is String || index_OR_name == null)) { | 23964 if ((index_OR_name is String || index_OR_name == null)) { |
| 24039 return _convertNativeToDart_Window(__getter___2(index_OR_name)); | 23965 return _convertNativeToDart_Window(___getter___2(index_OR_name)); |
| 24040 } | 23966 } |
| 24041 throw new ArgumentError("Incorrect number or type of arguments"); | 23967 throw new ArgumentError("Incorrect number or type of arguments"); |
| 24042 } | 23968 } |
| 24043 @JSName('__getter__') | 23969 @JSName('__getter__') |
| 24044 @DomName('Window.__getter__') | 23970 @DomName('Window.__getter__') |
| 24045 @DocsEditable() | 23971 @DocsEditable() |
| 24046 @Creates('Window|=Object') | 23972 @Creates('Window|=Object') |
| 24047 @Returns('Window|=Object') | 23973 @Returns('Window|=Object') |
| 24048 __getter___1(int index) native; | 23974 ___getter___1(int index) native; |
| 24049 @JSName('__getter__') | 23975 @JSName('__getter__') |
| 24050 @DomName('Window.__getter__') | 23976 @DomName('Window.__getter__') |
| 24051 @DocsEditable() | 23977 @DocsEditable() |
| 24052 @Creates('Window|=Object') | 23978 @Creates('Window|=Object') |
| 24053 @Returns('Window|=Object') | 23979 @Returns('Window|=Object') |
| 24054 __getter___2(String name) native; | 23980 ___getter___2(String name) native; |
| 24055 | 23981 |
| 24056 @JSName('addEventListener') | 23982 @JSName('addEventListener') |
| 24057 @DomName('Window.addEventListener') | 23983 @DomName('Window.addEventListener') |
| 24058 @DocsEditable() | 23984 @DocsEditable() |
| 24059 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 23985 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
| 24060 | 23986 |
| 24061 @DomName('Window.alert') | 23987 @DomName('Window.alert') |
| 24062 @DocsEditable() | 23988 @DocsEditable() |
| 24063 void alert(String message) native; | 23989 void alert(String message) native; |
| 24064 | 23990 |
| (...skipping 5341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 29406 _position = nextPosition; | 29332 _position = nextPosition; |
| 29407 return true; | 29333 return true; |
| 29408 } | 29334 } |
| 29409 _current = null; | 29335 _current = null; |
| 29410 _position = _array.length; | 29336 _position = _array.length; |
| 29411 return false; | 29337 return false; |
| 29412 } | 29338 } |
| 29413 | 29339 |
| 29414 T get current => _current; | 29340 T get current => _current; |
| 29415 } | 29341 } |
| OLD | NEW |