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

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

Issue 2584703002: Media Session API: make MediaMetadata mutable. (Closed)
Patch Set: review comments and tests Created 4 years 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/MediaSession.h
diff --git a/third_party/WebKit/Source/modules/mediasession/MediaSession.h b/third_party/WebKit/Source/modules/mediasession/MediaSession.h
index bf7fb750d1d5ba3d746a7357a2dda86187d3dfb0..ff56a486df88dd6819331966cca2526f70aeee14 100644
--- a/third_party/WebKit/Source/modules/mediasession/MediaSession.h
+++ b/third_party/WebKit/Source/modules/mediasession/MediaSession.h
@@ -39,6 +39,10 @@ class MODULES_EXPORT MediaSession final
const WTF::AtomicString& interfaceName() const override;
ExecutionContext* getExecutionContext() const override;
+ // Called by the MediaMetadata owned by |this| when it has updates. Also used
+ // internally when a new MediaMetadata object is set.
+ void onMetadataChanged();
+
DEFINE_ATTRIBUTE_EVENT_LISTENER(play);
DEFINE_ATTRIBUTE_EVENT_LISTENER(pause);
DEFINE_ATTRIBUTE_EVENT_LISTENER(playpause);

Powered by Google App Engine
This is Rietveld 408576698