mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 11:57:34 +00:00
LibWeb: Support nullable EventListener parameters in WrapperGenerator
The internal C++ function will now receive a RefPtr<EventListener> for 'EventListener?' and a NonnullRefPtr<EventListener> for 'EventListener'. Examples of this are addEventListener() and removeEventListener(), which both have nullable callback parameters.
This commit is contained in:
parent
2172e51246
commit
9d2635d94b
3 changed files with 29 additions and 7 deletions
|
@ -45,8 +45,8 @@ public:
|
|||
void ref() { ref_event_target(); }
|
||||
void unref() { unref_event_target(); }
|
||||
|
||||
void add_event_listener(const FlyString& event_name, NonnullRefPtr<EventListener>);
|
||||
void remove_event_listener(const FlyString& event_name, NonnullRefPtr<EventListener>);
|
||||
void add_event_listener(const FlyString& event_name, RefPtr<EventListener>);
|
||||
void remove_event_listener(const FlyString& event_name, RefPtr<EventListener>);
|
||||
|
||||
void remove_from_event_listener_list(NonnullRefPtr<EventListener>);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue