diff options
author | Linus Groh <mail@linusgroh.de> | 2022-09-21 18:22:16 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-09-21 23:06:08 +0100 |
commit | edfef8e2f5e27be597642c0d6310521b96ee237d (patch) | |
tree | c73bf7b8cac07bf564c70b7b9eaad7108ff18fb1 /Documentation/Browser/AddNewIDLFile.md | |
parent | 4270ede7c45ca276eae106f0c581c8908ef51fa7 (diff) | |
download | serenity-edfef8e2f5e27be597642c0d6310521b96ee237d.zip |
Everywhere: Rename WrapperGenerator to BindingsGenerator
This code generator no longer creates JS wrappers for platform objects
in the old sense, instead they're JS objects internally themselves.
Most of what we generate now are prototypes - which can be seen as
bindings for the internal C++ methods implementing getters, setters, and
methods - as well as object constructors, i.e. bindings for the internal
create_with_global_object() method.
Also tweak the naming of various CMake glue code existing around this.
Diffstat (limited to 'Documentation/Browser/AddNewIDLFile.md')
-rw-r--r-- | Documentation/Browser/AddNewIDLFile.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/Browser/AddNewIDLFile.md b/Documentation/Browser/AddNewIDLFile.md index 7a59a34500..7f9609d5d8 100644 --- a/Documentation/Browser/AddNewIDLFile.md +++ b/Documentation/Browser/AddNewIDLFile.md @@ -28,7 +28,7 @@ interface CSSRule { - `#include <LibWeb/Bindings/HTMLDetailsElementPrototype.h>` to the includes list. - `ADD_WINDOW_OBJECT_INTERFACE(HTMLDetailsElement) \` to the macro at the bottom. -4. Add a `libweb_js_wrapper(HTML/HTMLDetailsElement)` call to [`LibWeb/idl_files.cmake`](../../Userland/Libraries/LibWeb/idl_files.cmake) +4. Add a `libweb_js_bindings(HTML/HTMLDetailsElement)` call to [`LibWeb/idl_files.cmake`](../../Userland/Libraries/LibWeb/idl_files.cmake) 5. Forward declare the generated classes in [`LibWeb/Forward.h`](../../Userland/Libraries/LibWeb/Forward.h): - `HTMLDetailsElement` in its namespace. @@ -38,5 +38,5 @@ interface CSSRule { - It must inherit from `public RefCounted<HTMLDetailsElement>` and `public Bindings::Wrappable` - It must have a public `using WrapperType = Bindings::HTMLDetailsElementWrapper;` -8. If your type isn't an Event or Element, you will need to add it to [`is_wrappable_type()`](../../Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator/IDLGenerators.cpp) +8. If your type isn't an Event or Element, you will need to add it to [`is_wrappable_type()`](../../Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp) so that it can be accepted as an IDL parameter, attribute or return type. |