mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-06 09:36:08 +00:00
LibWeb: Support "useCapture" parameter to add/removeEventListener
This is not a complete implementation of API, since we're also supposed to accept an options dictionary as the third argument. However, a lot of web content uses the boolean variant, and it's trivial to support.
This commit is contained in:
parent
e76e8e22b5
commit
9521f71944
Notes:
sideshowbarker
2024-07-17 18:39:41 +09:00
Author: https://github.com/awesomekling
Commit: 9521f71944
3 changed files with 8 additions and 8 deletions
|
@ -30,8 +30,8 @@ public:
|
|||
|
||||
virtual bool is_focusable() const { return false; }
|
||||
|
||||
void add_event_listener(FlyString const& type, RefPtr<IDLEventListener> callback);
|
||||
void remove_event_listener(FlyString const& type, RefPtr<IDLEventListener> callback);
|
||||
void add_event_listener(FlyString const& type, RefPtr<IDLEventListener> callback, bool use_capture = false);
|
||||
void remove_event_listener(FlyString const& type, RefPtr<IDLEventListener> callback, bool use_capture = false);
|
||||
|
||||
virtual bool dispatch_event(NonnullRefPtr<Event>);
|
||||
ExceptionOr<bool> dispatch_event_binding(NonnullRefPtr<Event>);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue