Chromium Code Reviews| Index: Source/core/html/FormData.idl |
| diff --git a/Source/core/html/FormData.idl b/Source/core/html/FormData.idl |
| index c4b1c21a830fc9368675191e9ff4a9584887b4eb..1a939b28c23e4f9c99535c7dcf1325bec94e4d3c 100644 |
| --- a/Source/core/html/FormData.idl |
| +++ b/Source/core/html/FormData.idl |
| @@ -28,7 +28,10 @@ |
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| */ |
| -// https://dvcs.w3.org/hg/xhr/raw-file/tip/Overview.html#formdata |
| +// http://xhr.spec.whatwg.org/#interface-formdata |
| + |
| +// FIXME: Replace 'any' with union type, per spec. |
|
Jens Widell
2015/01/15 07:35:06
Does the current union support not handle this?
jsbell
2015/01/15 18:57:13
get() can... ah! It looks like we can return Vecto
Jens Widell
2015/01/15 19:20:25
Sweet. :-)
|
| +//typedef (File or USVString) FormDataEntryValue; |
| [ |
| Constructor(optional HTMLFormElement form), |
| @@ -36,6 +39,19 @@ |
| ImplementedAs=DOMFormData, |
| WillBeGarbageCollected, |
| ] interface FormData { |
| - void append(DOMString name, Blob value, optional DOMString filename); |
| - void append(DOMString name, DOMString value); |
| + void append(USVString name, Blob value, optional USVString filename); |
| + void append(USVString name, USVString value); |
| + [ImplementedAs=deleteEntry, RuntimeEnabled=FormDataNewMethods] void delete(USVString name); |
| + |
| + // FormDataEntryValue? get(USVString name); |
| + [CallWith=ScriptState, RuntimeEnabled=FormDataNewMethods] any get(USVString name); |
| + // sequence<FormDataEntryValue> getAll(USVString name); |
| + [CallWith=ScriptState, RuntimeEnabled=FormDataNewMethods] any[] getAll(USVString name); |
| + |
| + [ImplementedAs=hasEntry, RuntimeEnabled=FormDataNewMethods] boolean has(USVString name); |
| + [RuntimeEnabled=FormDataNewMethods] void set(USVString name, Blob value, optional USVString filename); |
| + [RuntimeEnabled=FormDataNewMethods] void set(USVString name, USVString value); |
| + |
| + // iterable<USVString, FormDataEntryValue>; |
| + [RuntimeEnabled=FormDataNewMethods] iterable<USVString, any>; |
| }; |