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

Unified Diff: third_party/WebKit/Source/core/html/shadow/MediaControls.cpp

Issue 2767823002: Media Remoting: Add interstitial elements to media element shadow dom. (Closed)
Patch Set: Addressed mlamouri's comments. Created 3 years, 8 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/shadow/MediaControls.cpp
diff --git a/third_party/WebKit/Source/core/html/shadow/MediaControls.cpp b/third_party/WebKit/Source/core/html/shadow/MediaControls.cpp
index 811996a545f6752fcf5a449b696119c926d17b1c..64bb142b0c314171b1d74a0cc858f2fe9e9a70ae 100644
--- a/third_party/WebKit/Source/core/html/shadow/MediaControls.cpp
+++ b/third_party/WebKit/Source/core/html/shadow/MediaControls.cpp
@@ -518,7 +518,9 @@ void MediaControls::makeTransparent() {
bool MediaControls::shouldHideMediaControls(unsigned behaviorFlags) const {
// Never hide for a media element without visual representation.
if (!mediaElement().isHTMLVideoElement() || !mediaElement().hasVideo() ||
- mediaElement().isPlayingRemotely()) {
+ mediaElement().isPlayingRemotely() ||
+ toHTMLVideoElement(mediaElement()).mediaRemotingStatus() ==
+ HTMLVideoElement::MediaRemotingStatus::Started) {
return false;
}

Powered by Google App Engine
This is Rietveld 408576698