mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:18:12 +00:00
LibWeb/HTML: Hook up WindowOrWorkerGlobalScopeMixin to Window
This prepares us to use the shared implementations from this class.
This commit is contained in:
parent
b2409517bd
commit
376fb9ae40
2 changed files with 8 additions and 1 deletions
|
@ -24,6 +24,7 @@
|
|||
#include <LibWeb/HTML/Plugin.h>
|
||||
#include <LibWeb/HTML/Scripting/ImportMap.h>
|
||||
#include <LibWeb/HTML/WindowEventHandlers.h>
|
||||
#include <LibWeb/HTML/WindowOrWorkerGlobalScope.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
|
@ -36,6 +37,7 @@ class Window final
|
|||
: public DOM::EventTarget
|
||||
, public HTML::GlobalEventHandlers
|
||||
, public HTML::WindowEventHandlers
|
||||
, public WindowOrWorkerGlobalScopeMixin
|
||||
, public Bindings::WindowGlobalMixin {
|
||||
WEB_PLATFORM_OBJECT(Window, DOM::EventTarget);
|
||||
|
||||
|
@ -44,8 +46,13 @@ public:
|
|||
|
||||
~Window();
|
||||
|
||||
// ^DOM::EventTarget
|
||||
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 const* page() const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue