| 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(canvas_OR_image, String repetitionType) native; | 1210   CanvasPattern createPattern(CanvasElement canvas, String repetitionType) nativ
       e; | 
|  | 1211 | 
|  | 1212   @JSName('createPattern') | 
|  | 1213   @DomName('CanvasRenderingContext2D.createPattern') | 
|  | 1214   @DocsEditable() | 
|  | 1215   CanvasPattern createPatternFromImage(ImageElement image, String repetitionType
       ) native; | 
| 1211 | 1216 | 
| 1212   @DomName('CanvasRenderingContext2D.createRadialGradient') | 1217   @DomName('CanvasRenderingContext2D.createRadialGradient') | 
| 1213   @DocsEditable() | 1218   @DocsEditable() | 
| 1214   CanvasGradient createRadialGradient(num x0, num y0, num r0, num x1, num y1, nu
       m r1) native; | 1219   CanvasGradient createRadialGradient(num x0, num y0, num r0, num x1, num y1, nu
       m r1) native; | 
| 1215 | 1220 | 
| 1216   @DomName('CanvasRenderingContext2D.fill') | 1221   @DomName('CanvasRenderingContext2D.fill') | 
| 1217   @DocsEditable() | 1222   @DocsEditable() | 
| 1218   void fill([String winding]) native; | 1223   void fill([String winding]) native; | 
| 1219 | 1224 | 
| 1220   @DomName('CanvasRenderingContext2D.fillRect') | 1225   @DomName('CanvasRenderingContext2D.fillRect') | 
| (...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1954 | 1959 | 
| 1955 | 1960 | 
| 1956 @DocsEditable() | 1961 @DocsEditable() | 
| 1957 @DomName('CSS') | 1962 @DomName('CSS') | 
| 1958 // http://www.w3.org/TR/css3-conditional/#the-css-interface | 1963 // http://www.w3.org/TR/css3-conditional/#the-css-interface | 
| 1959 @Experimental() // None | 1964 @Experimental() // None | 
| 1960 class Css extends Interceptor native "CSS" { | 1965 class Css extends Interceptor native "CSS" { | 
| 1961 | 1966 | 
| 1962   @DomName('CSS.supports') | 1967   @DomName('CSS.supports') | 
| 1963   @DocsEditable() | 1968   @DocsEditable() | 
| 1964   bool supports(String conditionText_OR_property, [String value]) native; | 1969   bool supports(String property, String value) native; | 
|  | 1970 | 
|  | 1971   @JSName('supports') | 
|  | 1972   @DomName('CSS.supports') | 
|  | 1973   @DocsEditable() | 
|  | 1974   bool supportsCondition(String conditionText) native; | 
| 1965 } | 1975 } | 
| 1966 // Copyright (c) 2012, the Dart project authors.  Please see the AUTHORS file | 1976 // Copyright (c) 2012, the Dart project authors.  Please see the AUTHORS file | 
| 1967 // for details. All rights reserved. Use of this source code is governed by a | 1977 // for details. All rights reserved. Use of this source code is governed by a | 
| 1968 // BSD-style license that can be found in the LICENSE file. | 1978 // BSD-style license that can be found in the LICENSE file. | 
| 1969 | 1979 | 
| 1970 | 1980 | 
| 1971 @DocsEditable() | 1981 @DocsEditable() | 
| 1972 @DomName('CSSCharsetRule') | 1982 @DomName('CSSCharsetRule') | 
| 1973 // http://dev.w3.org/csswg/cssom/#the-csscharsetrule-interface | 1983 // http://dev.w3.org/csswg/cssom/#the-csscharsetrule-interface | 
| 1974 @Experimental() | 1984 @Experimental() | 
| (...skipping 4241 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 6216 class DataTransferItemList extends Interceptor native "DataTransferItemList" { | 6226 class DataTransferItemList extends Interceptor native "DataTransferItemList" { | 
| 6217 | 6227 | 
| 6218   @DomName('DataTransferItemList.length') | 6228   @DomName('DataTransferItemList.length') | 
| 6219   @DocsEditable() | 6229   @DocsEditable() | 
| 6220   final int length; | 6230   final int length; | 
| 6221 | 6231 | 
| 6222   @DomName('DataTransferItemList.add') | 6232   @DomName('DataTransferItemList.add') | 
| 6223   @DocsEditable() | 6233   @DocsEditable() | 
| 6224   void add(data_OR_file, [String type]) native; | 6234   void add(data_OR_file, [String type]) native; | 
| 6225 | 6235 | 
|  | 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 | 
| 6226   @DomName('DataTransferItemList.clear') | 6246   @DomName('DataTransferItemList.clear') | 
| 6227   @DocsEditable() | 6247   @DocsEditable() | 
| 6228   void clear() native; | 6248   void clear() native; | 
| 6229 | 6249 | 
| 6230   @DomName('DataTransferItemList.item') | 6250   @DomName('DataTransferItemList.item') | 
| 6231   @DocsEditable() | 6251   @DocsEditable() | 
| 6232   DataTransferItem item(int index) native; | 6252   DataTransferItem item(int index) native; | 
| 6233 } | 6253 } | 
| 6234 // Copyright (c) 2012, the Dart project authors.  Please see the AUTHORS file | 6254 // Copyright (c) 2012, the Dart project authors.  Please see the AUTHORS file | 
| 6235 // for details. All rights reserved. Use of this source code is governed by a | 6255 // 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... | 
| 6464 | 6484 | 
| 6465   @DomName('DirectoryEntry.createReader') | 6485   @DomName('DirectoryEntry.createReader') | 
| 6466   @DocsEditable() | 6486   @DocsEditable() | 
| 6467   DirectoryReader createReader() native; | 6487   DirectoryReader createReader() native; | 
| 6468 | 6488 | 
| 6469   @DomName('DirectoryEntry.getDirectory') | 6489   @DomName('DirectoryEntry.getDirectory') | 
| 6470   @DocsEditable() | 6490   @DocsEditable() | 
| 6471   void __getDirectory(String path, {Map options, _EntryCallback successCallback,
        _ErrorCallback errorCallback}) { | 6491   void __getDirectory(String path, {Map options, _EntryCallback successCallback,
        _ErrorCallback errorCallback}) { | 
| 6472     if (errorCallback != null) { | 6492     if (errorCallback != null) { | 
| 6473       var options_1 = convertDartToNative_Dictionary(options); | 6493       var options_1 = convertDartToNative_Dictionary(options); | 
| 6474       ___getDirectory_1(path, options_1, successCallback, errorCallback); | 6494       __getDirectory_1(path, options_1, successCallback, errorCallback); | 
| 6475       return; | 6495       return; | 
| 6476     } | 6496     } | 
| 6477     if (successCallback != null) { | 6497     if (successCallback != null) { | 
| 6478       var options_2 = convertDartToNative_Dictionary(options); | 6498       var options_2 = convertDartToNative_Dictionary(options); | 
| 6479       ___getDirectory_2(path, options_2, successCallback); | 6499       __getDirectory_2(path, options_2, successCallback); | 
| 6480       return; | 6500       return; | 
| 6481     } | 6501     } | 
| 6482     if (options != null) { | 6502     if (options != null) { | 
| 6483       var options_3 = convertDartToNative_Dictionary(options); | 6503       var options_3 = convertDartToNative_Dictionary(options); | 
| 6484       ___getDirectory_3(path, options_3); | 6504       __getDirectory_3(path, options_3); | 
| 6485       return; | 6505       return; | 
| 6486     } | 6506     } | 
| 6487     ___getDirectory_4(path); | 6507     __getDirectory_4(path); | 
| 6488     return; | 6508     return; | 
| 6489   } | 6509   } | 
| 6490   @JSName('getDirectory') | 6510   @JSName('getDirectory') | 
| 6491   @DomName('DirectoryEntry.getDirectory') | 6511   @DomName('DirectoryEntry.getDirectory') | 
| 6492   @DocsEditable() | 6512   @DocsEditable() | 
| 6493   void ___getDirectory_1(path, options, _EntryCallback successCallback, _ErrorCa
       llback errorCallback) native; | 6513   void __getDirectory_1(path, options, _EntryCallback successCallback, _ErrorCal
       lback errorCallback) native; | 
| 6494   @JSName('getDirectory') | 6514   @JSName('getDirectory') | 
| 6495   @DomName('DirectoryEntry.getDirectory') | 6515   @DomName('DirectoryEntry.getDirectory') | 
| 6496   @DocsEditable() | 6516   @DocsEditable() | 
| 6497   void ___getDirectory_2(path, options, _EntryCallback successCallback) native; | 6517   void __getDirectory_2(path, options, _EntryCallback successCallback) native; | 
| 6498   @JSName('getDirectory') | 6518   @JSName('getDirectory') | 
| 6499   @DomName('DirectoryEntry.getDirectory') | 6519   @DomName('DirectoryEntry.getDirectory') | 
| 6500   @DocsEditable() | 6520   @DocsEditable() | 
| 6501   void ___getDirectory_3(path, options) native; | 6521   void __getDirectory_3(path, options) native; | 
| 6502   @JSName('getDirectory') | 6522   @JSName('getDirectory') | 
| 6503   @DomName('DirectoryEntry.getDirectory') | 6523   @DomName('DirectoryEntry.getDirectory') | 
| 6504   @DocsEditable() | 6524   @DocsEditable() | 
| 6505   void ___getDirectory_4(path) native; | 6525   void __getDirectory_4(path) native; | 
| 6506 | 6526 | 
| 6507   @JSName('getDirectory') | 6527   @JSName('getDirectory') | 
| 6508   @DomName('DirectoryEntry.getDirectory') | 6528   @DomName('DirectoryEntry.getDirectory') | 
| 6509   @DocsEditable() | 6529   @DocsEditable() | 
| 6510   Future<Entry> _getDirectory(String path, {Map options}) { | 6530   Future<Entry> _getDirectory(String path, {Map options}) { | 
| 6511     var completer = new Completer<Entry>(); | 6531     var completer = new Completer<Entry>(); | 
| 6512     __getDirectory(path, options : options, | 6532     __getDirectory(path, options : options, | 
| 6513         successCallback : (value) { completer.complete(value); }, | 6533         successCallback : (value) { completer.complete(value); }, | 
| 6514         errorCallback : (error) { completer.completeError(error); }); | 6534         errorCallback : (error) { completer.completeError(error); }); | 
| 6515     return completer.future; | 6535     return completer.future; | 
| 6516   } | 6536   } | 
| 6517 | 6537 | 
| 6518   @DomName('DirectoryEntry.getFile') | 6538   @DomName('DirectoryEntry.getFile') | 
| 6519   @DocsEditable() | 6539   @DocsEditable() | 
| 6520   void __getFile(String path, {Map options, _EntryCallback successCallback, _Err
       orCallback errorCallback}) { | 6540   void __getFile(String path, {Map options, _EntryCallback successCallback, _Err
       orCallback errorCallback}) { | 
| 6521     if (errorCallback != null) { | 6541     if (errorCallback != null) { | 
| 6522       var options_1 = convertDartToNative_Dictionary(options); | 6542       var options_1 = convertDartToNative_Dictionary(options); | 
| 6523       ___getFile_1(path, options_1, successCallback, errorCallback); | 6543       __getFile_1(path, options_1, successCallback, errorCallback); | 
| 6524       return; | 6544       return; | 
| 6525     } | 6545     } | 
| 6526     if (successCallback != null) { | 6546     if (successCallback != null) { | 
| 6527       var options_2 = convertDartToNative_Dictionary(options); | 6547       var options_2 = convertDartToNative_Dictionary(options); | 
| 6528       ___getFile_2(path, options_2, successCallback); | 6548       __getFile_2(path, options_2, successCallback); | 
| 6529       return; | 6549       return; | 
| 6530     } | 6550     } | 
| 6531     if (options != null) { | 6551     if (options != null) { | 
| 6532       var options_3 = convertDartToNative_Dictionary(options); | 6552       var options_3 = convertDartToNative_Dictionary(options); | 
| 6533       ___getFile_3(path, options_3); | 6553       __getFile_3(path, options_3); | 
| 6534       return; | 6554       return; | 
| 6535     } | 6555     } | 
| 6536     ___getFile_4(path); | 6556     __getFile_4(path); | 
| 6537     return; | 6557     return; | 
| 6538   } | 6558   } | 
| 6539   @JSName('getFile') | 6559   @JSName('getFile') | 
| 6540   @DomName('DirectoryEntry.getFile') | 6560   @DomName('DirectoryEntry.getFile') | 
| 6541   @DocsEditable() | 6561   @DocsEditable() | 
| 6542   void ___getFile_1(path, options, _EntryCallback successCallback, _ErrorCallbac
       k errorCallback) native; | 6562   void __getFile_1(path, options, _EntryCallback successCallback, _ErrorCallback
        errorCallback) native; | 
| 6543   @JSName('getFile') | 6563   @JSName('getFile') | 
| 6544   @DomName('DirectoryEntry.getFile') | 6564   @DomName('DirectoryEntry.getFile') | 
| 6545   @DocsEditable() | 6565   @DocsEditable() | 
| 6546   void ___getFile_2(path, options, _EntryCallback successCallback) native; | 6566   void __getFile_2(path, options, _EntryCallback successCallback) native; | 
| 6547   @JSName('getFile') | 6567   @JSName('getFile') | 
| 6548   @DomName('DirectoryEntry.getFile') | 6568   @DomName('DirectoryEntry.getFile') | 
| 6549   @DocsEditable() | 6569   @DocsEditable() | 
| 6550   void ___getFile_3(path, options) native; | 6570   void __getFile_3(path, options) native; | 
| 6551   @JSName('getFile') | 6571   @JSName('getFile') | 
| 6552   @DomName('DirectoryEntry.getFile') | 6572   @DomName('DirectoryEntry.getFile') | 
| 6553   @DocsEditable() | 6573   @DocsEditable() | 
| 6554   void ___getFile_4(path) native; | 6574   void __getFile_4(path) native; | 
| 6555 | 6575 | 
| 6556   @JSName('getFile') | 6576   @JSName('getFile') | 
| 6557   @DomName('DirectoryEntry.getFile') | 6577   @DomName('DirectoryEntry.getFile') | 
| 6558   @DocsEditable() | 6578   @DocsEditable() | 
| 6559   Future<Entry> _getFile(String path, {Map options}) { | 6579   Future<Entry> _getFile(String path, {Map options}) { | 
| 6560     var completer = new Completer<Entry>(); | 6580     var completer = new Completer<Entry>(); | 
| 6561     __getFile(path, options : options, | 6581     __getFile(path, options : options, | 
| 6562         successCallback : (value) { completer.complete(value); }, | 6582         successCallback : (value) { completer.complete(value); }, | 
| 6563         errorCallback : (error) { completer.completeError(error); }); | 6583         errorCallback : (error) { completer.completeError(error); }); | 
| 6564     return completer.future; | 6584     return completer.future; | 
| (...skipping 9478 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 16043 class MutationObserver extends Interceptor native "MutationObserver,WebKitMutati
       onObserver" { | 16063 class MutationObserver extends Interceptor native "MutationObserver,WebKitMutati
       onObserver" { | 
| 16044 | 16064 | 
| 16045   @DomName('MutationObserver.disconnect') | 16065   @DomName('MutationObserver.disconnect') | 
| 16046   @DocsEditable() | 16066   @DocsEditable() | 
| 16047   void disconnect() native; | 16067   void disconnect() native; | 
| 16048 | 16068 | 
| 16049   @DomName('MutationObserver.observe') | 16069   @DomName('MutationObserver.observe') | 
| 16050   @DocsEditable() | 16070   @DocsEditable() | 
| 16051   void _observe(Node target, Map options) { | 16071   void _observe(Node target, Map options) { | 
| 16052     var options_1 = convertDartToNative_Dictionary(options); | 16072     var options_1 = convertDartToNative_Dictionary(options); | 
| 16053     __observe_1(target, options_1); | 16073     _observe_1(target, options_1); | 
| 16054     return; | 16074     return; | 
| 16055   } | 16075   } | 
| 16056   @JSName('observe') | 16076   @JSName('observe') | 
| 16057   @DomName('MutationObserver.observe') | 16077   @DomName('MutationObserver.observe') | 
| 16058   @DocsEditable() | 16078   @DocsEditable() | 
| 16059   void __observe_1(Node target, options) native; | 16079   void _observe_1(Node target, options) native; | 
| 16060 | 16080 | 
| 16061   @DomName('MutationObserver.takeRecords') | 16081   @DomName('MutationObserver.takeRecords') | 
| 16062   @DocsEditable() | 16082   @DocsEditable() | 
| 16063   List<MutationRecord> takeRecords() native; | 16083   List<MutationRecord> takeRecords() native; | 
| 16064 | 16084 | 
| 16065   /** | 16085   /** | 
| 16066    * Checks to see if the mutation observer API is supported on the current | 16086    * Checks to see if the mutation observer API is supported on the current | 
| 16067    * platform. | 16087    * platform. | 
| 16068    */ | 16088    */ | 
| 16069   static bool get supported { | 16089   static bool get supported { | 
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 16283    * | 16303    * | 
| 16284    * Use [MediaStream.supported] to check if this is supported by the current | 16304    * Use [MediaStream.supported] to check if this is supported by the current | 
| 16285    * platform. The arguments `audio` and `video` default to `false` (stream does | 16305    * platform. The arguments `audio` and `video` default to `false` (stream does | 
| 16286    * not use audio or video, respectively). | 16306    * not use audio or video, respectively). | 
| 16287    * | 16307    * | 
| 16288    * Simple example usage: | 16308    * Simple example usage: | 
| 16289    * | 16309    * | 
| 16290    *     window.navigator.getUserMedia(audio: true, video: true).then((stream) { | 16310    *     window.navigator.getUserMedia(audio: true, video: true).then((stream) { | 
| 16291    *       var video = new VideoElement() | 16311    *       var video = new VideoElement() | 
| 16292    *         ..autoplay = true | 16312    *         ..autoplay = true | 
| 16293    *         ..src = Url.createObjectUrl(stream); | 16313    *         ..src = Url.createObjectUrlFromStream(stream); | 
| 16294    *       document.body.append(video); | 16314    *       document.body.append(video); | 
| 16295    *     }); | 16315    *     }); | 
| 16296    * | 16316    * | 
| 16297    * The user can also pass in Maps to the audio or video parameters to specify | 16317    * The user can also pass in Maps to the audio or video parameters to specify | 
| 16298    * mandatory and optional constraints for the media stream. Not passing in a | 16318    * mandatory and optional constraints for the media stream. Not passing in a | 
| 16299    * map, but passing in `true` will provide a MediaStream with audio or | 16319    * map, but passing in `true` will provide a MediaStream with audio or | 
| 16300    * video capabilities, but without any additional constraints. The particular | 16320    * video capabilities, but without any additional constraints. The particular | 
| 16301    * constraint names for audio and video are still in flux, but as of this | 16321    * constraint names for audio and video are still in flux, but as of this | 
| 16302    * writing, here is an example providing more constraints. | 16322    * writing, here is an example providing more constraints. | 
| 16303    * | 16323    * | 
| (...skipping 2460 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 18764 | 18784 | 
| 18765   @JSName('removeEventListener') | 18785   @JSName('removeEventListener') | 
| 18766   @DomName('RTCDataChannel.removeEventListener') | 18786   @DomName('RTCDataChannel.removeEventListener') | 
| 18767   @DocsEditable() | 18787   @DocsEditable() | 
| 18768   void $dom_removeEventListener(String type, EventListener listener, [bool useCa
       pture]) native; | 18788   void $dom_removeEventListener(String type, EventListener listener, [bool useCa
       pture]) native; | 
| 18769 | 18789 | 
| 18770   @DomName('RTCDataChannel.send') | 18790   @DomName('RTCDataChannel.send') | 
| 18771   @DocsEditable() | 18791   @DocsEditable() | 
| 18772   void send(data) native; | 18792   void send(data) native; | 
| 18773 | 18793 | 
|  | 18794   @JSName('send') | 
|  | 18795   @DomName('RTCDataChannel.send') | 
|  | 18796   @DocsEditable() | 
|  | 18797   void sendBlob(Blob data) native; | 
|  | 18798 | 
|  | 18799   @JSName('send') | 
|  | 18800   @DomName('RTCDataChannel.send') | 
|  | 18801   @DocsEditable() | 
|  | 18802   void sendByteBuffer(ByteBuffer data) native; | 
|  | 18803 | 
|  | 18804   @JSName('send') | 
|  | 18805   @DomName('RTCDataChannel.send') | 
|  | 18806   @DocsEditable() | 
|  | 18807   void sendString(String data) native; | 
|  | 18808 | 
|  | 18809   @JSName('send') | 
|  | 18810   @DomName('RTCDataChannel.send') | 
|  | 18811   @DocsEditable() | 
|  | 18812   void sendTypedData(TypedData data) native; | 
|  | 18813 | 
| 18774   @DomName('RTCDataChannel.onclose') | 18814   @DomName('RTCDataChannel.onclose') | 
| 18775   @DocsEditable() | 18815   @DocsEditable() | 
| 18776   Stream<Event> get onClose => closeEvent.forTarget(this); | 18816   Stream<Event> get onClose => closeEvent.forTarget(this); | 
| 18777 | 18817 | 
| 18778   @DomName('RTCDataChannel.onerror') | 18818   @DomName('RTCDataChannel.onerror') | 
| 18779   @DocsEditable() | 18819   @DocsEditable() | 
| 18780   Stream<Event> get onError => errorEvent.forTarget(this); | 18820   Stream<Event> get onError => errorEvent.forTarget(this); | 
| 18781 | 18821 | 
| 18782   @DomName('RTCDataChannel.onmessage') | 18822   @DomName('RTCDataChannel.onmessage') | 
| 18783   @DocsEditable() | 18823   @DocsEditable() | 
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 19069 | 19109 | 
| 19070   @DomName('RTCPeerConnection.close') | 19110   @DomName('RTCPeerConnection.close') | 
| 19071   @DocsEditable() | 19111   @DocsEditable() | 
| 19072   void close() native; | 19112   void close() native; | 
| 19073 | 19113 | 
| 19074   @DomName('RTCPeerConnection.createAnswer') | 19114   @DomName('RTCPeerConnection.createAnswer') | 
| 19075   @DocsEditable() | 19115   @DocsEditable() | 
| 19076   void _createAnswer(_RtcSessionDescriptionCallback successCallback, [_RtcErrorC
       allback failureCallback, Map mediaConstraints]) { | 19116   void _createAnswer(_RtcSessionDescriptionCallback successCallback, [_RtcErrorC
       allback failureCallback, Map mediaConstraints]) { | 
| 19077     if (mediaConstraints != null) { | 19117     if (mediaConstraints != null) { | 
| 19078       var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints); | 19118       var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints); | 
| 19079       __createAnswer_1(successCallback, failureCallback, mediaConstraints_1); | 19119       _createAnswer_1(successCallback, failureCallback, mediaConstraints_1); | 
| 19080       return; | 19120       return; | 
| 19081     } | 19121     } | 
| 19082     __createAnswer_2(successCallback, failureCallback); | 19122     _createAnswer_2(successCallback, failureCallback); | 
| 19083     return; | 19123     return; | 
| 19084   } | 19124   } | 
| 19085   @JSName('createAnswer') | 19125   @JSName('createAnswer') | 
| 19086   @DomName('RTCPeerConnection.createAnswer') | 19126   @DomName('RTCPeerConnection.createAnswer') | 
| 19087   @DocsEditable() | 19127   @DocsEditable() | 
| 19088   void __createAnswer_1(_RtcSessionDescriptionCallback successCallback, _RtcErro
       rCallback failureCallback, mediaConstraints) native; | 19128   void _createAnswer_1(_RtcSessionDescriptionCallback successCallback, _RtcError
       Callback failureCallback, mediaConstraints) native; | 
| 19089   @JSName('createAnswer') | 19129   @JSName('createAnswer') | 
| 19090   @DomName('RTCPeerConnection.createAnswer') | 19130   @DomName('RTCPeerConnection.createAnswer') | 
| 19091   @DocsEditable() | 19131   @DocsEditable() | 
| 19092   void __createAnswer_2(_RtcSessionDescriptionCallback successCallback, _RtcErro
       rCallback failureCallback) native; | 19132   void _createAnswer_2(_RtcSessionDescriptionCallback successCallback, _RtcError
       Callback failureCallback) native; | 
| 19093 | 19133 | 
| 19094   @JSName('createDTMFSender') | 19134   @JSName('createDTMFSender') | 
| 19095   @DomName('RTCPeerConnection.createDTMFSender') | 19135   @DomName('RTCPeerConnection.createDTMFSender') | 
| 19096   @DocsEditable() | 19136   @DocsEditable() | 
| 19097   RtcDtmfSender createDtmfSender(MediaStreamTrack track) native; | 19137   RtcDtmfSender createDtmfSender(MediaStreamTrack track) native; | 
| 19098 | 19138 | 
| 19099   @DomName('RTCPeerConnection.createDataChannel') | 19139   @DomName('RTCPeerConnection.createDataChannel') | 
| 19100   @DocsEditable() | 19140   @DocsEditable() | 
| 19101   RtcDataChannel createDataChannel(String label, [Map options]) { | 19141   RtcDataChannel createDataChannel(String label, [Map options]) { | 
| 19102     if (options != null) { | 19142     if (options != null) { | 
| 19103       var options_1 = convertDartToNative_Dictionary(options); | 19143       var options_1 = convertDartToNative_Dictionary(options); | 
| 19104       return _createDataChannel_1(label, options_1); | 19144       return _createDataChannel_1(label, options_1); | 
| 19105     } | 19145     } | 
| 19106     return _createDataChannel_2(label); | 19146     return _createDataChannel_2(label); | 
| 19107   } | 19147   } | 
| 19108   @JSName('createDataChannel') | 19148   @JSName('createDataChannel') | 
| 19109   @DomName('RTCPeerConnection.createDataChannel') | 19149   @DomName('RTCPeerConnection.createDataChannel') | 
| 19110   @DocsEditable() | 19150   @DocsEditable() | 
| 19111   RtcDataChannel _createDataChannel_1(label, options) native; | 19151   RtcDataChannel _createDataChannel_1(label, options) native; | 
| 19112   @JSName('createDataChannel') | 19152   @JSName('createDataChannel') | 
| 19113   @DomName('RTCPeerConnection.createDataChannel') | 19153   @DomName('RTCPeerConnection.createDataChannel') | 
| 19114   @DocsEditable() | 19154   @DocsEditable() | 
| 19115   RtcDataChannel _createDataChannel_2(label) native; | 19155   RtcDataChannel _createDataChannel_2(label) native; | 
| 19116 | 19156 | 
| 19117   @DomName('RTCPeerConnection.createOffer') | 19157   @DomName('RTCPeerConnection.createOffer') | 
| 19118   @DocsEditable() | 19158   @DocsEditable() | 
| 19119   void _createOffer(_RtcSessionDescriptionCallback successCallback, [_RtcErrorCa
       llback failureCallback, Map mediaConstraints]) { | 19159   void _createOffer(_RtcSessionDescriptionCallback successCallback, [_RtcErrorCa
       llback failureCallback, Map mediaConstraints]) { | 
| 19120     if (mediaConstraints != null) { | 19160     if (mediaConstraints != null) { | 
| 19121       var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints); | 19161       var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints); | 
| 19122       __createOffer_1(successCallback, failureCallback, mediaConstraints_1); | 19162       _createOffer_1(successCallback, failureCallback, mediaConstraints_1); | 
| 19123       return; | 19163       return; | 
| 19124     } | 19164     } | 
| 19125     __createOffer_2(successCallback, failureCallback); | 19165     _createOffer_2(successCallback, failureCallback); | 
| 19126     return; | 19166     return; | 
| 19127   } | 19167   } | 
| 19128   @JSName('createOffer') | 19168   @JSName('createOffer') | 
| 19129   @DomName('RTCPeerConnection.createOffer') | 19169   @DomName('RTCPeerConnection.createOffer') | 
| 19130   @DocsEditable() | 19170   @DocsEditable() | 
| 19131   void __createOffer_1(_RtcSessionDescriptionCallback successCallback, _RtcError
       Callback failureCallback, mediaConstraints) native; | 19171   void _createOffer_1(_RtcSessionDescriptionCallback successCallback, _RtcErrorC
       allback failureCallback, mediaConstraints) native; | 
| 19132   @JSName('createOffer') | 19172   @JSName('createOffer') | 
| 19133   @DomName('RTCPeerConnection.createOffer') | 19173   @DomName('RTCPeerConnection.createOffer') | 
| 19134   @DocsEditable() | 19174   @DocsEditable() | 
| 19135   void __createOffer_2(_RtcSessionDescriptionCallback successCallback, _RtcError
       Callback failureCallback) native; | 19175   void _createOffer_2(_RtcSessionDescriptionCallback successCallback, _RtcErrorC
       allback failureCallback) native; | 
| 19136 | 19176 | 
| 19137   @DomName('RTCPeerConnection.dispatchEvent') | 19177   @DomName('RTCPeerConnection.dispatchEvent') | 
| 19138   @DocsEditable() | 19178   @DocsEditable() | 
| 19139   bool dispatchEvent(Event event) native; | 19179   bool dispatchEvent(Event event) native; | 
| 19140 | 19180 | 
| 19141   @DomName('RTCPeerConnection.getLocalStreams') | 19181   @DomName('RTCPeerConnection.getLocalStreams') | 
| 19142   @DocsEditable() | 19182   @DocsEditable() | 
| 19143   List<MediaStream> getLocalStreams() native; | 19183   List<MediaStream> getLocalStreams() native; | 
| 19144 | 19184 | 
| 19145   @DomName('RTCPeerConnection.getRemoteStreams') | 19185   @DomName('RTCPeerConnection.getRemoteStreams') | 
| (...skipping 2641 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 21787   void select() native; | 21827   void select() native; | 
| 21788 | 21828 | 
| 21789   @DomName('HTMLTextAreaElement.setCustomValidity') | 21829   @DomName('HTMLTextAreaElement.setCustomValidity') | 
| 21790   @DocsEditable() | 21830   @DocsEditable() | 
| 21791   void setCustomValidity(String error) native; | 21831   void setCustomValidity(String error) native; | 
| 21792 | 21832 | 
| 21793   @DomName('HTMLTextAreaElement.setRangeText') | 21833   @DomName('HTMLTextAreaElement.setRangeText') | 
| 21794   @DocsEditable() | 21834   @DocsEditable() | 
| 21795   // http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-
       controls-and-forms.html#dom-textarea/input-setrangetext | 21835   // http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-
       controls-and-forms.html#dom-textarea/input-setrangetext | 
| 21796   @Experimental() | 21836   @Experimental() | 
| 21797   void setRangeText(String replacement, [int start, int end, String selectionMod
       e]) native; | 21837   void setRangeText(String replacement, {int start, int end, String selectionMod
       e}) native; | 
| 21798 | 21838 | 
| 21799   @DomName('HTMLTextAreaElement.setSelectionRange') | 21839   @DomName('HTMLTextAreaElement.setSelectionRange') | 
| 21800   @DocsEditable() | 21840   @DocsEditable() | 
| 21801   void setSelectionRange(int start, int end, [String direction]) native; | 21841   void setSelectionRange(int start, int end, [String direction]) native; | 
| 21802 } | 21842 } | 
| 21803 // Copyright (c) 2013, the Dart project authors.  Please see the AUTHORS file | 21843 // Copyright (c) 2013, the Dart project authors.  Please see the AUTHORS file | 
| 21804 // for details. All rights reserved. Use of this source code is governed by a | 21844 // for details. All rights reserved. Use of this source code is governed by a | 
| 21805 // BSD-style license that can be found in the LICENSE file. | 21845 // BSD-style license that can be found in the LICENSE file. | 
| 21806 | 21846 | 
| 21807 // WARNING: Do not edit - generated code. | 21847 // WARNING: Do not edit - generated code. | 
| (...skipping 969 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 22777 // for details. All rights reserved. Use of this source code is governed by a | 22817 // for details. All rights reserved. Use of this source code is governed by a | 
| 22778 // BSD-style license that can be found in the LICENSE file. | 22818 // BSD-style license that can be found in the LICENSE file. | 
| 22779 | 22819 | 
| 22780 | 22820 | 
| 22781 @DomName('URL') | 22821 @DomName('URL') | 
| 22782 class Url extends Interceptor native "URL" { | 22822 class Url extends Interceptor native "URL" { | 
| 22783 | 22823 | 
| 22784   static String createObjectUrl(blob_OR_source_OR_stream) => | 22824   static String createObjectUrl(blob_OR_source_OR_stream) => | 
| 22785       JS('String', | 22825       JS('String', | 
| 22786          '(self.URL || self.webkitURL).createObjectURL(#)', | 22826          '(self.URL || self.webkitURL).createObjectURL(#)', | 
| 22787          blob_OR_source_OR_stream); | 22827           blob_OR_source_OR_stream); | 
|  | 22828 | 
|  | 22829   static String createObjectUrlFromSource(MediaSource source) => | 
|  | 22830       JS('String', '(self.URL || self.webkitURL).createObjectURL(#)', source); | 
|  | 22831 | 
|  | 22832   static String createObjectUrlFromStream(MediaStream stream) => | 
|  | 22833       JS('String', '(self.URL || self.webkitURL).createObjectURL(#)', stream); | 
|  | 22834 | 
|  | 22835   static String createObjectUrlFromBlob(Blob blob) => | 
|  | 22836       JS('String', '(self.URL || self.webkitURL).createObjectURL(#)', blob); | 
| 22788 | 22837 | 
| 22789   static void revokeObjectUrl(String url) => | 22838   static void revokeObjectUrl(String url) => | 
| 22790       JS('void', | 22839       JS('void', | 
| 22791          '(self.URL || self.webkitURL).revokeObjectURL(#)', url); | 22840          '(self.URL || self.webkitURL).revokeObjectURL(#)', url); | 
| 22792 | 22841 | 
| 22793 } | 22842 } | 
| 22794 // Copyright (c) 2012, the Dart project authors.  Please see the AUTHORS file | 22843 // Copyright (c) 2012, the Dart project authors.  Please see the AUTHORS file | 
| 22795 // for details. All rights reserved. Use of this source code is governed by a | 22844 // for details. All rights reserved. Use of this source code is governed by a | 
| 22796 // BSD-style license that can be found in the LICENSE file. | 22845 // BSD-style license that can be found in the LICENSE file. | 
| 22797 | 22846 | 
| (...skipping 1145 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 23943   @Creates('Window|=Object') | 23992   @Creates('Window|=Object') | 
| 23944   @Returns('Window|=Object') | 23993   @Returns('Window|=Object') | 
| 23945   final dynamic _get_window; | 23994   final dynamic _get_window; | 
| 23946 | 23995 | 
| 23947   @DomName('Window.__getter__') | 23996   @DomName('Window.__getter__') | 
| 23948   @DocsEditable() | 23997   @DocsEditable() | 
| 23949   @Creates('Window|=Object') | 23998   @Creates('Window|=Object') | 
| 23950   @Returns('Window|=Object') | 23999   @Returns('Window|=Object') | 
| 23951   WindowBase __getter__(index_OR_name) { | 24000   WindowBase __getter__(index_OR_name) { | 
| 23952     if ((index_OR_name is int || index_OR_name == null)) { | 24001     if ((index_OR_name is int || index_OR_name == null)) { | 
| 23953       return _convertNativeToDart_Window(___getter___1(index_OR_name)); | 24002       return _convertNativeToDart_Window(__getter___1(index_OR_name)); | 
| 23954     } | 24003     } | 
| 23955     if ((index_OR_name is String || index_OR_name == null)) { | 24004     if ((index_OR_name is String || index_OR_name == null)) { | 
| 23956       return _convertNativeToDart_Window(___getter___2(index_OR_name)); | 24005       return _convertNativeToDart_Window(__getter___2(index_OR_name)); | 
| 23957     } | 24006     } | 
| 23958     throw new ArgumentError("Incorrect number or type of arguments"); | 24007     throw new ArgumentError("Incorrect number or type of arguments"); | 
| 23959   } | 24008   } | 
| 23960   @JSName('__getter__') | 24009   @JSName('__getter__') | 
| 23961   @DomName('Window.__getter__') | 24010   @DomName('Window.__getter__') | 
| 23962   @DocsEditable() | 24011   @DocsEditable() | 
| 23963   @Creates('Window|=Object') | 24012   @Creates('Window|=Object') | 
| 23964   @Returns('Window|=Object') | 24013   @Returns('Window|=Object') | 
| 23965   ___getter___1(int index) native; | 24014   __getter___1(int index) native; | 
| 23966   @JSName('__getter__') | 24015   @JSName('__getter__') | 
| 23967   @DomName('Window.__getter__') | 24016   @DomName('Window.__getter__') | 
| 23968   @DocsEditable() | 24017   @DocsEditable() | 
| 23969   @Creates('Window|=Object') | 24018   @Creates('Window|=Object') | 
| 23970   @Returns('Window|=Object') | 24019   @Returns('Window|=Object') | 
| 23971   ___getter___2(String name) native; | 24020   __getter___2(String name) native; | 
| 23972 | 24021 | 
| 23973   @JSName('addEventListener') | 24022   @JSName('addEventListener') | 
| 23974   @DomName('Window.addEventListener') | 24023   @DomName('Window.addEventListener') | 
| 23975   @DocsEditable() | 24024   @DocsEditable() | 
| 23976   void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
       re]) native; | 24025   void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
       re]) native; | 
| 23977 | 24026 | 
| 23978   @DomName('Window.alert') | 24027   @DomName('Window.alert') | 
| 23979   @DocsEditable() | 24028   @DocsEditable() | 
| 23980   void alert(String message) native; | 24029   void alert(String message) native; | 
| 23981 | 24030 | 
| (...skipping 5341 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 29323       _position = nextPosition; | 29372       _position = nextPosition; | 
| 29324       return true; | 29373       return true; | 
| 29325     } | 29374     } | 
| 29326     _current = null; | 29375     _current = null; | 
| 29327     _position = _array.length; | 29376     _position = _array.length; | 
| 29328     return false; | 29377     return false; | 
| 29329   } | 29378   } | 
| 29330 | 29379 | 
| 29331   T get current => _current; | 29380   T get current => _current; | 
| 29332 } | 29381 } | 
| OLD | NEW | 
|---|