summaryrefslogtreecommitdiff
path: root/Meta
diff options
context:
space:
mode:
authorKenneth Myhra <kennethmyhra@gmail.com>2023-02-03 21:50:05 +0100
committerLinus Groh <mail@linusgroh.de>2023-02-12 00:18:09 +0000
commitd5b5b94a3569036d93726f25b778ea8c8a6d1af2 (patch)
tree910b8385e430fd43eb7b923297b56dc4b3bb3a41 /Meta
parentb74d5a423deeb0a9e504f6f3dece6b3472152bc4 (diff)
downloadserenity-d5b5b94a3569036d93726f25b778ea8c8a6d1af2.zip
LibWeb: Introduce the FormData interface from the XHR specification
Diffstat (limited to 'Meta')
-rw-r--r--Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp b/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp
index 18b04deaa0..4fd30cc2f1 100644
--- a/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp
+++ b/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp
@@ -34,6 +34,7 @@ static bool is_platform_object(Type const& type)
"DocumentType"sv,
"EventTarget"sv,
"FileList"sv,
+ "FormData"sv,
"ImageData"sv,
"MutationRecord"sv,
"NamedNodeMap"sv,
@@ -133,6 +134,9 @@ CppType idl_type_name_to_cpp_type(Type const& type, Interface const& interface)
if (type.name() == "BufferSource")
return { .name = "JS::Handle<JS::Object>", .sequence_storage_type = SequenceStorageType::MarkedVector };
+ if (type.name() == "File")
+ return { .name = "JS::NonnullGCPtr<FileAPI::File>", .sequence_storage_type = SequenceStorageType::MarkedVector };
+
if (type.name() == "sequence") {
auto& parameterized_type = verify_cast<ParameterizedType>(type);
auto& sequence_type = parameterized_type.parameters().first();