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

Unified Diff: Source/web/WebMediaPlayerClientImpl.cpp

Issue 306123003: Eliminate MediaPlayer & MediaPlayerClient abstractions(seek, duration, poster APIs) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase with latest code Created 6 years, 6 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') | no next file » | 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 f543537743bff175c10acfddfdbe39d5cd87b7a6..d1039e7d90107520c51d8f2d9fe1df4f91213ad7 100644
--- a/Source/web/WebMediaPlayerClientImpl.cpp
+++ b/Source/web/WebMediaPlayerClientImpl.cpp
@@ -205,33 +205,6 @@ void WebMediaPlayerClientImpl::load(WebMediaPlayer::LoadType loadType, const WTF
m_webMediaPlayer->load(loadType, kurl, corsMode);
}
-double WebMediaPlayerClientImpl::duration() const
-{
- if (m_webMediaPlayer)
- return m_webMediaPlayer->duration();
- return 0.0;
-}
-
-double WebMediaPlayerClientImpl::currentTime() const
-{
- if (m_webMediaPlayer)
- return m_webMediaPlayer->currentTime();
- return 0.0;
-}
-
-void WebMediaPlayerClientImpl::seek(double time)
-{
- if (m_webMediaPlayer)
- m_webMediaPlayer->seek(time);
-}
-
-bool WebMediaPlayerClientImpl::seeking() const
-{
- if (m_webMediaPlayer)
- return m_webMediaPlayer->seeking();
- return false;
-}
-
double WebMediaPlayerClientImpl::rate() const
{
return m_rate;
@@ -244,12 +217,6 @@ void WebMediaPlayerClientImpl::setRate(double rate)
m_webMediaPlayer->setRate(rate);
}
-void WebMediaPlayerClientImpl::setPoster(const KURL& poster)
-{
- if (m_webMediaPlayer)
- m_webMediaPlayer->setPoster(WebURL(poster));
-}
-
MediaPlayer::NetworkState WebMediaPlayerClientImpl::networkState() const
{
if (m_webMediaPlayer)
« no previous file with comments | « Source/web/WebMediaPlayerClientImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698