Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(874)

Unified Diff: third_party/WebKit/Source/modules/mediasession/MediaMetadata.idl

Issue 2612003002: Media Session: use dictionary instead of an interface for MediaImage. (Closed)
Patch Set: rebase Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/mediasession/MediaMetadata.idl
diff --git a/third_party/WebKit/Source/modules/mediasession/MediaMetadata.idl b/third_party/WebKit/Source/modules/mediasession/MediaMetadata.idl
index 0955ea47836becaf4cdaafde80d894df11b609fb..bfca3c1392de074d00cfa2d3a4185d5acf179f44 100644
--- a/third_party/WebKit/Source/modules/mediasession/MediaMetadata.idl
+++ b/third_party/WebKit/Source/modules/mediasession/MediaMetadata.idl
@@ -5,12 +5,13 @@
// https://wicg.github.io/mediasession/#the-mediametadata-interface
[
- ConstructorCallWith=ExecutionContext,
+ ConstructorCallWith=ScriptState,
Constructor(optional MediaMetadataInit metadata),
+ RaisesException=Constructor,
RuntimeEnabled=MediaSession,
] interface MediaMetadata {
attribute DOMString title;
attribute DOMString artist;
attribute DOMString album;
- attribute FrozenArray<MediaImage> artwork;
+ [CallWith=ScriptState, RaisesException=Setter] attribute FrozenArray<MediaImage> artwork;
};

Powered by Google App Engine
This is Rietveld 408576698