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

Unified Diff: Source/web/WebMediaPlayerClientImpl.cpp

Issue 455453002: Remove WebMediaPlayerClient::preload() and volume() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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
« no previous file with comments | « Source/web/WebMediaPlayerClientImpl.h ('k') | public/platform/WebMediaPlayerClient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebMediaPlayerClientImpl.cpp
diff --git a/Source/web/WebMediaPlayerClientImpl.cpp b/Source/web/WebMediaPlayerClientImpl.cpp
index 835aa75f2d8a2f26587c4a5a62a6028ed5944cac..8ae9ba35a8c2767d27701d7cd673129784e9af49 100644
--- a/Source/web/WebMediaPlayerClientImpl.cpp
+++ b/Source/web/WebMediaPlayerClientImpl.cpp
@@ -106,21 +106,11 @@ void WebMediaPlayerClientImpl::sizeChanged()
m_client->mediaPlayerSizeChanged();
}
-double WebMediaPlayerClientImpl::volume() const
-{
- return mediaElement().effectiveMediaVolume();
-}
-
void WebMediaPlayerClientImpl::playbackStateChanged()
{
m_client->mediaPlayerPlaybackStateChanged();
}
-WebMediaPlayer::Preload WebMediaPlayerClientImpl::preload() const
-{
- return static_cast<WebMediaPlayer::Preload>(m_preload);
-}
-
void WebMediaPlayerClientImpl::keyAdded(const WebString& keySystem, const WebString& sessionId)
{
HTMLMediaElementEncryptedMedia::keyAdded(mediaElement(), keySystem, sessionId);
@@ -223,8 +213,6 @@ void WebMediaPlayerClientImpl::load(WebMediaPlayer::LoadType loadType, const WTF
void WebMediaPlayerClientImpl::setPreload(MediaPlayer::Preload preload)
{
- m_preload = preload;
-
if (m_webMediaPlayer)
m_webMediaPlayer->setPreload(static_cast<WebMediaPlayer::Preload>(preload));
}
@@ -243,7 +231,6 @@ PassOwnPtr<MediaPlayer> WebMediaPlayerClientImpl::create(MediaPlayerClient* clie
WebMediaPlayerClientImpl::WebMediaPlayerClientImpl(MediaPlayerClient* client)
: m_client(client)
- , m_preload(MediaPlayer::Auto)
{
ASSERT(m_client);
}
« no previous file with comments | « Source/web/WebMediaPlayerClientImpl.h ('k') | public/platform/WebMediaPlayerClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698