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

Unified Diff: third_party/WebKit/Source/modules/media_controls/MediaControlsImpl.cpp

Issue 2767823002: Media Remoting: Add interstitial elements to media element shadow dom. (Closed)
Patch Set: Rebased. 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/modules/media_controls/MediaControlsImpl.cpp
diff --git a/third_party/WebKit/Source/modules/media_controls/MediaControlsImpl.cpp b/third_party/WebKit/Source/modules/media_controls/MediaControlsImpl.cpp
index 46f1f6f2a4d238c5f6729a9a537bb81c2b7fbd85..1dcaab2e60fbbf77e10a899b4957dc3cf730462e 100644
--- a/third_party/WebKit/Source/modules/media_controls/MediaControlsImpl.cpp
+++ b/third_party/WebKit/Source/modules/media_controls/MediaControlsImpl.cpp
@@ -529,7 +529,9 @@ void MediaControlsImpl::MakeTransparent() {
bool MediaControlsImpl::ShouldHideMediaControls(unsigned behavior_flags) const {
// Never hide for a media element without visual representation.
if (!MediaElement().IsHTMLVideoElement() || !MediaElement().HasVideo() ||
- MediaElement().IsPlayingRemotely()) {
+ MediaElement().IsPlayingRemotely() ||
+ toHTMLVideoElement(MediaElement()).GetMediaRemotingStatus() ==
+ HTMLVideoElement::MediaRemotingStatus::kStarted) {
return false;
}
« no previous file with comments | « third_party/WebKit/Source/core/paint/ThemePainter.cpp ('k') | third_party/WebKit/Source/platform/ThemeTypes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698