|
@@ -24,6 +24,7 @@
|
|
#include <LibWeb/HTML/Plugin.h>
|
|
#include <LibWeb/HTML/Plugin.h>
|
|
#include <LibWeb/HTML/Scripting/ImportMap.h>
|
|
#include <LibWeb/HTML/Scripting/ImportMap.h>
|
|
#include <LibWeb/HTML/WindowEventHandlers.h>
|
|
#include <LibWeb/HTML/WindowEventHandlers.h>
|
|
|
|
+#include <LibWeb/HTML/WindowOrWorkerGlobalScope.h>
|
|
|
|
|
|
namespace Web::HTML {
|
|
namespace Web::HTML {
|
|
|
|
|
|
@@ -36,6 +37,7 @@ class Window final
|
|
: public DOM::EventTarget
|
|
: public DOM::EventTarget
|
|
, public HTML::GlobalEventHandlers
|
|
, public HTML::GlobalEventHandlers
|
|
, public HTML::WindowEventHandlers
|
|
, public HTML::WindowEventHandlers
|
|
|
|
+ , public WindowOrWorkerGlobalScopeMixin
|
|
, public Bindings::WindowGlobalMixin {
|
|
, public Bindings::WindowGlobalMixin {
|
|
WEB_PLATFORM_OBJECT(Window, DOM::EventTarget);
|
|
WEB_PLATFORM_OBJECT(Window, DOM::EventTarget);
|
|
|
|
|
|
@@ -44,8 +46,13 @@ public:
|
|
|
|
|
|
~Window();
|
|
~Window();
|
|
|
|
|
|
|
|
+ // ^DOM::EventTarget
|
|
virtual bool dispatch_event(DOM::Event&) override;
|
|
virtual bool dispatch_event(DOM::Event&) override;
|
|
|
|
|
|
|
|
+ // ^WindowOrWorkerGlobalScopeMixin
|
|
|
|
+ virtual Bindings::PlatformObject& this_impl() override { return *this; }
|
|
|
|
+ virtual Bindings::PlatformObject const& this_impl() const override { return *this; }
|
|
|
|
+
|
|
Page* page();
|
|
Page* page();
|
|
Page const* page() const;
|
|
Page const* page() const;
|
|
|
|
|