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

Unified Diff: client/dom/generated/src/wrapping/_DOMURLWrappingImplementation.dart

Issue 9359034: A bunch of fixes in idl database generator. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Generated files. Created 8 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: client/dom/generated/src/wrapping/_DOMURLWrappingImplementation.dart
diff --git a/client/dom/generated/src/wrapping/_DOMURLWrappingImplementation.dart b/client/dom/generated/src/wrapping/_DOMURLWrappingImplementation.dart
index 5b845016fcf4347b304dd57fddd3571c5c1e7f25..c0aa5ebec7d9c6c35af8aadfd3f6faeccd1391d6 100644
--- a/client/dom/generated/src/wrapping/_DOMURLWrappingImplementation.dart
+++ b/client/dom/generated/src/wrapping/_DOMURLWrappingImplementation.dart
@@ -11,10 +11,18 @@ class _DOMURLWrappingImplementation extends DOMWrapperBase implements DOMURL {
return new _DOMURLWrappingImplementation();
}
- String createObjectURL(Blob blob) {
- return _createObjectURL(this, blob);
+ String createObjectURL(var blob_OR_stream) {
+ if (blob_OR_stream is MediaStream) {
+ return _createObjectURL(this, blob_OR_stream);
+ } else {
+ if (blob_OR_stream is Blob) {
+ return _createObjectURL_2(this, blob_OR_stream);
+ }
+ }
+ throw "Incorrect number or type of arguments";
}
- static String _createObjectURL(receiver, blob) native;
+ static String _createObjectURL(receiver, blob_OR_stream) native;
+ static String _createObjectURL_2(receiver, blob_OR_stream) native;
void revokeObjectURL(String url) {
_revokeObjectURL(this, url);

Powered by Google App Engine
This is Rietveld 408576698