mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-10 19:46:03 +00:00
LibWeb: Support TrackEvent instances with an AudioTrack track type
This commit is contained in:
parent
11af5119b6
commit
6520a9a849
Notes:
sideshowbarker
2024-07-17 05:58:46 +09:00
Author: https://github.com/trflynn89
Commit: 6520a9a849
Pull-request: https://github.com/SerenityOS/serenity/pull/19397
5 changed files with 33 additions and 16 deletions
|
@ -1,4 +1,5 @@
|
|||
#import <DOM/Event.idl>
|
||||
#import <HTML/AudioTrack.idl>
|
||||
#import <HTML/VideoTrack.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/media.html#trackevent
|
||||
|
@ -7,10 +8,10 @@ interface TrackEvent : Event {
|
|||
constructor(DOMString type, optional TrackEventInit eventInitDict = {});
|
||||
|
||||
// FIXME: Should be: (VideoTrack or AudioTrack or TextTrack)?
|
||||
readonly attribute VideoTrack? track;
|
||||
readonly attribute (VideoTrack or AudioTrack)? track;
|
||||
};
|
||||
|
||||
dictionary TrackEventInit : EventInit {
|
||||
// FIXME: Should be: (VideoTrack or AudioTrack or TextTrack)?
|
||||
VideoTrack? track = null;
|
||||
(VideoTrack or AudioTrack)? track = null;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue