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: webkit/media/webmediaplayer_ms.cc

Issue 13431009: Add xxxFloat() methods to WebMediaPlayer implementations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 | « webkit/media/webmediaplayer_ms.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/media/webmediaplayer_ms.cc
diff --git a/webkit/media/webmediaplayer_ms.cc b/webkit/media/webmediaplayer_ms.cc
index 1c0b1cbba8082640e3d8dcde705752e86c989bdb..23bc638e7340ceb4ff39ac1919bbf609d7b311c7 100644
--- a/webkit/media/webmediaplayer_ms.cc
+++ b/webkit/media/webmediaplayer_ms.cc
@@ -184,18 +184,34 @@ bool WebMediaPlayerMS::supportsSave() const {
return false;
}
+void WebMediaPlayerMS::seekFloat(float seconds) {
+ seek(seconds);
+}
+
void WebMediaPlayerMS::seek(float seconds) {
DCHECK(thread_checker_.CalledOnValidThread());
}
+void WebMediaPlayerMS::setEndTimeFloat(float seconds) {
+ setEndTime(seconds);
+}
+
void WebMediaPlayerMS::setEndTime(float seconds) {
DCHECK(thread_checker_.CalledOnValidThread());
}
+void WebMediaPlayerMS::setRateFloat(float rate) {
+ setRate(rate);
+}
+
void WebMediaPlayerMS::setRate(float rate) {
DCHECK(thread_checker_.CalledOnValidThread());
}
+void WebMediaPlayerMS::setVolumeFloat(float volume) {
+ setVolume(volume);
+}
+
void WebMediaPlayerMS::setVolume(float volume) {
DCHECK(thread_checker_.CalledOnValidThread());
if (!audio_renderer_)
@@ -247,11 +263,19 @@ bool WebMediaPlayerMS::seeking() const {
return false;
}
+float WebMediaPlayerMS::durationFloat() const {
+ return duration();
+}
+
float WebMediaPlayerMS::duration() const {
DCHECK(thread_checker_.CalledOnValidThread());
return std::numeric_limits<float>::infinity();
}
+float WebMediaPlayerMS::currentTimeFloat() const {
+ return currentTime();
+}
+
float WebMediaPlayerMS::currentTime() const {
DCHECK(thread_checker_.CalledOnValidThread());
if (current_frame_.get()) {
@@ -284,6 +308,10 @@ const WebKit::WebTimeRanges& WebMediaPlayerMS::buffered() {
return buffered_;
}
+float WebMediaPlayerMS::maxTimeSeekableFloat() const {
+ return maxTimeSeekable();
+}
+
float WebMediaPlayerMS::maxTimeSeekable() const {
DCHECK(thread_checker_.CalledOnValidThread());
return 0.0f;
@@ -335,6 +363,10 @@ WebMediaPlayer::MovieLoadType WebMediaPlayerMS::movieLoadType() const {
return WebMediaPlayer::MovieLoadTypeUnknown;
}
+float WebMediaPlayerMS::mediaTimeForTimeValueFloat(float timeValue) const {
+ return mediaTimeForTimeValue(timeValue);
+}
+
float WebMediaPlayerMS::mediaTimeForTimeValue(float timeValue) const {
return ConvertSecondsToTimestamp(timeValue).InSecondsF();
}
« no previous file with comments | « webkit/media/webmediaplayer_ms.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698