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

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

Issue 2013813002: Implement MediaMetadata artwork in Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed tests Created 4 years, 7 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.h
diff --git a/third_party/WebKit/Source/modules/mediasession/MediaMetadata.h b/third_party/WebKit/Source/modules/mediasession/MediaMetadata.h
index dcdc2c106f21b1e07834d6416d7de654c23c22a1..af70d0a698ededc8b2f23f6ed66e47cb373d369e 100644
--- a/third_party/WebKit/Source/modules/mediasession/MediaMetadata.h
+++ b/third_party/WebKit/Source/modules/mediasession/MediaMetadata.h
@@ -12,6 +12,8 @@
namespace blink {
+class ExecutionContext;
+class MediaArtwork;
class MediaMetadataInit;
// Implementation of MediaMetadata interface from the Media Session API.
@@ -20,20 +22,22 @@ class MODULES_EXPORT MediaMetadata final
, public ScriptWrappable {
DEFINE_WRAPPERTYPEINFO();
public:
- static MediaMetadata* create(const MediaMetadataInit&);
+ static MediaMetadata* create(ExecutionContext*, const MediaMetadataInit&);
String title() const;
String artist() const;
String album() const;
+ HeapVector<Member<MediaArtwork>> artworks() const;
WebMediaMetadata* data() { return &m_data; }
DEFINE_INLINE_TRACE() { }
private:
- MediaMetadata(const MediaMetadataInit&);
+ MediaMetadata(ExecutionContext*, const MediaMetadataInit&);
WebMediaMetadata m_data;
+ HeapVector<Member<MediaArtwork>> m_artworks;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698