mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-09 02:56:10 +00:00
IDLGenerators: Add a callback for when a setlike's set is modified
For simplicity, this requires that the setlike Foo class has a `void on_set_modified_from_js(Badge<Bindings::FooPrototype>)` method. This will be called after the set is modified from a generated `add()`, `delete()`, or `clear()` method.
This commit is contained in:
parent
be21d952b1
commit
bc94431b99
Notes:
github-actions[bot]
2025-07-04 17:12:01 +00:00
Author: https://github.com/AtkinsSJ
Commit: bc94431b99
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5302
Reviewed-by: https://github.com/tcl3 ✅
2 changed files with 7 additions and 1 deletions
|
@ -45,6 +45,8 @@ public:
|
|||
|
||||
void resolve_ready_promise();
|
||||
|
||||
void on_set_modified_from_js(Badge<Bindings::FontFaceSetPrototype>) { }
|
||||
|
||||
private:
|
||||
FontFaceSet(JS::Realm&, GC::Ref<WebIDL::Promise> ready_promise, GC::Ref<JS::Set> set_entries);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue