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

Unified Diff: media/blink/webmediaplayer_delegate.h

Issue 2693203002: Provide a WebContents API to discover the playback of a fullscreen video. (Closed)
Patch Set: 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: media/blink/webmediaplayer_delegate.h
diff --git a/media/blink/webmediaplayer_delegate.h b/media/blink/webmediaplayer_delegate.h
index 0795c8d18aa0f372dfc2473d34b3579d0243dbfa..7ec73219d02782db84a215e7eaf98aa956b16463 100644
--- a/media/blink/webmediaplayer_delegate.h
+++ b/media/blink/webmediaplayer_delegate.h
@@ -116,6 +116,12 @@ class WebMediaPlayerDelegate {
// called and returned |true|.
virtual bool IsStale(int player_id) = 0;
+ // Notifies the delegate that the player has entered fullscreen.
+ virtual void SetIsFullscreen(int player_id, bool is_fullscreen) = 0;
+
+ // Notifies the delegate that the player is now dominant.
+ virtual void SetIsDominant(int player_id, bool is_dominant) = 0;
+
protected:
WebMediaPlayerDelegate() = default;
virtual ~WebMediaPlayerDelegate() = default;

Powered by Google App Engine
This is Rietveld 408576698