diff options
Diffstat (limited to 'testing/web-platform/tests/interfaces/mediasession.idl')
-rw-r--r-- | testing/web-platform/tests/interfaces/mediasession.idl | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/testing/web-platform/tests/interfaces/mediasession.idl b/testing/web-platform/tests/interfaces/mediasession.idl index 8e9a21aff0..e6c8e46462 100644 --- a/testing/web-platform/tests/interfaces/mediasession.idl +++ b/testing/web-platform/tests/interfaces/mediasession.idl @@ -56,6 +56,7 @@ interface MediaMetadata { attribute DOMString artist; attribute DOMString album; attribute FrozenArray<MediaImage> artwork; + [SameObject] readonly attribute FrozenArray<ChapterInformation> chapterInfo; }; dictionary MediaMetadataInit { @@ -63,6 +64,20 @@ dictionary MediaMetadataInit { DOMString artist = ""; DOMString album = ""; sequence<MediaImage> artwork = []; + sequence<ChapterInformationInit> chapterInfo = []; +}; + +[Exposed=Window] +interface ChapterInformation { + readonly attribute DOMString title; + readonly attribute double startTime; + [SameObject] readonly attribute FrozenArray<MediaImage> artwork; +}; + +dictionary ChapterInformationInit { + DOMString title = ""; + double startTime = 0; + sequence<MediaImage> artwork = []; }; dictionary MediaImage { |