mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 22:17:44 +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:
parent
2dfb617c5b
commit
1422bd45eb
63 changed files with 133 additions and 133 deletions
|
@ -8,12 +8,12 @@
|
|||
|
||||
#include <AK/RefPtr.h>
|
||||
#include <LibWeb/DOM/Event.h>
|
||||
#include <LibWeb/DOM/Window.h>
|
||||
#include <LibWeb/HTML/Window.h>
|
||||
|
||||
namespace Web::UIEvents {
|
||||
|
||||
struct UIEventInit : public DOM::EventInit {
|
||||
RefPtr<DOM::Window> view { nullptr };
|
||||
RefPtr<HTML::Window> view { nullptr };
|
||||
int detail { 0 };
|
||||
};
|
||||
|
||||
|
@ -33,10 +33,10 @@ public:
|
|||
|
||||
virtual ~UIEvent() override { }
|
||||
|
||||
DOM::Window const* view() const { return m_view; }
|
||||
HTML::Window const* view() const { return m_view; }
|
||||
int detail() const { return m_detail; }
|
||||
|
||||
void init_ui_event(String const& type, bool bubbles, bool cancelable, DOM::Window* view, int detail)
|
||||
void init_ui_event(String const& type, bool bubbles, bool cancelable, HTML::Window* view, int detail)
|
||||
{
|
||||
init_event(type, bubbles, cancelable);
|
||||
m_view = view;
|
||||
|
@ -55,7 +55,7 @@ protected:
|
|||
{
|
||||
}
|
||||
|
||||
RefPtr<DOM::Window> m_view;
|
||||
RefPtr<HTML::Window> m_view;
|
||||
int m_detail { 0 };
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue