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

Unified Diff: Source/web/WebMediaPlayerClientImpl.cpp

Issue 370203004: Eliminate MediaPlayer abstraction(play/pause, other APIs) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: updated as per the comment Created 6 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
« 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 b5547e46e26fef2c95a143872f8234775321301c..a5a4f1f323d7dcae0ca19181c8ab0d30a96a7fc3 100644
--- a/Source/web/WebMediaPlayerClientImpl.cpp
+++ b/Source/web/WebMediaPlayerClientImpl.cpp
@@ -225,18 +225,6 @@ void WebMediaPlayerClientImpl::load(WebMediaPlayer::LoadType loadType, const WTF
m_webMediaPlayer->load(loadType, kurl, corsMode);
}
-void WebMediaPlayerClientImpl::play()
-{
- if (m_webMediaPlayer)
- m_webMediaPlayer->play();
-}
-
-void WebMediaPlayerClientImpl::pause()
-{
- if (m_webMediaPlayer)
- m_webMediaPlayer->pause();
-}
-
double WebMediaPlayerClientImpl::duration() const
{
if (m_webMediaPlayer)
@@ -264,20 +252,6 @@ bool WebMediaPlayerClientImpl::seeking() const
return false;
}
-bool WebMediaPlayerClientImpl::paused() const
-{
- if (m_webMediaPlayer)
- return m_webMediaPlayer->paused();
- return false;
-}
-
-bool WebMediaPlayerClientImpl::supportsSave() const
-{
- if (m_webMediaPlayer)
- return m_webMediaPlayer->supportsSave();
- return false;
-}
-
void WebMediaPlayerClientImpl::setPoster(const KURL& poster)
{
if (m_webMediaPlayer)
@@ -328,20 +302,6 @@ void WebMediaPlayerClientImpl::setPreload(MediaPlayer::Preload preload)
m_webMediaPlayer->setPreload(static_cast<WebMediaPlayer::Preload>(preload));
}
-bool WebMediaPlayerClientImpl::hasSingleSecurityOrigin() const
-{
- if (m_webMediaPlayer)
- return m_webMediaPlayer->hasSingleSecurityOrigin();
- return false;
-}
-
-double WebMediaPlayerClientImpl::mediaTimeForTimeValue(double timeValue) const
-{
- if (m_webMediaPlayer)
- return m_webMediaPlayer->mediaTimeForTimeValue(timeValue);
- return timeValue;
-}
-
#if ENABLE(WEB_AUDIO)
AudioSourceProvider* WebMediaPlayerClientImpl::audioSourceProvider()
{
« 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