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

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

Issue 10908005: Reapply revision 11570, custom callbacks are now implemented in dartium. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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 | « lib/dom/src/dart2js_FactoryProviders.dart ('k') | lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dom/templates/html/dart2js/factoryprovider_FormData.darttemplate
diff --git a/lib/dom/templates/dom/dart2js/factoryprovider_HTMLAudioElement.darttemplate b/lib/dom/templates/html/dart2js/factoryprovider_FormData.darttemplate
similarity index 63%
copy from lib/dom/templates/dom/dart2js/factoryprovider_HTMLAudioElement.darttemplate
copy to lib/dom/templates/html/dart2js/factoryprovider_FormData.darttemplate
index c6288fe9b813cabd7150368a56707200ad8c623e..33d5cbf1bcece4c1843936936cbed723b11bc54e 100644
--- a/lib/dom/templates/dom/dart2js/factoryprovider_HTMLAudioElement.darttemplate
+++ b/lib/dom/templates/html/dart2js/factoryprovider_FormData.darttemplate
@@ -3,9 +3,8 @@
// BSD-style license that can be found in the LICENSE file.
class $FACTORYPROVIDER {
- factory HTMLAudioElement([String src = null]) native
-'''
-if (src == null) return new Audio();
-return new Audio(src);
-''';
+ factory FormData([FormElement form = null]) native '''
+ if (form == null) return new FormData();
+ return new FormData(form);
+ ''';
}
« no previous file with comments | « lib/dom/src/dart2js_FactoryProviders.dart ('k') | lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698