mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:48:11 +00:00
LibWeb: Add XHREventTarget and have XHR inherit from it
This commit is contained in:
parent
4f2e154dbe
commit
0a1226344a
7 changed files with 66 additions and 4 deletions
|
@ -32,14 +32,14 @@
|
|||
#include <AK/Weakable.h>
|
||||
#include <LibWeb/Bindings/Wrappable.h>
|
||||
#include <LibWeb/DOM/EventTarget.h>
|
||||
#include <LibWeb/XHR/XMLHttpRequestEventTarget.h>
|
||||
|
||||
namespace Web::XHR {
|
||||
|
||||
class XMLHttpRequest final
|
||||
: public RefCounted<XMLHttpRequest>
|
||||
, public Weakable<XMLHttpRequest>
|
||||
, public DOM::EventTarget
|
||||
, public Bindings::Wrappable {
|
||||
, public XMLHttpRequestEventTarget {
|
||||
public:
|
||||
enum class ReadyState : u16 {
|
||||
Unsent = 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue