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

Unified Diff: trunk/Source/web/WebMediaPlayerClientImpl.cpp

Issue 325513002: Revert 175508 "Eliminate MediaPlayer & MediaPlayerClient abstrac..." (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: 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 | « trunk/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: trunk/Source/web/WebMediaPlayerClientImpl.cpp
===================================================================
--- trunk/Source/web/WebMediaPlayerClientImpl.cpp (revision 175712)
+++ trunk/Source/web/WebMediaPlayerClientImpl.cpp (working copy)
@@ -205,6 +205,18 @@
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)
@@ -244,6 +256,20 @@
m_webMediaPlayer->setRate(rate);
}
+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)
@@ -320,6 +346,20 @@
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 | « trunk/Source/web/WebMediaPlayerClientImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698