mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:07:35 +00:00
LibWeb: Implement WindowEventHandlers
This commit is contained in:
parent
ebf2184636
commit
3fe66bddf4
15 changed files with 186 additions and 9 deletions
|
@ -21,6 +21,7 @@
|
|||
#include <LibWeb/HTML/AnimationFrameCallbackDriver.h>
|
||||
#include <LibWeb/HTML/BrowsingContext.h>
|
||||
#include <LibWeb/HTML/GlobalEventHandlers.h>
|
||||
#include <LibWeb/HTML/WindowEventHandlers.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
|
@ -30,7 +31,8 @@ class Window final
|
|||
: public RefCounted<Window>
|
||||
, public Weakable<Window>
|
||||
, public DOM::EventTarget
|
||||
, public HTML::GlobalEventHandlers {
|
||||
, public HTML::GlobalEventHandlers
|
||||
, public HTML::WindowEventHandlers {
|
||||
public:
|
||||
static NonnullRefPtr<Window> create_with_document(DOM::Document&);
|
||||
~Window();
|
||||
|
@ -130,6 +132,9 @@ private:
|
|||
// ^HTML::GlobalEventHandlers
|
||||
virtual DOM::EventTarget& global_event_handlers_to_event_target(FlyString const&) override { return *this; }
|
||||
|
||||
// ^HTML::WindowEventHandlers
|
||||
virtual DOM::EventTarget& window_event_handlers_to_event_target() override { return *this; }
|
||||
|
||||
enum class Repeat {
|
||||
Yes,
|
||||
No,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue