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

Unified Diff: lib/dom/src/dart2js_FactoryProviders.dart

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/scripts/systemhtml.py ('k') | lib/dom/templates/html/dart2js/factoryprovider_FormData.darttemplate » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dom/src/dart2js_FactoryProviders.dart
diff --git a/lib/dom/src/dart2js_FactoryProviders.dart b/lib/dom/src/dart2js_FactoryProviders.dart
index de90d8522b53ac343f075bab77332d7855ce7716..6f68f1b3b50d7efc8dd09fd0fea01c8c5573e2f0 100644
--- a/lib/dom/src/dart2js_FactoryProviders.dart
+++ b/lib/dom/src/dart2js_FactoryProviders.dart
@@ -10,6 +10,15 @@ class _AudioContextFactoryProvider {
''';
}
+class _FormDataFactoryProvider {
+
+ factory FormData([HTMLFormElement form = null]) native '''
+ if (form == null) return new FormData();
+ return new FormData(form);
+ ''';
+
+}
+
class _WebKitPointFactoryProvider {
factory WebKitPoint(num x, num y) native '''return new WebKitPoint(x, y);''';
« no previous file with comments | « lib/dom/scripts/systemhtml.py ('k') | lib/dom/templates/html/dart2js/factoryprovider_FormData.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698