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

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

Issue 2334803002: Implementation of media controls download button. (Closed)
Patch Set: --no-find-copies Created 4 years, 3 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 fb2ba808b243a56342dd927adf0f757ffd12a665..8c4808214bb7c454332013dca90f7f14dc3484b1 100644
--- a/third_party/WebKit/Source/core/html/shadow/MediaControls.cpp
+++ b/third_party/WebKit/Source/core/html/shadow/MediaControls.cpp
@@ -235,7 +235,7 @@ void MediaControls::initializeControls()
m_fullscreenButton = fullscreenButton;
panel->appendChild(fullscreenButton);
- MediaControlDownloadButtonElement* downloadButton = MediaControlDownloadButtonElement::create(*this, &document());
+ MediaControlDownloadButtonElement* downloadButton = MediaControlDownloadButtonElement::create(*this);
m_downloadButton = downloadButton;
panel->appendChild(downloadButton);
@@ -263,7 +263,7 @@ void MediaControls::initializeControls()
m_overflowList->appendChild(m_toggleClosedCaptionsButton->createOverflowElement(*this, MediaControlToggleClosedCaptionsButtonElement::create(*this)));
m_overflowList->appendChild(m_fullscreenButton->createOverflowElement(*this, MediaControlFullscreenButtonElement::create(*this)));
m_overflowList->appendChild(m_playButton->createOverflowElement(*this, MediaControlPlayButtonElement::create(*this)));
- m_overflowList->appendChild(m_downloadButton->createOverflowElement(*this, MediaControlDownloadButtonElement::create(*this, &document())));
+ m_overflowList->appendChild(m_downloadButton->createOverflowElement(*this, MediaControlDownloadButtonElement::create(*this)));
}
void MediaControls::reset()
@@ -307,8 +307,7 @@ void MediaControls::reset()
refreshCastButtonVisibilityWithoutUpdate();
- if (RuntimeEnabledFeatures::mediaControlsDownloadButtonEnabled())
- m_downloadButton->setIsWanted(m_downloadButton->shouldDisplayDownloadButton());
+ m_downloadButton->setIsWanted(m_downloadButton->shouldDisplayDownloadButton());
}
LayoutObject* MediaControls::layoutObjectForTextTrackLayout()

Powered by Google App Engine
This is Rietveld 408576698