Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(326)

Side by Side Diff: sdk/lib/html/dart2js/html_dart2js.dart

Issue 16494002: Expand overloaded methods and optional parameters in the html library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /// The Dart HTML library. 1 /// The Dart HTML library.
2 library dart.dom.html; 2 library dart.dom.html;
3 3
4 import 'dart:async'; 4 import 'dart:async';
5 import 'dart:collection'; 5 import 'dart:collection';
6 import 'dart:_collection-dev' hide Symbol; 6 import 'dart:_collection-dev' hide Symbol;
7 import 'dart:html_common'; 7 import 'dart:html_common';
8 import 'dart:indexed_db'; 8 import 'dart:indexed_db';
9 import 'dart:isolate'; 9 import 'dart:isolate';
10 import 'dart:json' as json; 10 import 'dart:json' as json;
(...skipping 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after
1169 _createImageDataFromImageData_1(imagedata) native; 1169 _createImageDataFromImageData_1(imagedata) native;
1170 1170
1171 @DomName('CanvasRenderingContext2D.createLinearGradient') 1171 @DomName('CanvasRenderingContext2D.createLinearGradient')
1172 @DocsEditable 1172 @DocsEditable
1173 CanvasGradient createLinearGradient(num x0, num y0, num x1, num y1) native; 1173 CanvasGradient createLinearGradient(num x0, num y0, num x1, num y1) native;
1174 1174
1175 @DomName('CanvasRenderingContext2D.createPattern') 1175 @DomName('CanvasRenderingContext2D.createPattern')
1176 @DocsEditable 1176 @DocsEditable
1177 CanvasPattern createPattern(canvas_OR_image, String repetitionType) native; 1177 CanvasPattern createPattern(canvas_OR_image, String repetitionType) native;
1178 1178
1179 @JSName('createPattern')
1180 @DomName('CanvasRenderingContext2D.createPattern')
1181 @DocsEditable
1182 CanvasPattern createPatternFromCanvas(CanvasElement canvas, String repetitionT ype) native;
1183
1184 @JSName('createPattern')
1185 @DomName('CanvasRenderingContext2D.createPattern')
1186 @DocsEditable
1187 CanvasPattern createPatternFromImage(ImageElement image, String repetitionType ) native;
1188
1179 @DomName('CanvasRenderingContext2D.createRadialGradient') 1189 @DomName('CanvasRenderingContext2D.createRadialGradient')
1180 @DocsEditable 1190 @DocsEditable
1181 CanvasGradient createRadialGradient(num x0, num y0, num r0, num x1, num y1, nu m r1) native; 1191 CanvasGradient createRadialGradient(num x0, num y0, num r0, num x1, num y1, nu m r1) native;
1182 1192
1183 @DomName('CanvasRenderingContext2D.fill') 1193 @DomName('CanvasRenderingContext2D.fill')
1184 @DocsEditable 1194 @DocsEditable
1185 void fill([String winding]) native; 1195 void fill([String winding]) native;
1186 1196
1187 @DomName('CanvasRenderingContext2D.fillRect') 1197 @DomName('CanvasRenderingContext2D.fillRect')
1188 @DocsEditable 1198 @DocsEditable
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after
1912 1922
1913 @DocsEditable 1923 @DocsEditable
1914 @DomName('CSS') 1924 @DomName('CSS')
1915 // http://www.w3.org/TR/css3-conditional/#the-css-interface 1925 // http://www.w3.org/TR/css3-conditional/#the-css-interface
1916 @Experimental // None 1926 @Experimental // None
1917 class Css native "CSS" { 1927 class Css native "CSS" {
1918 1928
1919 @DomName('CSS.supports') 1929 @DomName('CSS.supports')
1920 @DocsEditable 1930 @DocsEditable
1921 bool supports(String conditionText_OR_property, [String value]) native; 1931 bool supports(String conditionText_OR_property, [String value]) native;
1932
1933 @JSName('supports')
1934 @DomName('CSS.supports')
1935 @DocsEditable
1936 bool supportsCondition(String conditionText) native;
1937
1938 @JSName('supports')
1939 @DomName('CSS.supports')
1940 @DocsEditable
1941 bool supportsProperty(String property, String value) native;
1922 } 1942 }
1923 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1943 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1924 // for details. All rights reserved. Use of this source code is governed by a 1944 // for details. All rights reserved. Use of this source code is governed by a
1925 // BSD-style license that can be found in the LICENSE file. 1945 // BSD-style license that can be found in the LICENSE file.
1926 1946
1927 1947
1928 @DocsEditable 1948 @DocsEditable
1929 @DomName('CSSCharsetRule') 1949 @DomName('CSSCharsetRule')
1930 // http://dev.w3.org/csswg/cssom/#the-csscharsetrule-interface 1950 // http://dev.w3.org/csswg/cssom/#the-csscharsetrule-interface
1931 @Experimental 1951 @Experimental
(...skipping 4199 matching lines...) Expand 10 before | Expand all | Expand 10 after
6131 class DataTransferItemList native "DataTransferItemList" { 6151 class DataTransferItemList native "DataTransferItemList" {
6132 6152
6133 @DomName('DataTransferItemList.length') 6153 @DomName('DataTransferItemList.length')
6134 @DocsEditable 6154 @DocsEditable
6135 final int length; 6155 final int length;
6136 6156
6137 @DomName('DataTransferItemList.add') 6157 @DomName('DataTransferItemList.add')
6138 @DocsEditable 6158 @DocsEditable
6139 void add(data_OR_file, [String type]) native; 6159 void add(data_OR_file, [String type]) native;
6140 6160
6161 @JSName('add')
6162 @DomName('DataTransferItemList.add')
6163 @DocsEditable
6164 void addData(String data, String type) native;
6165
6166 @JSName('add')
6167 @DomName('DataTransferItemList.add')
6168 @DocsEditable
6169 void addFile(File file) native;
6170
6141 @DomName('DataTransferItemList.clear') 6171 @DomName('DataTransferItemList.clear')
6142 @DocsEditable 6172 @DocsEditable
6143 void clear() native; 6173 void clear() native;
6144 6174
6145 @DomName('DataTransferItemList.item') 6175 @DomName('DataTransferItemList.item')
6146 @DocsEditable 6176 @DocsEditable
6147 DataTransferItem item(int index) native; 6177 DataTransferItem item(int index) native;
6148 } 6178 }
6149 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6179 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6150 // for details. All rights reserved. Use of this source code is governed by a 6180 // 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
6370 6400
6371 @DomName('DirectoryEntry.createReader') 6401 @DomName('DirectoryEntry.createReader')
6372 @DocsEditable 6402 @DocsEditable
6373 DirectoryReader createReader() native; 6403 DirectoryReader createReader() native;
6374 6404
6375 @DomName('DirectoryEntry.getDirectory') 6405 @DomName('DirectoryEntry.getDirectory')
6376 @DocsEditable 6406 @DocsEditable
6377 void __getDirectory(String path, {Map options, _EntryCallback successCallback, _ErrorCallback errorCallback}) { 6407 void __getDirectory(String path, {Map options, _EntryCallback successCallback, _ErrorCallback errorCallback}) {
6378 if (errorCallback != null) { 6408 if (errorCallback != null) {
6379 var options_1 = convertDartToNative_Dictionary(options); 6409 var options_1 = convertDartToNative_Dictionary(options);
6380 ___getDirectory_1(path, options_1, successCallback, errorCallback); 6410 __getDirectory_1(path, options_1, successCallback, errorCallback);
6381 return; 6411 return;
6382 } 6412 }
6383 if (successCallback != null) { 6413 if (successCallback != null) {
6384 var options_2 = convertDartToNative_Dictionary(options); 6414 var options_2 = convertDartToNative_Dictionary(options);
6385 ___getDirectory_2(path, options_2, successCallback); 6415 __getDirectory_2(path, options_2, successCallback);
6386 return; 6416 return;
6387 } 6417 }
6388 if (options != null) { 6418 if (options != null) {
6389 var options_3 = convertDartToNative_Dictionary(options); 6419 var options_3 = convertDartToNative_Dictionary(options);
6390 ___getDirectory_3(path, options_3); 6420 __getDirectory_3(path, options_3);
6391 return; 6421 return;
6392 } 6422 }
6393 ___getDirectory_4(path); 6423 __getDirectory_4(path);
6394 return; 6424 return;
6395 } 6425 }
6396 @JSName('getDirectory') 6426 @JSName('getDirectory')
6397 @DomName('DirectoryEntry.getDirectory') 6427 @DomName('DirectoryEntry.getDirectory')
6398 @DocsEditable 6428 @DocsEditable
6399 void ___getDirectory_1(path, options, _EntryCallback successCallback, _ErrorCa llback errorCallback) native; 6429 void __getDirectory_1(path, options, _EntryCallback successCallback, _ErrorCal lback errorCallback) native;
6400 @JSName('getDirectory') 6430 @JSName('getDirectory')
6401 @DomName('DirectoryEntry.getDirectory') 6431 @DomName('DirectoryEntry.getDirectory')
6402 @DocsEditable 6432 @DocsEditable
6403 void ___getDirectory_2(path, options, _EntryCallback successCallback) native; 6433 void __getDirectory_2(path, options, _EntryCallback successCallback) native;
6404 @JSName('getDirectory') 6434 @JSName('getDirectory')
6405 @DomName('DirectoryEntry.getDirectory') 6435 @DomName('DirectoryEntry.getDirectory')
6406 @DocsEditable 6436 @DocsEditable
6407 void ___getDirectory_3(path, options) native; 6437 void __getDirectory_3(path, options) native;
6408 @JSName('getDirectory') 6438 @JSName('getDirectory')
6409 @DomName('DirectoryEntry.getDirectory') 6439 @DomName('DirectoryEntry.getDirectory')
6410 @DocsEditable 6440 @DocsEditable
6411 void ___getDirectory_4(path) native; 6441 void __getDirectory_4(path) native;
6412 6442
6413 @JSName('getDirectory') 6443 @JSName('getDirectory')
6414 @DomName('DirectoryEntry.getDirectory') 6444 @DomName('DirectoryEntry.getDirectory')
6415 @DocsEditable 6445 @DocsEditable
6416 Future<Entry> _getDirectory(String path, {Map options}) { 6446 Future<Entry> _getDirectory(String path, {Map options}) {
6417 var completer = new Completer<Entry>(); 6447 var completer = new Completer<Entry>();
6418 __getDirectory(path, options : options, 6448 __getDirectory(path, options : options,
6419 successCallback : (value) { completer.complete(value); }, 6449 successCallback : (value) { completer.complete(value); },
6420 errorCallback : (error) { completer.completeError(error); }); 6450 errorCallback : (error) { completer.completeError(error); });
6421 return completer.future; 6451 return completer.future;
6422 } 6452 }
6423 6453
6424 @DomName('DirectoryEntry.getFile') 6454 @DomName('DirectoryEntry.getFile')
6425 @DocsEditable 6455 @DocsEditable
6426 void __getFile(String path, {Map options, _EntryCallback successCallback, _Err orCallback errorCallback}) { 6456 void __getFile(String path, {Map options, _EntryCallback successCallback, _Err orCallback errorCallback}) {
6427 if (errorCallback != null) { 6457 if (errorCallback != null) {
6428 var options_1 = convertDartToNative_Dictionary(options); 6458 var options_1 = convertDartToNative_Dictionary(options);
6429 ___getFile_1(path, options_1, successCallback, errorCallback); 6459 __getFile_1(path, options_1, successCallback, errorCallback);
6430 return; 6460 return;
6431 } 6461 }
6432 if (successCallback != null) { 6462 if (successCallback != null) {
6433 var options_2 = convertDartToNative_Dictionary(options); 6463 var options_2 = convertDartToNative_Dictionary(options);
6434 ___getFile_2(path, options_2, successCallback); 6464 __getFile_2(path, options_2, successCallback);
6435 return; 6465 return;
6436 } 6466 }
6437 if (options != null) { 6467 if (options != null) {
6438 var options_3 = convertDartToNative_Dictionary(options); 6468 var options_3 = convertDartToNative_Dictionary(options);
6439 ___getFile_3(path, options_3); 6469 __getFile_3(path, options_3);
6440 return; 6470 return;
6441 } 6471 }
6442 ___getFile_4(path); 6472 __getFile_4(path);
6443 return; 6473 return;
6444 } 6474 }
6445 @JSName('getFile') 6475 @JSName('getFile')
6446 @DomName('DirectoryEntry.getFile') 6476 @DomName('DirectoryEntry.getFile')
6447 @DocsEditable 6477 @DocsEditable
6448 void ___getFile_1(path, options, _EntryCallback successCallback, _ErrorCallbac k errorCallback) native; 6478 void __getFile_1(path, options, _EntryCallback successCallback, _ErrorCallback errorCallback) native;
6449 @JSName('getFile') 6479 @JSName('getFile')
6450 @DomName('DirectoryEntry.getFile') 6480 @DomName('DirectoryEntry.getFile')
6451 @DocsEditable 6481 @DocsEditable
6452 void ___getFile_2(path, options, _EntryCallback successCallback) native; 6482 void __getFile_2(path, options, _EntryCallback successCallback) native;
6453 @JSName('getFile') 6483 @JSName('getFile')
6454 @DomName('DirectoryEntry.getFile') 6484 @DomName('DirectoryEntry.getFile')
6455 @DocsEditable 6485 @DocsEditable
6456 void ___getFile_3(path, options) native; 6486 void __getFile_3(path, options) native;
6457 @JSName('getFile') 6487 @JSName('getFile')
6458 @DomName('DirectoryEntry.getFile') 6488 @DomName('DirectoryEntry.getFile')
6459 @DocsEditable 6489 @DocsEditable
6460 void ___getFile_4(path) native; 6490 void __getFile_4(path) native;
6461 6491
6462 @JSName('getFile') 6492 @JSName('getFile')
6463 @DomName('DirectoryEntry.getFile') 6493 @DomName('DirectoryEntry.getFile')
6464 @DocsEditable 6494 @DocsEditable
6465 Future<Entry> _getFile(String path, {Map options}) { 6495 Future<Entry> _getFile(String path, {Map options}) {
6466 var completer = new Completer<Entry>(); 6496 var completer = new Completer<Entry>();
6467 __getFile(path, options : options, 6497 __getFile(path, options : options,
6468 successCallback : (value) { completer.complete(value); }, 6498 successCallback : (value) { completer.complete(value); },
6469 errorCallback : (error) { completer.completeError(error); }); 6499 errorCallback : (error) { completer.completeError(error); });
6470 return completer.future; 6500 return completer.future;
(...skipping 4443 matching lines...) Expand 10 before | Expand all | Expand 10 after
10914 } 10944 }
10915 static FormData _create_1(form) => JS('FormData', 'new FormData(#)', form); 10945 static FormData _create_1(form) => JS('FormData', 'new FormData(#)', form);
10916 static FormData _create_2() => JS('FormData', 'new FormData()'); 10946 static FormData _create_2() => JS('FormData', 'new FormData()');
10917 10947
10918 /// Checks if this type is supported on the current platform. 10948 /// Checks if this type is supported on the current platform.
10919 static bool get supported => JS('bool', '!!(window.FormData)'); 10949 static bool get supported => JS('bool', '!!(window.FormData)');
10920 10950
10921 @DomName('FormData.append') 10951 @DomName('FormData.append')
10922 @DocsEditable 10952 @DocsEditable
10923 void append(String name, value, [String filename]) native; 10953 void append(String name, value, [String filename]) native;
10954
10955 @JSName('append')
10956 @DomName('FormData.append')
10957 @DocsEditable
10958 void appendBlob(String name, Blob value, [String filename]) native;
10959
10960 @JSName('append')
10961 @DomName('FormData.append')
10962 @DocsEditable
10963 void appendString(String name, String value) native;
10924 } 10964 }
10925 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10965 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10926 // for details. All rights reserved. Use of this source code is governed by a 10966 // for details. All rights reserved. Use of this source code is governed by a
10927 // BSD-style license that can be found in the LICENSE file. 10967 // BSD-style license that can be found in the LICENSE file.
10928 10968
10929 10969
10930 @DocsEditable 10970 @DocsEditable
10931 @DomName('HTMLFormElement') 10971 @DomName('HTMLFormElement')
10932 class FormElement extends _HTMLElement native "HTMLFormElement" { 10972 class FormElement extends _HTMLElement native "HTMLFormElement" {
10933 10973
(...skipping 4918 matching lines...) Expand 10 before | Expand all | Expand 10 after
15852 class MutationObserver native "MutationObserver,WebKitMutationObserver" { 15892 class MutationObserver native "MutationObserver,WebKitMutationObserver" {
15853 15893
15854 @DomName('MutationObserver.disconnect') 15894 @DomName('MutationObserver.disconnect')
15855 @DocsEditable 15895 @DocsEditable
15856 void disconnect() native; 15896 void disconnect() native;
15857 15897
15858 @DomName('MutationObserver.observe') 15898 @DomName('MutationObserver.observe')
15859 @DocsEditable 15899 @DocsEditable
15860 void _observe(Node target, Map options) { 15900 void _observe(Node target, Map options) {
15861 var options_1 = convertDartToNative_Dictionary(options); 15901 var options_1 = convertDartToNative_Dictionary(options);
15862 __observe_1(target, options_1); 15902 _observe_1(target, options_1);
15863 return; 15903 return;
15864 } 15904 }
15865 @JSName('observe') 15905 @JSName('observe')
15866 @DomName('MutationObserver.observe') 15906 @DomName('MutationObserver.observe')
15867 @DocsEditable 15907 @DocsEditable
15868 void __observe_1(Node target, options) native; 15908 void _observe_1(Node target, options) native;
15869 15909
15870 @DomName('MutationObserver.takeRecords') 15910 @DomName('MutationObserver.takeRecords')
15871 @DocsEditable 15911 @DocsEditable
15872 List<MutationRecord> takeRecords() native; 15912 List<MutationRecord> takeRecords() native;
15873 15913
15874 /** 15914 /**
15875 * Checks to see if the mutation observer API is supported on the current 15915 * Checks to see if the mutation observer API is supported on the current
15876 * platform. 15916 * platform.
15877 */ 15917 */
15878 static bool get supported { 15918 static bool get supported {
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
16090 * 16130 *
16091 * Use [MediaStream.supported] to check if this is supported by the current 16131 * Use [MediaStream.supported] to check if this is supported by the current
16092 * platform. The arguments `audio` and `video` default to `false` (stream does 16132 * platform. The arguments `audio` and `video` default to `false` (stream does
16093 * not use audio or video, respectively). 16133 * not use audio or video, respectively).
16094 * 16134 *
16095 * Simple example usage: 16135 * Simple example usage:
16096 * 16136 *
16097 * window.navigator.getUserMedia(audio: true, video: true).then((stream) { 16137 * window.navigator.getUserMedia(audio: true, video: true).then((stream) {
16098 * var video = new VideoElement() 16138 * var video = new VideoElement()
16099 * ..autoplay = true 16139 * ..autoplay = true
16100 * ..src = Url.createObjectUrl(stream); 16140 * ..src = Url.createObjectUrlFromStream(stream);
16101 * document.body.append(video); 16141 * document.body.append(video);
16102 * }); 16142 * });
16103 * 16143 *
16104 * The user can also pass in Maps to the audio or video parameters to specify 16144 * The user can also pass in Maps to the audio or video parameters to specify
16105 * mandatory and optional constraints for the media stream. Not passing in a 16145 * mandatory and optional constraints for the media stream. Not passing in a
16106 * map, but passing in `true` will provide a MediaStream with audio or 16146 * map, but passing in `true` will provide a MediaStream with audio or
16107 * video capabilities, but without any additional constraints. The particular 16147 * video capabilities, but without any additional constraints. The particular
16108 * constraint names for audio and video are still in flux, but as of this 16148 * constraint names for audio and video are still in flux, but as of this
16109 * writing, here is an example providing more constraints. 16149 * writing, here is an example providing more constraints.
16110 * 16150 *
(...skipping 2396 matching lines...) Expand 10 before | Expand all | Expand 10 after
18507 18547
18508 @JSName('removeEventListener') 18548 @JSName('removeEventListener')
18509 @DomName('RTCDataChannel.removeEventListener') 18549 @DomName('RTCDataChannel.removeEventListener')
18510 @DocsEditable 18550 @DocsEditable
18511 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; 18551 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native;
18512 18552
18513 @DomName('RTCDataChannel.send') 18553 @DomName('RTCDataChannel.send')
18514 @DocsEditable 18554 @DocsEditable
18515 void send(data) native; 18555 void send(data) native;
18516 18556
18557 @JSName('send')
18558 @DomName('RTCDataChannel.send')
18559 @DocsEditable
18560 void sendBlob(Blob data) native;
18561
18562 @JSName('send')
18563 @DomName('RTCDataChannel.send')
18564 @DocsEditable
18565 void sendByteBuffer(ByteBuffer data) native;
18566
18567 @JSName('send')
18568 @DomName('RTCDataChannel.send')
18569 @DocsEditable
18570 void sendString(String data) native;
18571
18572 @JSName('send')
18573 @DomName('RTCDataChannel.send')
18574 @DocsEditable
18575 void sendTypedData(TypedData data) native;
18576
18517 @DomName('RTCDataChannel.onclose') 18577 @DomName('RTCDataChannel.onclose')
18518 @DocsEditable 18578 @DocsEditable
18519 Stream<Event> get onClose => closeEvent.forTarget(this); 18579 Stream<Event> get onClose => closeEvent.forTarget(this);
18520 18580
18521 @DomName('RTCDataChannel.onerror') 18581 @DomName('RTCDataChannel.onerror')
18522 @DocsEditable 18582 @DocsEditable
18523 Stream<Event> get onError => errorEvent.forTarget(this); 18583 Stream<Event> get onError => errorEvent.forTarget(this);
18524 18584
18525 @DomName('RTCDataChannel.onmessage') 18585 @DomName('RTCDataChannel.onmessage')
18526 @DocsEditable 18586 @DocsEditable
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
18802 18862
18803 @DomName('RTCPeerConnection.close') 18863 @DomName('RTCPeerConnection.close')
18804 @DocsEditable 18864 @DocsEditable
18805 void close() native; 18865 void close() native;
18806 18866
18807 @DomName('RTCPeerConnection.createAnswer') 18867 @DomName('RTCPeerConnection.createAnswer')
18808 @DocsEditable 18868 @DocsEditable
18809 void _createAnswer(_RtcSessionDescriptionCallback successCallback, [_RtcErrorC allback failureCallback, Map mediaConstraints]) { 18869 void _createAnswer(_RtcSessionDescriptionCallback successCallback, [_RtcErrorC allback failureCallback, Map mediaConstraints]) {
18810 if (mediaConstraints != null) { 18870 if (mediaConstraints != null) {
18811 var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints); 18871 var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints);
18812 __createAnswer_1(successCallback, failureCallback, mediaConstraints_1); 18872 _createAnswer_1(successCallback, failureCallback, mediaConstraints_1);
18813 return; 18873 return;
18814 } 18874 }
18815 __createAnswer_2(successCallback, failureCallback); 18875 _createAnswer_2(successCallback, failureCallback);
18816 return; 18876 return;
18817 } 18877 }
18818 @JSName('createAnswer') 18878 @JSName('createAnswer')
18819 @DomName('RTCPeerConnection.createAnswer') 18879 @DomName('RTCPeerConnection.createAnswer')
18820 @DocsEditable 18880 @DocsEditable
18821 void __createAnswer_1(_RtcSessionDescriptionCallback successCallback, _RtcErro rCallback failureCallback, mediaConstraints) native; 18881 void _createAnswer_1(_RtcSessionDescriptionCallback successCallback, _RtcError Callback failureCallback, mediaConstraints) native;
18822 @JSName('createAnswer') 18882 @JSName('createAnswer')
18823 @DomName('RTCPeerConnection.createAnswer') 18883 @DomName('RTCPeerConnection.createAnswer')
18824 @DocsEditable 18884 @DocsEditable
18825 void __createAnswer_2(_RtcSessionDescriptionCallback successCallback, _RtcErro rCallback failureCallback) native; 18885 void _createAnswer_2(_RtcSessionDescriptionCallback successCallback, _RtcError Callback failureCallback) native;
18826 18886
18827 @JSName('createDTMFSender') 18887 @JSName('createDTMFSender')
18828 @DomName('RTCPeerConnection.createDTMFSender') 18888 @DomName('RTCPeerConnection.createDTMFSender')
18829 @DocsEditable 18889 @DocsEditable
18830 RtcDtmfSender createDtmfSender(MediaStreamTrack track) native; 18890 RtcDtmfSender createDtmfSender(MediaStreamTrack track) native;
18831 18891
18832 @DomName('RTCPeerConnection.createDataChannel') 18892 @DomName('RTCPeerConnection.createDataChannel')
18833 @DocsEditable 18893 @DocsEditable
18834 RtcDataChannel createDataChannel(String label, [Map options]) { 18894 RtcDataChannel createDataChannel(String label, [Map options]) {
18835 if (options != null) { 18895 if (options != null) {
18836 var options_1 = convertDartToNative_Dictionary(options); 18896 var options_1 = convertDartToNative_Dictionary(options);
18837 return _createDataChannel_1(label, options_1); 18897 return _createDataChannel_1(label, options_1);
18838 } 18898 }
18839 return _createDataChannel_2(label); 18899 return _createDataChannel_2(label);
18840 } 18900 }
18841 @JSName('createDataChannel') 18901 @JSName('createDataChannel')
18842 @DomName('RTCPeerConnection.createDataChannel') 18902 @DomName('RTCPeerConnection.createDataChannel')
18843 @DocsEditable 18903 @DocsEditable
18844 RtcDataChannel _createDataChannel_1(label, options) native; 18904 RtcDataChannel _createDataChannel_1(label, options) native;
18845 @JSName('createDataChannel') 18905 @JSName('createDataChannel')
18846 @DomName('RTCPeerConnection.createDataChannel') 18906 @DomName('RTCPeerConnection.createDataChannel')
18847 @DocsEditable 18907 @DocsEditable
18848 RtcDataChannel _createDataChannel_2(label) native; 18908 RtcDataChannel _createDataChannel_2(label) native;
18849 18909
18850 @DomName('RTCPeerConnection.createOffer') 18910 @DomName('RTCPeerConnection.createOffer')
18851 @DocsEditable 18911 @DocsEditable
18852 void _createOffer(_RtcSessionDescriptionCallback successCallback, [_RtcErrorCa llback failureCallback, Map mediaConstraints]) { 18912 void _createOffer(_RtcSessionDescriptionCallback successCallback, [_RtcErrorCa llback failureCallback, Map mediaConstraints]) {
18853 if (mediaConstraints != null) { 18913 if (mediaConstraints != null) {
18854 var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints); 18914 var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints);
18855 __createOffer_1(successCallback, failureCallback, mediaConstraints_1); 18915 _createOffer_1(successCallback, failureCallback, mediaConstraints_1);
18856 return; 18916 return;
18857 } 18917 }
18858 __createOffer_2(successCallback, failureCallback); 18918 _createOffer_2(successCallback, failureCallback);
18859 return; 18919 return;
18860 } 18920 }
18861 @JSName('createOffer') 18921 @JSName('createOffer')
18862 @DomName('RTCPeerConnection.createOffer') 18922 @DomName('RTCPeerConnection.createOffer')
18863 @DocsEditable 18923 @DocsEditable
18864 void __createOffer_1(_RtcSessionDescriptionCallback successCallback, _RtcError Callback failureCallback, mediaConstraints) native; 18924 void _createOffer_1(_RtcSessionDescriptionCallback successCallback, _RtcErrorC allback failureCallback, mediaConstraints) native;
18865 @JSName('createOffer') 18925 @JSName('createOffer')
18866 @DomName('RTCPeerConnection.createOffer') 18926 @DomName('RTCPeerConnection.createOffer')
18867 @DocsEditable 18927 @DocsEditable
18868 void __createOffer_2(_RtcSessionDescriptionCallback successCallback, _RtcError Callback failureCallback) native; 18928 void _createOffer_2(_RtcSessionDescriptionCallback successCallback, _RtcErrorC allback failureCallback) native;
18869 18929
18870 @DomName('RTCPeerConnection.dispatchEvent') 18930 @DomName('RTCPeerConnection.dispatchEvent')
18871 @DocsEditable 18931 @DocsEditable
18872 bool dispatchEvent(Event event) native; 18932 bool dispatchEvent(Event event) native;
18873 18933
18874 @DomName('RTCPeerConnection.getLocalStreams') 18934 @DomName('RTCPeerConnection.getLocalStreams')
18875 @DocsEditable 18935 @DocsEditable
18876 List<MediaStream> getLocalStreams() native; 18936 List<MediaStream> getLocalStreams() native;
18877 18937
18878 @DomName('RTCPeerConnection.getRemoteStreams') 18938 @DomName('RTCPeerConnection.getRemoteStreams')
(...skipping 2461 matching lines...) Expand 10 before | Expand all | Expand 10 after
21340 void select() native; 21400 void select() native;
21341 21401
21342 @DomName('HTMLTextAreaElement.setCustomValidity') 21402 @DomName('HTMLTextAreaElement.setCustomValidity')
21343 @DocsEditable 21403 @DocsEditable
21344 void setCustomValidity(String error) native; 21404 void setCustomValidity(String error) native;
21345 21405
21346 @DomName('HTMLTextAreaElement.setRangeText') 21406 @DomName('HTMLTextAreaElement.setRangeText')
21347 @DocsEditable 21407 @DocsEditable
21348 // http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of- controls-and-forms.html#dom-textarea/input-setrangetext 21408 // http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of- controls-and-forms.html#dom-textarea/input-setrangetext
21349 @Experimental 21409 @Experimental
21350 void setRangeText(String replacement, [int start, int end, String selectionMod e]) native; 21410 void setRangeText(String replacement, {int start, int end, String selectionMod e}) native;
21351 21411
21352 @DomName('HTMLTextAreaElement.setSelectionRange') 21412 @DomName('HTMLTextAreaElement.setSelectionRange')
21353 @DocsEditable 21413 @DocsEditable
21354 void setSelectionRange(int start, int end, [String direction]) native; 21414 void setSelectionRange(int start, int end, [String direction]) native;
21355 } 21415 }
21356 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 21416 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
21357 // for details. All rights reserved. Use of this source code is governed by a 21417 // for details. All rights reserved. Use of this source code is governed by a
21358 // BSD-style license that can be found in the LICENSE file. 21418 // BSD-style license that can be found in the LICENSE file.
21359 21419
21360 // WARNING: Do not edit - generated code. 21420 // WARNING: Do not edit - generated code.
(...skipping 945 matching lines...) Expand 10 before | Expand all | Expand 10 after
22306 // for details. All rights reserved. Use of this source code is governed by a 22366 // 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. 22367 // BSD-style license that can be found in the LICENSE file.
22308 22368
22309 22369
22310 @DomName('URL') 22370 @DomName('URL')
22311 class Url native "URL" { 22371 class Url native "URL" {
22312 22372
22313 static String createObjectUrl(blob_OR_source_OR_stream) => 22373 static String createObjectUrl(blob_OR_source_OR_stream) =>
22314 JS('String', 22374 JS('String',
22315 '(self.URL || self.webkitURL).createObjectURL(#)', 22375 '(self.URL || self.webkitURL).createObjectURL(#)',
22316 blob_OR_source_OR_stream); 22376 blob_OR_source_OR_stream);
22377
22378 static String createObjectUrlFromSource(MediaSource source) =>
22379 JS('String', '(self.URL || self.webkitURL).createObjectURL(#)', source);
22380
22381 static String createObjectUrlFromStream(MediaStream stream) =>
22382 JS('String', '(self.URL || self.webkitURL).createObjectURL(#)', stream);
22383
22384 static String createObjectUrlFromBlob(Blob blob) =>
22385 JS('String', '(self.URL || self.webkitURL).createObjectURL(#)', blob);
22317 22386
22318 static void revokeObjectUrl(String url) => 22387 static void revokeObjectUrl(String url) =>
22319 JS('void', 22388 JS('void',
22320 '(self.URL || self.webkitURL).revokeObjectURL(#)', url); 22389 '(self.URL || self.webkitURL).revokeObjectURL(#)', url);
22321 22390
22322 } 22391 }
22323 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22392 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22324 // for details. All rights reserved. Use of this source code is governed by a 22393 // for details. All rights reserved. Use of this source code is governed by a
22325 // BSD-style license that can be found in the LICENSE file. 22394 // BSD-style license that can be found in the LICENSE file.
22326 22395
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
22633 22702
22634 @JSName('removeEventListener') 22703 @JSName('removeEventListener')
22635 @DomName('WebSocket.removeEventListener') 22704 @DomName('WebSocket.removeEventListener')
22636 @DocsEditable 22705 @DocsEditable
22637 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; 22706 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native;
22638 22707
22639 @DomName('WebSocket.send') 22708 @DomName('WebSocket.send')
22640 @DocsEditable 22709 @DocsEditable
22641 void send(data) native; 22710 void send(data) native;
22642 22711
22712 @JSName('send')
22713 @DomName('WebSocket.send')
22714 @DocsEditable
22715 void sendBlob(Blob data) native;
22716
22717 @JSName('send')
22718 @DomName('WebSocket.send')
22719 @DocsEditable
22720 void sendByteBuffer(ByteBuffer data) native;
22721
22722 @JSName('send')
22723 @DomName('WebSocket.send')
22724 @DocsEditable
22725 void sendString(String data) native;
22726
22727 @JSName('send')
22728 @DomName('WebSocket.send')
22729 @DocsEditable
22730 void sendTypeData(TypedData data) native;
22731
22643 @DomName('WebSocket.onclose') 22732 @DomName('WebSocket.onclose')
22644 @DocsEditable 22733 @DocsEditable
22645 Stream<CloseEvent> get onClose => closeEvent.forTarget(this); 22734 Stream<CloseEvent> get onClose => closeEvent.forTarget(this);
22646 22735
22647 @DomName('WebSocket.onerror') 22736 @DomName('WebSocket.onerror')
22648 @DocsEditable 22737 @DocsEditable
22649 Stream<Event> get onError => errorEvent.forTarget(this); 22738 Stream<Event> get onError => errorEvent.forTarget(this);
22650 22739
22651 @DomName('WebSocket.onmessage') 22740 @DomName('WebSocket.onmessage')
22652 @DocsEditable 22741 @DocsEditable
(...skipping 811 matching lines...) Expand 10 before | Expand all | Expand 10 after
23464 @Creates('Window|=Object') 23553 @Creates('Window|=Object')
23465 @Returns('Window|=Object') 23554 @Returns('Window|=Object')
23466 final dynamic _get_window; 23555 final dynamic _get_window;
23467 23556
23468 @DomName('Window.__getter__') 23557 @DomName('Window.__getter__')
23469 @DocsEditable 23558 @DocsEditable
23470 @Creates('Window|=Object') 23559 @Creates('Window|=Object')
23471 @Returns('Window|=Object') 23560 @Returns('Window|=Object')
23472 WindowBase __getter__(index_OR_name) { 23561 WindowBase __getter__(index_OR_name) {
23473 if ((index_OR_name is int || index_OR_name == null)) { 23562 if ((index_OR_name is int || index_OR_name == null)) {
23474 return _convertNativeToDart_Window(___getter___1(index_OR_name)); 23563 return _convertNativeToDart_Window(__getter___1(index_OR_name));
23475 } 23564 }
23476 if ((index_OR_name is String || index_OR_name == null)) { 23565 if ((index_OR_name is String || index_OR_name == null)) {
23477 return _convertNativeToDart_Window(___getter___2(index_OR_name)); 23566 return _convertNativeToDart_Window(__getter___2(index_OR_name));
23478 } 23567 }
23479 throw new ArgumentError("Incorrect number or type of arguments"); 23568 throw new ArgumentError("Incorrect number or type of arguments");
23480 } 23569 }
23481 @JSName('__getter__') 23570 @JSName('__getter__')
23482 @DomName('Window.__getter__') 23571 @DomName('Window.__getter__')
23483 @DocsEditable 23572 @DocsEditable
23484 @Creates('Window|=Object') 23573 @Creates('Window|=Object')
23485 @Returns('Window|=Object') 23574 @Returns('Window|=Object')
23486 ___getter___1(int index) native; 23575 __getter___1(int index) native;
23487 @JSName('__getter__') 23576 @JSName('__getter__')
23488 @DomName('Window.__getter__') 23577 @DomName('Window.__getter__')
23489 @DocsEditable 23578 @DocsEditable
23490 @Creates('Window|=Object') 23579 @Creates('Window|=Object')
23491 @Returns('Window|=Object') 23580 @Returns('Window|=Object')
23492 ___getter___2(String name) native; 23581 __getter___2(String name) native;
23493 23582
23494 @JSName('addEventListener') 23583 @JSName('addEventListener')
23495 @DomName('Window.addEventListener') 23584 @DomName('Window.addEventListener')
23496 @DocsEditable 23585 @DocsEditable
23497 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; 23586 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native;
23498 23587
23499 @DomName('Window.alert') 23588 @DomName('Window.alert')
23500 @DocsEditable 23589 @DocsEditable
23501 void alert(String message) native; 23590 void alert(String message) native;
23502 23591
(...skipping 6094 matching lines...) Expand 10 before | Expand all | Expand 10 after
29597 _position = nextPosition; 29686 _position = nextPosition;
29598 return true; 29687 return true;
29599 } 29688 }
29600 _current = null; 29689 _current = null;
29601 _position = _array.length; 29690 _position = _array.length;
29602 return false; 29691 return false;
29603 } 29692 }
29604 29693
29605 T get current => _current; 29694 T get current => _current;
29606 } 29695 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698