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

Unified Diff: third_party/WebKit/Source/core/html/HTMLVideoElement.cpp

Issue 2084223002: Make the video layer visibility configurable in OverlayFullscreenVideo mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/Source/core/html/HTMLVideoElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp b/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp
index 04ae3c0f4c4b88d04dc13ea5d87e69732cfcd376..1bac23600c929c962234463fbe5cac2460d6c1a3 100644
--- a/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp
@@ -249,10 +249,15 @@ bool HTMLVideoElement::webkitDisplayingFullscreen()
bool HTMLVideoElement::usesOverlayFullscreenVideo() const
{
+ return overlayFullscreenVideoMode() != WebMediaPlayer::OverlayFullscreenVideoMode::Disabled;
+}
+
+WebMediaPlayer::OverlayFullscreenVideoMode HTMLVideoElement::overlayFullscreenVideoMode() const
+{
if (RuntimeEnabledFeatures::forceOverlayFullscreenVideoEnabled())
- return true;
+ return WebMediaPlayer::OverlayFullscreenVideoMode::VideoLayerInvisible;
- return webMediaPlayer() && webMediaPlayer()->supportsOverlayFullscreenVideo();
+ return webMediaPlayer() ? webMediaPlayer()->getOverlayFullscreenVideoMode() : WebMediaPlayer::OverlayFullscreenVideoMode::Disabled;
}
void HTMLVideoElement::didMoveToNewDocument(Document& oldDocument)

Powered by Google App Engine
This is Rietveld 408576698