diff options
author | Andreas Kling <kling@serenityos.org> | 2020-07-28 17:21:23 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-07-28 18:55:47 +0200 |
commit | 8b55d3d86eb304389fa2557525d13aa4538d81c9 (patch) | |
tree | f54a6ff13945517d389c555ce5a32a079d20124d /Libraries/LibWeb/CodeGenerators | |
parent | c99a3efc5bacbcd38a0da0ed25df53bfe9a4a7bc (diff) | |
download | serenity-8b55d3d86eb304389fa2557525d13aa4538d81c9.zip |
LibWeb: Move MouseEvent into the UIEvents namespace
Named after the UIEvents specification that houses MouseEvent.
Diffstat (limited to 'Libraries/LibWeb/CodeGenerators')
-rw-r--r-- | Libraries/LibWeb/CodeGenerators/WrapperGenerator.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Libraries/LibWeb/CodeGenerators/WrapperGenerator.cpp b/Libraries/LibWeb/CodeGenerators/WrapperGenerator.cpp index 4d2375c0f6..9595f282b2 100644 --- a/Libraries/LibWeb/CodeGenerators/WrapperGenerator.cpp +++ b/Libraries/LibWeb/CodeGenerators/WrapperGenerator.cpp @@ -325,7 +325,7 @@ int main(int argc, char** argv) return 1; } - if (namespace_ == "DOM") { + if (namespace_ == "DOM" || namespace_ == "UIEvents") { StringBuilder builder; builder.append(namespace_); builder.append("::"); @@ -411,8 +411,10 @@ static void generate_header(const IDL::Interface& interface) // FIXME: This is very strange. out() << "#if __has_include(<LibWeb/DOM/" << interface.name << ".h>)"; out() << "#include <LibWeb/DOM/" << interface.name << ".h>"; - out() << "#else"; + out() << "#elif __has_include(<LibWeb/HTML/" << interface.name << ".h>)"; out() << "#include <LibWeb/HTML/" << interface.name << ".h>"; + out() << "#elif __has_include(<LibWeb/UIEvents/" << interface.name << ".h>)"; + out() << "#include <LibWeb/UIEvents/" << interface.name << ".h>"; out() << "#endif"; if (wrapper_base_class != "Wrapper") |