1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:07:36 +00:00

LibWeb: Move Window from DOM directory & namespace to HTML

The Window object is part of the HTML spec. :^)
https://html.spec.whatwg.org/multipage/window-object.html
This commit is contained in:
Linus Groh 2022-03-07 23:08:26 +01:00
parent 2dfb617c5b
commit 1422bd45eb
63 changed files with 133 additions and 133 deletions

View file

@ -9,20 +9,20 @@
#include <AK/RefCountForwarder.h>
#include <LibGfx/Rect.h>
#include <LibWeb/Bindings/Wrappable.h>
#include <LibWeb/DOM/Window.h>
#include <LibWeb/Forward.h>
#include <LibWeb/HTML/Window.h>
namespace Web::CSS {
class Screen final
: public RefCountForwarder<DOM::Window>
: public RefCountForwarder<HTML::Window>
, public Bindings::Wrappable {
public:
using WrapperType = Bindings::ScreenWrapper;
using AllowOwnPtr = TrueType;
static NonnullOwnPtr<Screen> create(Badge<DOM::Window>, DOM::Window& window)
static NonnullOwnPtr<Screen> create(Badge<HTML::Window>, HTML::Window& window)
{
return adopt_own(*new Screen(window));
}
@ -35,9 +35,9 @@ public:
u32 pixel_depth() const { return 24; }
private:
explicit Screen(DOM::Window&);
explicit Screen(HTML::Window&);
DOM::Window const& window() const { return ref_count_target(); }
HTML::Window const& window() const { return ref_count_target(); }
Gfx::IntRect screen_rect() const;
};