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

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

Issue 650893002: [Cast] Disable autohide of media controls for remote playback (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added LayoutTest Created 6 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: Source/core/html/shadow/MediaControls.cpp
diff --git a/Source/core/html/shadow/MediaControls.cpp b/Source/core/html/shadow/MediaControls.cpp
index 6e3fef244861bfc448c40722dde83b54e710f037..0ce4e6e0fca708465e7e1203aed7b1382617dcba 100644
--- a/Source/core/html/shadow/MediaControls.cpp
+++ b/Source/core/html/shadow/MediaControls.cpp
@@ -244,7 +244,7 @@ void MediaControls::makeTransparent()
bool MediaControls::shouldHideMediaControls(unsigned behaviorFlags) const
{
// Never hide for a media element without visual representation.
- if (!mediaElement().hasVideo())
+ if (!mediaElement().hasVideo() || mediaElement().isPlayingRemotely())
return false;
// Don't hide if the mouse is over the controls.
const bool ignoreControlsHover = behaviorFlags & IgnoreControlsHover;

Powered by Google App Engine
This is Rietveld 408576698