mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 07:47: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
|
@ -22,10 +22,10 @@
|
|||
#include <LibWeb/DOM/EventDispatcher.h>
|
||||
#include <LibWeb/DOM/ExceptionOr.h>
|
||||
#include <LibWeb/DOM/IDLEventListener.h>
|
||||
#include <LibWeb/DOM/Window.h>
|
||||
#include <LibWeb/Fetch/AbstractOperations.h>
|
||||
#include <LibWeb/HTML/EventHandler.h>
|
||||
#include <LibWeb/HTML/EventNames.h>
|
||||
#include <LibWeb/HTML/Window.h>
|
||||
#include <LibWeb/Loader/ResourceLoader.h>
|
||||
#include <LibWeb/Origin.h>
|
||||
#include <LibWeb/Page/Page.h>
|
||||
|
@ -35,7 +35,7 @@
|
|||
|
||||
namespace Web::XHR {
|
||||
|
||||
XMLHttpRequest::XMLHttpRequest(DOM::Window& window)
|
||||
XMLHttpRequest::XMLHttpRequest(HTML::Window& window)
|
||||
: XMLHttpRequestEventTarget()
|
||||
, m_window(window)
|
||||
, m_response_type(Bindings::XMLHttpRequestResponseType::Empty)
|
||||
|
|
|
@ -34,7 +34,7 @@ public:
|
|||
|
||||
using WrapperType = Bindings::XMLHttpRequestWrapper;
|
||||
|
||||
static NonnullRefPtr<XMLHttpRequest> create(DOM::Window& window)
|
||||
static NonnullRefPtr<XMLHttpRequest> create(HTML::Window& window)
|
||||
{
|
||||
return adopt_ref(*new XMLHttpRequest(window));
|
||||
}
|
||||
|
@ -86,9 +86,9 @@ private:
|
|||
Optional<Vector<String>> get_decode_and_split(String const& header_name, HashMap<String, String, CaseInsensitiveStringTraits> const& header_list) const;
|
||||
Optional<MimeSniff::MimeType> extract_mime_type(HashMap<String, String, CaseInsensitiveStringTraits> const& header_list) const;
|
||||
|
||||
explicit XMLHttpRequest(DOM::Window&);
|
||||
explicit XMLHttpRequest(HTML::Window&);
|
||||
|
||||
NonnullRefPtr<DOM::Window> m_window;
|
||||
NonnullRefPtr<HTML::Window> m_window;
|
||||
|
||||
ReadyState m_ready_state { ReadyState::Unsent };
|
||||
unsigned m_status { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue