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

Unified Diff: sdk/lib/html/dartium/html_dartium.dart

Issue 20463002: Regenerate dart_html (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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:
Download patch
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | tools/dom/dom.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dartium/html_dartium.dart
diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
index 6ad87bff569440d22eb4ec52bf948a67a496567b..516c4162b821e180dccdff851b8033982d06c497 100644
--- a/sdk/lib/html/dartium/html_dartium.dart
+++ b/sdk/lib/html/dartium/html_dartium.dart
@@ -24891,9 +24891,34 @@ class UnknownElement extends _HTMLElement {
@DomName('URL')
class Url extends NativeFieldWrapperClass1 {
- @DomName('URL.createObjectURL')
+ @DomName('URL._createObjectUrlFromWebKitSource')
@DocsEditable()
- static String createObjectUrl(_WebKitMediaSource source) native "URL_createObjectURL_Callback";
+ @Experimental() // untriaged
+ static String _createObjectUrlFromWebKitSource(_WebKitMediaSource source) native "URL__createObjectUrlFromWebKitSource_Callback";
+
+ static String createObjectUrl(blob_OR_source_OR_stream) {
+ if ((blob_OR_source_OR_stream is MediaSource || blob_OR_source_OR_stream == null)) {
+ return _createObjectURL_1(blob_OR_source_OR_stream);
+ }
+ if ((blob_OR_source_OR_stream is _WebKitMediaSource || blob_OR_source_OR_stream == null)) {
+ return _createObjectURL_2(blob_OR_source_OR_stream);
+ }
+ if ((blob_OR_source_OR_stream is MediaStream || blob_OR_source_OR_stream == null)) {
+ return _createObjectURL_3(blob_OR_source_OR_stream);
+ }
+ if ((blob_OR_source_OR_stream is Blob || blob_OR_source_OR_stream == null)) {
+ return _createObjectURL_4(blob_OR_source_OR_stream);
+ }
+ throw new ArgumentError("Incorrect number or type of arguments");
+ }
+
+ static String _createObjectURL_1(blob_OR_source_OR_stream) native "URL__createObjectURL_1_Callback";
+
+ static String _createObjectURL_2(blob_OR_source_OR_stream) native "URL__createObjectURL_2_Callback";
+
+ static String _createObjectURL_3(blob_OR_source_OR_stream) native "URL__createObjectURL_3_Callback";
+
+ static String _createObjectURL_4(blob_OR_source_OR_stream) native "URL__createObjectURL_4_Callback";
@DomName('URL.createObjectUrlFromBlob')
@DocsEditable()
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | tools/dom/dom.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698