| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 // TODO(foolip): Remove LegacyInterfaceTypeChecking, which allows for | 35 // TODO(foolip): Remove LegacyInterfaceTypeChecking, which allows for |
| 36 // `append('name', null, 'filename')` and `set('name', null, 'filename')` to | 36 // `append('name', null, 'filename')` and `set('name', null, 'filename')` to |
| 37 // append/set null values instead of throwing. https://crbug.com/561338 | 37 // append/set null values instead of throwing. https://crbug.com/561338 |
| 38 [ | 38 [ |
| 39 Constructor(optional HTMLFormElement form), | 39 Constructor(optional HTMLFormElement form), |
| 40 Exposed=(Window,Worker), | 40 Exposed=(Window,Worker), |
| 41 LegacyInterfaceTypeChecking, | 41 LegacyInterfaceTypeChecking, |
| 42 ] interface FormData { | 42 ] interface FormData { |
| 43 void append(USVString name, USVString value); | 43 void append(USVString name, USVString value); |
| 44 [CallWith=ExecutionContext] void append(USVString name, Blob value, optional
USVString filename); | 44 [CallWith=ScriptState] void append(USVString name, Blob value, optional USVS
tring filename); |
| 45 [ImplementedAs=deleteEntry] void delete(USVString name); | 45 [ImplementedAs=deleteEntry] void delete(USVString name); |
| 46 FormDataEntryValue? get(USVString name); | 46 FormDataEntryValue? get(USVString name); |
| 47 sequence<FormDataEntryValue> getAll(USVString name); | 47 sequence<FormDataEntryValue> getAll(USVString name); |
| 48 boolean has(USVString name); | 48 boolean has(USVString name); |
| 49 void set(USVString name, USVString value); | 49 void set(USVString name, USVString value); |
| 50 void set(USVString name, Blob value, optional USVString filename); | 50 void set(USVString name, Blob value, optional USVString filename); |
| 51 iterable<USVString, FormDataEntryValue>; | 51 iterable<USVString, FormDataEntryValue>; |
| 52 }; | 52 }; |
| OLD | NEW |