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

Unified Diff: third_party/WebKit/public/platform/WebMediaPlayerClient.h

Issue 2681863005: [Video] MediaSession API event handlers can resume background video. (Closed)
Patch Set: Tweaked the logic in HTMLME a bit Created 3 years, 10 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/public/platform/WebMediaPlayerClient.h
diff --git a/third_party/WebKit/public/platform/WebMediaPlayerClient.h b/third_party/WebKit/public/platform/WebMediaPlayerClient.h
index 192c94607fc8ff07e093885ee93a49e78f050eeb..6679734ec678a98bdf1ed1fc8fc1f31e74d6582b 100644
--- a/third_party/WebKit/public/platform/WebMediaPlayerClient.h
+++ b/third_party/WebKit/public/platform/WebMediaPlayerClient.h
@@ -94,6 +94,8 @@ class BLINK_PLATFORM_EXPORT WebMediaPlayerClient {
virtual void disconnectedFromRemoteDevice() = 0;
virtual void cancelledRemotePlaybackRequest() = 0;
virtual void remotePlaybackStarted() = 0;
+ virtual void wasPausedWhenBackgrounded() = 0;
+ virtual void wasResumedWhenForegrounded() = 0;
// After the monitoring is activated, the client will inform WebMediaPlayer
// when the element becomes/stops being the dominant visible content by
@@ -112,6 +114,9 @@ class BLINK_PLATFORM_EXPORT WebMediaPlayerClient {
// Returns the selected video track id (or an empty id if there's none).
virtual WebMediaPlayer::TrackId getSelectedVideoTrackId() = 0;
+ // Returns if the background video playback was unlocked by user gesture.
+ virtual bool isBackgroundVideoPlaybackUnlocked() = 0;
+
protected:
~WebMediaPlayerClient() {}
};

Powered by Google App Engine
This is Rietveld 408576698