mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 09:09:43 +00:00
LibWeb: Add MediaSourceExtensions events
Continuing the boilerplate for these interfaces.
This commit is contained in:
parent
ff791a63fc
commit
66530086a4
Notes:
github-actions[bot]
2024-11-18 10:59:22 +00:00
Author: https://github.com/shannonbooth
Commit: 66530086a4
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2415
Reviewed-by: https://github.com/Lubrsi ✅
19 changed files with 280 additions and 13 deletions
|
@ -21,6 +21,15 @@ public:
|
|||
// https://w3c.github.io/media-source/#dom-mediasource-canconstructindedicatedworker
|
||||
static bool can_construct_in_dedicated_worker(JS::VM&) { return true; }
|
||||
|
||||
void set_onsourceopen(GC::Ptr<WebIDL::CallbackType>);
|
||||
GC::Ptr<WebIDL::CallbackType> onsourceopen();
|
||||
|
||||
void set_onsourceended(GC::Ptr<WebIDL::CallbackType>);
|
||||
GC::Ptr<WebIDL::CallbackType> onsourceended();
|
||||
|
||||
void set_onsourceclose(GC::Ptr<WebIDL::CallbackType>);
|
||||
GC::Ptr<WebIDL::CallbackType> onsourceclose();
|
||||
|
||||
protected:
|
||||
MediaSource(JS::Realm&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue