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

LibWeb: Use "namespace Web::Foo {" since C++20 allows it :^)

Thanks @nico for teaching me about this!
This commit is contained in:
Andreas Kling 2020-07-21 16:23:08 +02:00
parent 4065182811
commit 685e006e27
15 changed files with 22 additions and 46 deletions

View file

@ -31,8 +31,7 @@
#include <LibJS/Runtime/GlobalObject.h>
#include <LibWeb/Forward.h>
namespace Web {
namespace Bindings {
namespace Web::Bindings {
class Wrappable {
public:
@ -56,4 +55,3 @@ inline Wrapper* wrap_impl(JS::GlobalObject& global_object, NativeObject& native_
}
}
}

View file

@ -31,8 +31,7 @@
#include <LibJS/Runtime/Object.h>
#include <LibWeb/Forward.h>
namespace Web {
namespace Bindings {
namespace Web::Bindings {
class Wrapper
: public JS::Object
@ -48,4 +47,3 @@ protected:
};
}
}

View file

@ -33,8 +33,7 @@
#include <LibWeb/Bindings/XMLHttpRequestWrapper.h>
#include <LibWeb/DOM/XMLHttpRequest.h>
namespace Web {
namespace Bindings {
namespace Web::Bindings {
XMLHttpRequestConstructor::XMLHttpRequestConstructor(JS::GlobalObject& global_object)
: NativeFunction(*global_object.function_prototype())
@ -69,4 +68,3 @@ JS::Value XMLHttpRequestConstructor::construct(JS::Interpreter& interpreter, Fun
}
}
}

View file

@ -28,8 +28,7 @@
#include <LibJS/Runtime/NativeFunction.h>
namespace Web {
namespace Bindings {
namespace Web::Bindings {
class XMLHttpRequestConstructor final : public JS::NativeFunction {
public:
@ -46,4 +45,3 @@ private:
};
}
}

View file

@ -32,8 +32,7 @@
#include <LibWeb/Bindings/XMLHttpRequestWrapper.h>
#include <LibWeb/DOM/XMLHttpRequest.h>
namespace Web {
namespace Bindings {
namespace Web::Bindings {
XMLHttpRequestPrototype::XMLHttpRequestPrototype(JS::GlobalObject& global_object)
: Object(*global_object.object_prototype())
@ -112,4 +111,3 @@ JS_DEFINE_NATIVE_GETTER(XMLHttpRequestPrototype::response_text_getter)
}
}
}

View file

@ -28,8 +28,7 @@
#include <LibJS/Runtime/Object.h>
namespace Web {
namespace Bindings {
namespace Web::Bindings {
class XMLHttpRequestPrototype final : public JS::Object {
JS_OBJECT(XMLHttpRequestPrototype, JS::Object);
@ -48,4 +47,3 @@ private:
};
}
}

View file

@ -32,8 +32,7 @@
#include <LibWeb/Bindings/XMLHttpRequestWrapper.h>
#include <LibWeb/DOM/XMLHttpRequest.h>
namespace Web {
namespace Bindings {
namespace Web::Bindings {
XMLHttpRequestWrapper* wrap(JS::GlobalObject& global_object, XMLHttpRequest& impl)
{
@ -61,4 +60,3 @@ const XMLHttpRequest& XMLHttpRequestWrapper::impl() const
}
}
}

View file

@ -28,8 +28,7 @@
#include <LibWeb/Bindings/EventTargetWrapper.h>
namespace Web {
namespace Bindings {
namespace Web::Bindings {
class XMLHttpRequestWrapper final : public EventTargetWrapper {
public:
@ -46,4 +45,3 @@ private:
XMLHttpRequestWrapper* wrap(JS::GlobalObject&, XMLHttpRequest&);
}
}