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

Unified Diff: content/browser/media/media_web_contents_observer.cc

Issue 2756553002: Force the video to go fullscreen when setting persistent video (Closed)
Patch Set: addressed nits Created 3 years, 9 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: content/browser/media/media_web_contents_observer.cc
diff --git a/content/browser/media/media_web_contents_observer.cc b/content/browser/media/media_web_contents_observer.cc
index 7e11255ab58c84d4eaffa7542136a857ee70712b..d49b495b0eff968bdd7137a52f6626a93a886318 100644
--- a/content/browser/media/media_web_contents_observer.cc
+++ b/content/browser/media/media_web_contents_observer.cc
@@ -109,6 +109,17 @@ void MediaWebContentsObserver::WasHidden() {
video_power_save_blocker_.reset();
}
+void MediaWebContentsObserver::RequestPersistentVideo(bool value) {
+ if (!fullscreen_player_)
+ return;
+
+ // The message is sent to the renderer even though the video is already the
+ // fullscreen element itself. It will eventually be handled by Blink.
+ Send(new MediaPlayerDelegateMsg_BecamePersistentVideo(
+ fullscreen_player_->first->GetRoutingID(), fullscreen_player_->second,
+ value));
+}
+
void MediaWebContentsObserver::OnMediaDestroyed(
RenderFrameHost* render_frame_host,
int delegate_id) {
« no previous file with comments | « content/browser/media/media_web_contents_observer.h ('k') | content/browser/web_contents/web_contents_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698