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

Side by Side Diff: webkit/media/webmediaplayer_ms.h

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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/media/webmediaplayer_impl.cc ('k') | webkit/media/webmediaplayer_ms.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_MEDIA_WEBMEDIAPLAYER_MS_H_ 5 #ifndef WEBKIT_MEDIA_WEBMEDIAPLAYER_MS_H_
6 #define WEBKIT_MEDIA_WEBMEDIAPLAYER_MS_H_ 6 #define WEBKIT_MEDIA_WEBMEDIAPLAYER_MS_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 virtual void load(const WebKit::WebURL& url, 67 virtual void load(const WebKit::WebURL& url,
68 WebKit::WebMediaSource* media_source, 68 WebKit::WebMediaSource* media_source,
69 CORSMode cors_mode) OVERRIDE; 69 CORSMode cors_mode) OVERRIDE;
70 virtual void cancelLoad() OVERRIDE; 70 virtual void cancelLoad() OVERRIDE;
71 71
72 // Playback controls. 72 // Playback controls.
73 virtual void play() OVERRIDE; 73 virtual void play() OVERRIDE;
74 virtual void pause() OVERRIDE; 74 virtual void pause() OVERRIDE;
75 virtual bool supportsFullscreen() const OVERRIDE; 75 virtual bool supportsFullscreen() const OVERRIDE;
76 virtual bool supportsSave() const OVERRIDE; 76 virtual bool supportsSave() const OVERRIDE;
77 virtual void seek(float seconds) OVERRIDE; 77 virtual void seekFloat(float seconds);
78 virtual void setEndTime(float seconds) OVERRIDE; 78 virtual void seek(float seconds);
79 virtual void setRate(float rate) OVERRIDE; 79 virtual void setEndTimeFloat(float seconds);
80 virtual void setVolume(float volume) OVERRIDE; 80 virtual void setEndTime(float seconds);
81 virtual void setRateFloat(float rate);
82 virtual void setRate(float rate);
83 virtual void setVolumeFloat(float volume);
84 virtual void setVolume(float volume);
81 virtual void setVisible(bool visible) OVERRIDE; 85 virtual void setVisible(bool visible) OVERRIDE;
82 virtual void setPreload(WebKit::WebMediaPlayer::Preload preload) OVERRIDE; 86 virtual void setPreload(WebKit::WebMediaPlayer::Preload preload) OVERRIDE;
83 virtual bool totalBytesKnown() OVERRIDE; 87 virtual bool totalBytesKnown() OVERRIDE;
84 virtual const WebKit::WebTimeRanges& buffered() OVERRIDE; 88 virtual const WebKit::WebTimeRanges& buffered() OVERRIDE;
85 virtual float maxTimeSeekable() const OVERRIDE; 89 virtual float maxTimeSeekableFloat() const;
90 virtual float maxTimeSeekable() const;
86 91
87 // Methods for painting. 92 // Methods for painting.
88 virtual void setSize(const WebKit::WebSize& size) OVERRIDE; 93 virtual void setSize(const WebKit::WebSize& size) OVERRIDE;
89 94
90 virtual void paint(WebKit::WebCanvas* canvas, 95 virtual void paint(WebKit::WebCanvas* canvas,
91 const WebKit::WebRect& rect, 96 const WebKit::WebRect& rect,
92 uint8_t alpha) OVERRIDE; 97 uint8_t alpha) OVERRIDE;
93 98
94 // True if the loaded media has a playable video/audio track. 99 // True if the loaded media has a playable video/audio track.
95 virtual bool hasVideo() const OVERRIDE; 100 virtual bool hasVideo() const OVERRIDE;
96 virtual bool hasAudio() const OVERRIDE; 101 virtual bool hasAudio() const OVERRIDE;
97 102
98 // Dimensions of the video. 103 // Dimensions of the video.
99 virtual WebKit::WebSize naturalSize() const OVERRIDE; 104 virtual WebKit::WebSize naturalSize() const OVERRIDE;
100 105
101 // Getters of playback state. 106 // Getters of playback state.
102 virtual bool paused() const OVERRIDE; 107 virtual bool paused() const OVERRIDE;
103 virtual bool seeking() const OVERRIDE; 108 virtual bool seeking() const OVERRIDE;
104 virtual float duration() const OVERRIDE; 109 virtual float durationFloat() const;
105 virtual float currentTime() const OVERRIDE; 110 virtual float duration() const;
111 virtual float currentTimeFloat() const;
112 virtual float currentTime() const;
106 113
107 // Get rate of loading the resource. 114 // Get rate of loading the resource.
108 virtual int32 dataRate() const OVERRIDE; 115 virtual int32 dataRate() const OVERRIDE;
109 116
110 // Internal states of loading and network. 117 // Internal states of loading and network.
111 virtual WebKit::WebMediaPlayer::NetworkState networkState() const OVERRIDE; 118 virtual WebKit::WebMediaPlayer::NetworkState networkState() const OVERRIDE;
112 virtual WebKit::WebMediaPlayer::ReadyState readyState() const OVERRIDE; 119 virtual WebKit::WebMediaPlayer::ReadyState readyState() const OVERRIDE;
113 120
114 virtual bool didLoadingProgress() const OVERRIDE; 121 virtual bool didLoadingProgress() const OVERRIDE;
115 virtual unsigned long long totalBytes() const OVERRIDE; 122 virtual unsigned long long totalBytes() const OVERRIDE;
116 123
117 virtual bool hasSingleSecurityOrigin() const OVERRIDE; 124 virtual bool hasSingleSecurityOrigin() const OVERRIDE;
118 virtual bool didPassCORSAccessCheck() const OVERRIDE; 125 virtual bool didPassCORSAccessCheck() const OVERRIDE;
119 virtual WebKit::WebMediaPlayer::MovieLoadType movieLoadType() const OVERRIDE; 126 virtual WebKit::WebMediaPlayer::MovieLoadType movieLoadType() const OVERRIDE;
120 127
121 virtual float mediaTimeForTimeValue(float timeValue) const OVERRIDE; 128 virtual float mediaTimeForTimeValueFloat(float timeValue) const;
129 virtual float mediaTimeForTimeValue(float timeValue) const;
122 130
123 virtual unsigned decodedFrameCount() const OVERRIDE; 131 virtual unsigned decodedFrameCount() const OVERRIDE;
124 virtual unsigned droppedFrameCount() const OVERRIDE; 132 virtual unsigned droppedFrameCount() const OVERRIDE;
125 virtual unsigned audioDecodedByteCount() const OVERRIDE; 133 virtual unsigned audioDecodedByteCount() const OVERRIDE;
126 virtual unsigned videoDecodedByteCount() const OVERRIDE; 134 virtual unsigned videoDecodedByteCount() const OVERRIDE;
127 135
128 // VideoFrameProvider implementation. 136 // VideoFrameProvider implementation.
129 virtual void SetVideoFrameProviderClient( 137 virtual void SetVideoFrameProviderClient(
130 cc::VideoFrameProvider::Client* client) OVERRIDE; 138 cc::VideoFrameProvider::Client* client) OVERRIDE;
131 virtual scoped_refptr<media::VideoFrame> GetCurrentFrame() OVERRIDE; 139 virtual scoped_refptr<media::VideoFrame> GetCurrentFrame() OVERRIDE;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 scoped_refptr<MediaStreamAudioRenderer> audio_renderer_; 202 scoped_refptr<MediaStreamAudioRenderer> audio_renderer_;
195 203
196 scoped_refptr<media::MediaLog> media_log_; 204 scoped_refptr<media::MediaLog> media_log_;
197 205
198 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); 206 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS);
199 }; 207 };
200 208
201 } // namespace webkit_media 209 } // namespace webkit_media
202 210
203 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_MS_H_ 211 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_MS_H_
OLDNEW
« no previous file with comments | « webkit/media/webmediaplayer_impl.cc ('k') | webkit/media/webmediaplayer_ms.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698