mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:27:35 +00:00
LibWeb: Add support for the options variant of {add,remove}EventListener
This also adds a variant of {add,remove}_event_listener called {add,remove}_event_listener_with_options. This is used internally to perform {add,remove}_event_listener with a default constructed options struct. It was done like this because default constructing the Variant with the options struct requires the struct defintions to be present, which requires us to include AbortSignal.h, which would cause a circular include as AbortSignal.h includes EventTarget.h.
This commit is contained in:
parent
0e6c7eea0f
commit
3479f1c4e8
6 changed files with 121 additions and 22 deletions
|
@ -108,6 +108,8 @@ class Text;
|
|||
class Timer;
|
||||
class Window;
|
||||
enum class QuirksMode;
|
||||
struct EventListenerOptions;
|
||||
struct AddEventListenerOptions;
|
||||
|
||||
template<typename ValueType>
|
||||
class ExceptionOr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue