diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2022-08-11 17:46:13 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-08-14 11:30:40 +0200 |
commit | 5fbcda950b016e5286cccb0466273b5d6aad4fff (patch) | |
tree | 578ce4cf241daac046991e6a81e03ef7477f03e2 /Documentation/Browser | |
parent | 9075dea3a8c054dbc03d56ccecbfb2bd3fa54e5e (diff) | |
download | serenity-5fbcda950b016e5286cccb0466273b5d6aad4fff.zip |
Documentation: Add missing step when creating a new IDL type
If you use your new IDL class as a type in an IDL file without doing
this, you'll get confusing error messages.
Diffstat (limited to 'Documentation/Browser')
-rw-r--r-- | Documentation/Browser/AddNewIDLFile.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/Browser/AddNewIDLFile.md b/Documentation/Browser/AddNewIDLFile.md index e9951d4c36..1024e728c6 100644 --- a/Documentation/Browser/AddNewIDLFile.md +++ b/Documentation/Browser/AddNewIDLFile.md @@ -44,3 +44,6 @@ interface CSSRule { - Elements: [`LibWeb/Bindings/NodeWrapperFactory.cpp`](../../Userland/Libraries/LibWeb/Bindings/NodeWrapperFactory.cpp) Open the relevant wrapper factory file, and add `#include` directives and an `if` statement for your new type. + +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) + so that it can be accepted as an IDL parameter, attribute or return type. |