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

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: actually got the other CL number right... 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 113e1f090f708afd3780da70318424087f9c44f1..7e9ce17fa0b4724b95750532c5ef274417ed7f87 100644
--- a/Source/core/html/HTMLMediaElement.cpp
+++ b/Source/core/html/HTMLMediaElement.cpp
@@ -3103,7 +3103,7 @@ void HTMLMediaElement::clearMediaPlayer(int flags)
m_remoteRoutesAvailable = false;
m_playingRemotely = false;
if (mediaControls())
- mediaControls()->refreshCastButtonVisibility();
+ mediaControls()->refreshCastButtonVisibilityWithoutUpdate();
if (layoutObject())
layoutObject()->setShouldDoFullPaintInvalidation();
@@ -3621,6 +3621,12 @@ bool HTMLMediaElement::isBlockedOnMediaController() const
return false;
}
+void HTMLMediaElement::setAllowHiddenVolumeControls(bool allow)
+{
+ ensureMediaControls();
+ mediaControls()->setAllowHiddenVolumeControls(allow);
+}
+
WebMediaPlayer::CORSMode HTMLMediaElement::corsMode() const
{
const AtomicString& crossOriginMode = fastGetAttribute(crossoriginAttr);

Powered by Google App Engine
This is Rietveld 408576698