diff options
Diffstat (limited to 'Meta')
-rw-r--r-- | Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp | 4 |
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(); |