| Index: tools/dom/templates/html/dart2js/impl_URL.darttemplate
|
| diff --git a/tools/dom/templates/html/dart2js/impl_URL.darttemplate b/tools/dom/templates/html/dart2js/impl_URL.darttemplate
|
| index a484c346d2159cda66366a6a063f90a4999fc51c..569da56f1187a94d4106630b3e342c795e11eaca 100644
|
| --- a/tools/dom/templates/html/dart2js/impl_URL.darttemplate
|
| +++ b/tools/dom/templates/html/dart2js/impl_URL.darttemplate
|
| @@ -9,7 +9,16 @@ $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
|
| static String createObjectUrl(blob_OR_source_OR_stream) =>
|
| JS('String',
|
| '(self.URL || self.webkitURL).createObjectURL(#)',
|
| - blob_OR_source_OR_stream);
|
| + blob_OR_source_OR_stream);
|
| +
|
| + static String createObjectUrlFromSource(MediaSource source) =>
|
| + JS('String', '(self.URL || self.webkitURL).createObjectURL(#)', source);
|
| +
|
| + static String createObjectUrlFromStream(MediaStream stream) =>
|
| + JS('String', '(self.URL || self.webkitURL).createObjectURL(#)', stream);
|
| +
|
| + static String createObjectUrlFromBlob(Blob blob) =>
|
| + JS('String', '(self.URL || self.webkitURL).createObjectURL(#)', blob);
|
|
|
| static void revokeObjectUrl(String url) =>
|
| JS('void',
|
|
|