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

Unified Diff: core/html/FormData.idl

Issue 1660113002: Updated to Chrome 45 (2454) moved from SVN to git. Base URL: https://github.com/dart-lang/webcore.git@roll_45
Patch Set: Created 4 years, 11 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 | « core/frame/WindowTimers.idl ('k') | core/html/HTMLAllCollection.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/html/FormData.idl
diff --git a/core/html/FormData.idl b/core/html/FormData.idl
index bab02fce4da8f3c27b36e402ca45a37079ac3130..dccbd43de03f2eca2feeff50b9b4c2493fe2bac0 100644
--- a/core/html/FormData.idl
+++ b/core/html/FormData.idl
@@ -28,14 +28,29 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-// https://dvcs.w3.org/hg/xhr/raw-file/tip/Overview.html#formdata
+// https://xhr.spec.whatwg.org/#interface-formdata
+
+// TODO(philipj): The FormDataEntryValue typedef should use Blob, not File.
+typedef (File or USVString) FormDataEntryValue;
[
Constructor(optional HTMLFormElement form),
Exposed=(Window,Worker),
+ GarbageCollected,
ImplementedAs=DOMFormData,
- WillBeGarbageCollected,
] interface FormData {
- [DartCustom] void append(DOMString name, Blob value, optional DOMString filename);
- [DartCustom] void append(DOMString name, DOMString value);
+ // TODO(philipj): The value argument should be FormDataEntryValue and there
+ // should be no optional filename argument. crbug.com/498790
+ [CallWith=ExecutionContext] void append(USVString name, Blob value, optional USVString filename);
+ void append(USVString name, USVString value);
+
+ [RuntimeEnabled=FormDataNewMethods, ImplementedAs=deleteEntry] void delete(USVString name);
+ [RuntimeEnabled=FormDataNewMethods] FormDataEntryValue? get(USVString name);
+ [RuntimeEnabled=FormDataNewMethods] sequence<FormDataEntryValue> getAll(USVString name);
+ [RuntimeEnabled=FormDataNewMethods, ImplementedAs=hasEntry] boolean has(USVString name);
+ // TODO(philipj): The value argument should be FormDataEntryValue and there
+ // should be no optional filename argument.
+ [RuntimeEnabled=FormDataNewMethods] void set(USVString name, Blob value, optional USVString filename);
+ [RuntimeEnabled=FormDataNewMethods] void set(USVString name, USVString value);
+ [RuntimeEnabled=FormDataNewMethods] iterable<USVString, FormDataEntryValue>;
};
« no previous file with comments | « core/frame/WindowTimers.idl ('k') | core/html/HTMLAllCollection.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698