Index: lib/html/dart2js/html_dart2js.dart |
=================================================================== |
--- lib/html/dart2js/html_dart2js.dart (revision 11534) |
+++ lib/html/dart2js/html_dart2js.dart (working copy) |
@@ -4352,11 +4352,6 @@ |
final _DirectoryEntrySyncImpl root; |
} |
-class _DOMFormDataImpl implements DOMFormData native "*DOMFormData" { |
- |
- void append(String name, String value, String filename) native; |
-} |
- |
class _DOMImplementationImpl implements DOMImplementation native "*DOMImplementation" { |
_CSSStyleSheetImpl createCSSStyleSheet(String title, String media) native; |
@@ -7370,6 +7365,11 @@ |
String size; |
} |
+class _FormDataImpl implements FormData native "*DOMFormData" { |
+ |
+ void append(String name, String value, String filename) native; |
+} |
+ |
class _FormElementImpl extends _ElementImpl implements FormElement native "*HTMLFormElement" { |
String acceptCharset; |
@@ -18126,6 +18126,11 @@ |
return _e; |
} |
+ factory FormElement() { |
+ _FormElementImpl _e = _document.$dom_createElement("form"); |
+ return _e; |
+ } |
+ |
factory HRElement() { |
_HRElementImpl _e = _document.$dom_createElement("hr"); |
return _e; |
@@ -18368,6 +18373,16 @@ |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
+class _FormDataFactoryProvider { |
+ factory FormData([FormElement form = null]) native ''' |
+ if (form == null) return new FormData(); |
+ return new FormData(form); |
+ '''; |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
class _HttpRequestFactoryProvider { |
factory HttpRequest() native 'return new XMLHttpRequest();'; |
@@ -22817,18 +22832,6 @@ |
// WARNING: Do not edit - generated code. |
-/// @domName DOMFormData |
-interface DOMFormData { |
- |
- /** @domName DOMFormData.append */ |
- void append(String name, String value, String filename); |
-} |
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
-// for details. All rights reserved. Use of this source code is governed by a |
-// BSD-style license that can be found in the LICENSE file. |
- |
-// WARNING: Do not edit - generated code. |
- |
/// @domName DOMImplementation |
interface DOMImplementation { |
@@ -25171,9 +25174,25 @@ |
// WARNING: Do not edit - generated code. |
+/// @domName DOMFormData |
+interface FormData default _FormDataFactoryProvider { |
+ |
+ FormData([FormElement form]); |
+ |
+ /** @domName DOMFormData.append */ |
+ void append(String name, String value, String filename); |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+// WARNING: Do not edit - generated code. |
+ |
/// @domName HTMLFormElement |
-interface FormElement extends Element { |
+interface FormElement extends Element default _Elements { |
+ FormElement(); |
+ |
/** @domName HTMLFormElement.acceptCharset */ |
String acceptCharset; |