summaryrefslogtreecommitdiff
path: root/Meta
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2023-03-05 15:42:58 +0000
committerLinus Groh <mail@linusgroh.de>2023-03-07 23:33:34 +0000
commitde83f5422d0ba08618f61d70c0b5b99e2abe9254 (patch)
treede4268388bdab29b9ed7870e39e3cffb30671f2c /Meta
parentcdc77407bf14b155c1dc77c26e0f8c8ef086c03d (diff)
downloadserenity-de83f5422d0ba08618f61d70c0b5b99e2abe9254.zip
LibWeb: Generate Window{Constructor,Prototype} from IDL
The Window object is massive, so let's do the conversion to IDL step by step. First up: getting rid of the manual constructor and prototype definitions, which can be generated from an empty `interface Window`.
Diffstat (limited to 'Meta')
-rw-r--r--Meta/Lagom/Tools/CodeGenerators/LibWeb/GenerateWindowOrWorkerInterfaces.cpp30
1 files changed, 0 insertions, 30 deletions
diff --git a/Meta/Lagom/Tools/CodeGenerators/LibWeb/GenerateWindowOrWorkerInterfaces.cpp b/Meta/Lagom/Tools/CodeGenerators/LibWeb/GenerateWindowOrWorkerInterfaces.cpp
index b7e760ec6c..72ec204d97 100644
--- a/Meta/Lagom/Tools/CodeGenerators/LibWeb/GenerateWindowOrWorkerInterfaces.cpp
+++ b/Meta/Lagom/Tools/CodeGenerators/LibWeb/GenerateWindowOrWorkerInterfaces.cpp
@@ -89,12 +89,6 @@ class @legacy_constructor_class@;)~~~");
add_interface(gen, interface.prototype_class, interface.constructor_class, lookup_legacy_constructor(interface));
}
- // FIXME: Special case window. We should convert Window to use IDL.
- {
- auto gen = generator.fork();
- add_interface(gen, "WindowPrototype"sv, "WindowConstructor"sv, {});
- }
-
// FIXME: Special case WebAssembly. We should convert WASM to use IDL.
{
auto gen = generator.fork();
@@ -142,11 +136,6 @@ static ErrorOr<void> generate_intrinsic_definitions(StringView output_path, Vect
}
}
- // FIXME: Special case window. We should convert Window to use IDL.
- generator.append(R"~~~(
-#include <LibWeb/Bindings/WindowConstructor.h>
-#include <LibWeb/Bindings/WindowPrototype.h>)~~~");
-
// FIXME: Special case WebAssembly. We should convert WASM to use IDL.
generator.append(R"~~~(
#include <LibWeb/WebAssembly/WebAssemblyMemoryConstructor.h>
@@ -204,12 +193,6 @@ void Intrinsics::create_web_prototype_and_constructor<@prototype_class@>(JS::Rea
add_interface(gen, interface.name, interface.prototype_class, interface.constructor_class, lookup_legacy_constructor(interface));
}
- // FIXME: Special case window. We should convert Window to use IDL
- {
- auto gen = generator.fork();
- add_interface(gen, "Window"sv, "WindowPrototype"sv, "WindowConstructor"sv, {});
- }
-
// FIXME: Special case WebAssembly. We should convert WASM to use IDL.
{
auto gen = generator.fork();
@@ -285,13 +268,6 @@ static ErrorOr<void> generate_exposed_interface_implementation(StringView class_
}
}
- // FIXME: Special case window. We should convert Window to use IDL
- if (class_name == "Window"sv) {
- generator.append(R"~~~(#include <LibWeb/Bindings/WindowConstructor.h>
-#include <LibWeb/Bindings/WindowPrototype.h>
-)~~~");
- }
-
generator.append(R"~~~(
namespace Web::Bindings {
@@ -319,12 +295,6 @@ void add_@global_object_snake_name@_exposed_interfaces(JS::Object& global)
add_interface(gen, interface.name, interface.prototype_class, lookup_legacy_constructor(interface));
}
- // FIXME: Special case window. We should convert Window to use IDL
- if (class_name == "Window"sv) {
- auto gen = generator.fork();
- add_interface(gen, "Window"sv, "WindowPrototype"sv, {});
- }
-
generator.append(R"~~~(
}