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

Unified Diff: media/blink/webmediaplayer_impl.cc

Issue 2693203002: Provide a WebContents API to discover the playback of a fullscreen video. (Closed)
Patch Set: apply review comments 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
« no previous file with comments | « media/blink/webmediaplayer_delegate.h ('k') | media/blink/webmediaplayer_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/webmediaplayer_impl.cc
diff --git a/media/blink/webmediaplayer_impl.cc b/media/blink/webmediaplayer_impl.cc
index f8c8d24f13ce728929938606f35f67c547e7243d..aec1ea699ee6effb6145b5264b8744a6cec21558 100644
--- a/media/blink/webmediaplayer_impl.cc
+++ b/media/blink/webmediaplayer_impl.cc
@@ -356,6 +356,7 @@ void WebMediaPlayerImpl::enteredFullscreen() {
}
if (observer_)
observer_->OnEnteredFullscreen();
+ delegate_->SetIsEffectivelyFullscreen(delegate_id_, true);
}
void WebMediaPlayerImpl::exitedFullscreen() {
@@ -365,6 +366,7 @@ void WebMediaPlayerImpl::exitedFullscreen() {
DisableOverlay();
if (observer_)
observer_->OnExitedFullscreen();
+ delegate_->SetIsEffectivelyFullscreen(delegate_id_, false);
}
void WebMediaPlayerImpl::becameDominantVisibleContent(bool isDominant) {
« no previous file with comments | « media/blink/webmediaplayer_delegate.h ('k') | media/blink/webmediaplayer_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698