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

Unified Diff: lib/dom/templates/html/dart2js/impl_Window.darttemplate

Issue 10915128: Implementing window.createObjectURL* (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Disabling test on IE since it's not supported on IE9. Created 8 years, 3 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
« no previous file with comments | « no previous file | lib/dom/templates/html/interface/interface_Window.darttemplate » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dom/templates/html/dart2js/impl_Window.darttemplate
diff --git a/lib/dom/templates/html/dart2js/impl_Window.darttemplate b/lib/dom/templates/html/dart2js/impl_Window.darttemplate
index 627f0b7b74baa056e906a6ff841ed2da121aa425..f776d87ee5d4e6311955d89eee99d234e47e84bc 100644
--- a/lib/dom/templates/html/dart2js/impl_Window.darttemplate
+++ b/lib/dom/templates/html/dart2js/impl_Window.darttemplate
@@ -129,5 +129,12 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS native "@*DOMWindow" {
localStorage['dart-port:$name'] = JSON.stringify(serialized);
}
+ String createObjectUrl(object) native '''
+ return (window.URL || window.webkitURL).createObjectURL(object)
+ ''';
+
+ void revokeObjectUrl(String objectUrl) native '''
+ (window.URL || window.webkitURL).revokeObjectURL(objectUrl)
+ ''';
$!MEMBERS
}
« no previous file with comments | « no previous file | lib/dom/templates/html/interface/interface_Window.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698