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

Unified Diff: media/blink/webmediaplayer_impl.cc

Issue 2411553003: Notify WebMediaPlayer when its ancestor enters/exists fullscreen. (Closed)
Patch Set: Created 4 years, 2 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_impl.cc
diff --git a/media/blink/webmediaplayer_impl.cc b/media/blink/webmediaplayer_impl.cc
index cdebe7739579127cc1db0a4aadd49269324e37b7..23973d00fc2c864ee286cac70b0f5e9ddd588d2b 100644
--- a/media/blink/webmediaplayer_impl.cc
+++ b/media/blink/webmediaplayer_impl.cc
@@ -341,6 +341,22 @@ void WebMediaPlayerImpl::exitedFullscreen() {
DisableOverlay();
}
+void WebMediaPlayerImpl::enterFullWindow() {
+ is_full_window_ = true;
+ // TODO(xjz): merges with cl: https://codereview.chromium.org/2389473002/ to
+ // notify the MediaObserver.
+}
+
+bool WebMediaPlayerImpl::isFullWindow() {
+ return is_full_window_;
+}
+
+void WebMediaPlayerImpl::exitFullWindow() {
+ is_full_window_ = false;
+ // TODO(xjz): merges with cl: https://codereview.chromium.org/2389473002/ to
+ // notify the MediaObserver.
+}
+
void WebMediaPlayerImpl::DoLoad(LoadType load_type,
const blink::WebURL& url,
CORSMode cors_mode) {

Powered by Google App Engine
This is Rietveld 408576698