1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-25 19:25:07 +00:00

LibWeb: Move MouseEvent into the UIEvents namespace

Named after the UIEvents specification that houses MouseEvent.
This commit is contained in:
Andreas Kling 2020-07-28 17:21:23 +02:00
parent c99a3efc5b
commit 8b55d3d86e
7 changed files with 17 additions and 16 deletions

View file

@ -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")