LibWeb: Add MediaSourceExtensions events

Continuing the boilerplate for these interfaces.
This commit is contained in:
Shannon Booth 2024-11-18 12:13:48 +13:00 committed by Luke Wilde
commit 66530086a4
Notes: github-actions[bot] 2024-11-18 10:59:22 +00:00
19 changed files with 280 additions and 13 deletions

View file

@ -15,6 +15,13 @@ class SourceBufferList : public DOM::EventTarget {
WEB_PLATFORM_OBJECT(SourceBufferList, DOM::EventTarget);
GC_DECLARE_ALLOCATOR(SourceBufferList);
public:
void set_onaddsourcebuffer(GC::Ptr<WebIDL::CallbackType>);
GC::Ptr<WebIDL::CallbackType> onaddsourcebuffer();
void set_onremovesourcebuffer(GC::Ptr<WebIDL::CallbackType>);
GC::Ptr<WebIDL::CallbackType> onremovesourcebuffer();
private:
SourceBufferList(JS::Realm&);