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

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

Issue 2583463002: [MediaSession] Add playbackState attribute to Blink MediaSession and use it to determine playback s… (Closed)
Patch Set: browser 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.idl
diff --git a/third_party/WebKit/Source/modules/mediasession/MediaSession.idl b/third_party/WebKit/Source/modules/mediasession/MediaSession.idl
index aacbeb4223e8f06a81ac835e35147b81c666e9f2..b9f27079c28cca18716cfe7a5caf765e702ada81 100644
--- a/third_party/WebKit/Source/modules/mediasession/MediaSession.idl
+++ b/third_party/WebKit/Source/modules/mediasession/MediaSession.idl
@@ -4,11 +4,19 @@
// https://wicg.github.io/mediasession/#the-mediasession-interface
mlamouri (slow - plz ping) 2016/12/16 15:49:14 Can you put this above the actual interface and a
Zhiqiang Zhang (Slow) 2016/12/16 18:26:15 Done.
+enum MediaSessionPlaybackState {
+ "none",
+ "paused",
+ "playing"
+};
+
[
RuntimeEnabled=MediaSession,
] interface MediaSession : EventTarget {
attribute MediaMetadata? metadata;
+ attribute MediaSessionPlaybackState playbackState;
+
attribute EventHandler onplay;
attribute EventHandler onpause;
attribute EventHandler onplaypause;

Powered by Google App Engine
This is Rietveld 408576698