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

Unified Diff: Source/core/html/HTMLMediaElement.cpp

Issue 1156993013: New media playback UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: minor decrufting. Created 5 years, 5 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/HTMLMediaElement.cpp
diff --git a/Source/core/html/HTMLMediaElement.cpp b/Source/core/html/HTMLMediaElement.cpp
index 7f980b63dbf0229bebba1107adba9039a74c6844..e16c405e041434482e20c23726c09ecff50c8d7b 100644
--- a/Source/core/html/HTMLMediaElement.cpp
+++ b/Source/core/html/HTMLMediaElement.cpp
@@ -3055,7 +3055,7 @@ void HTMLMediaElement::clearMediaPlayer(int flags)
m_remoteRoutesAvailable = false;
m_playingRemotely = false;
if (mediaControls())
- mediaControls()->refreshCastButtonVisibility();
+ mediaControls()->refreshCastButtonVisibilityWithoutUpdate();
if (m_textTracks)
configureTextTrackDisplay(AssumeNoVisibleChange);
@@ -3587,6 +3587,12 @@ bool HTMLMediaElement::isBlockedOnMediaController() const
return false;
}
+void HTMLMediaElement::setAllowHiddenAudioElements(bool allow)
+{
+ ensureMediaControls();
+ mediaControls()->setAllowHiddenAudioElements(allow);
+}
+
WebMediaPlayer::CORSMode HTMLMediaElement::corsMode() const
{
const AtomicString& crossOriginMode = fastGetAttribute(crossoriginAttr);

Powered by Google App Engine
This is Rietveld 408576698