mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:17:35 +00:00
LibWeb: Support TrackEvent instances with an AudioTrack track type
This commit is contained in:
parent
11af5119b6
commit
6520a9a849
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