mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:07:34 +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
|
@ -18,11 +18,11 @@
|
|||
#include <LibWeb/DOM/EventDispatcher.h>
|
||||
#include <LibWeb/DOM/ExceptionOr.h>
|
||||
#include <LibWeb/DOM/IDLEventListener.h>
|
||||
#include <LibWeb/DOM/Window.h>
|
||||
#include <LibWeb/HTML/CloseEvent.h>
|
||||
#include <LibWeb/HTML/EventHandler.h>
|
||||
#include <LibWeb/HTML/EventNames.h>
|
||||
#include <LibWeb/HTML/MessageEvent.h>
|
||||
#include <LibWeb/HTML/Window.h>
|
||||
#include <LibWeb/Origin.h>
|
||||
#include <LibWeb/WebSockets/WebSocket.h>
|
||||
|
||||
|
@ -67,7 +67,7 @@ DOM::ExceptionOr<NonnullRefPtr<WebSocket>> WebSocket::create_with_global_object(
|
|||
return WebSocket::create(window.impl(), url_record);
|
||||
}
|
||||
|
||||
WebSocket::WebSocket(DOM::Window& window, AK::URL& url)
|
||||
WebSocket::WebSocket(HTML::Window& window, AK::URL& url)
|
||||
: EventTarget()
|
||||
, m_window(window)
|
||||
{
|
||||
|
|
|
@ -59,7 +59,7 @@ public:
|
|||
|
||||
using WrapperType = Bindings::WebSocketWrapper;
|
||||
|
||||
static NonnullRefPtr<WebSocket> create(DOM::Window& window, AK::URL& url)
|
||||
static NonnullRefPtr<WebSocket> create(HTML::Window& window, AK::URL& url)
|
||||
{
|
||||
return adopt_ref(*new WebSocket(window, url));
|
||||
}
|
||||
|
@ -100,9 +100,9 @@ private:
|
|||
void on_error();
|
||||
void on_close(u16 code, String reason, bool was_clean);
|
||||
|
||||
explicit WebSocket(DOM::Window&, AK::URL&);
|
||||
explicit WebSocket(HTML::Window&, AK::URL&);
|
||||
|
||||
NonnullRefPtr<DOM::Window> m_window;
|
||||
NonnullRefPtr<HTML::Window> m_window;
|
||||
|
||||
AK::URL m_url;
|
||||
String m_binary_type { "blob" };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue