| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // Delegate calls from WebCore::MediaPlayerPrivate to Chrome's video player. | 5 // Delegate calls from WebCore::MediaPlayerPrivate to Chrome's video player. |
| 6 // It contains PipelineImpl which is the actual media player pipeline, it glues | 6 // It contains PipelineImpl which is the actual media player pipeline, it glues |
| 7 // the media player pipeline, data source, audio renderer and renderer. | 7 // the media player pipeline, data source, audio renderer and renderer. |
| 8 // PipelineImpl would creates multiple threads and access some public methods | 8 // PipelineImpl would creates multiple threads and access some public methods |
| 9 // of this class, so we need to be extra careful about concurrent access of | 9 // of this class, so we need to be extra careful about concurrent access of |
| 10 // methods and members. | 10 // methods and members. |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 virtual void pause(); | 181 virtual void pause(); |
| 182 virtual bool supportsFullscreen() const; | 182 virtual bool supportsFullscreen() const; |
| 183 virtual bool supportsSave() const; | 183 virtual bool supportsSave() const; |
| 184 virtual void seek(float seconds); | 184 virtual void seek(float seconds); |
| 185 virtual void setEndTime(float seconds); | 185 virtual void setEndTime(float seconds); |
| 186 virtual void setRate(float rate); | 186 virtual void setRate(float rate); |
| 187 virtual void setVolume(float volume); | 187 virtual void setVolume(float volume); |
| 188 virtual void setVisible(bool visible); | 188 virtual void setVisible(bool visible); |
| 189 virtual bool setAutoBuffer(bool autoBuffer); | 189 virtual bool setAutoBuffer(bool autoBuffer); |
| 190 virtual bool totalBytesKnown(); | 190 virtual bool totalBytesKnown(); |
| 191 virtual const WebKit::WebTimeRanges& buffered(); |
| 192 // This is the prototype for the function we are replacing with the |
| 193 // non-const version, but we keep it in so that we don't have to do a |
| 194 // two-sided commit. |
| 191 virtual const WebKit::WebTimeRanges& buffered() const; | 195 virtual const WebKit::WebTimeRanges& buffered() const; |
| 192 virtual float maxTimeSeekable() const; | 196 virtual float maxTimeSeekable() const; |
| 193 | 197 |
| 194 // Methods for painting. | 198 // Methods for painting. |
| 195 virtual void setSize(const WebKit::WebSize& size); | 199 virtual void setSize(const WebKit::WebSize& size); |
| 196 | 200 |
| 197 virtual void paint(WebKit::WebCanvas* canvas, const WebKit::WebRect& rect); | 201 virtual void paint(WebKit::WebCanvas* canvas, const WebKit::WebRect& rect); |
| 198 | 202 |
| 199 // True if the loaded media has a playable video/audio track. | 203 // True if the loaded media has a playable video/audio track. |
| 200 virtual bool hasVideo() const; | 204 virtual bool hasVideo() const; |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 WebMediaPlayerImpl::Proxy* proxy) = 0; | 326 WebMediaPlayerImpl::Proxy* proxy) = 0; |
| 323 | 327 |
| 324 private: | 328 private: |
| 325 DISALLOW_COPY_AND_ASSIGN(WebVideoRendererFactoryFactory); | 329 DISALLOW_COPY_AND_ASSIGN(WebVideoRendererFactoryFactory); |
| 326 }; | 330 }; |
| 327 | 331 |
| 328 | 332 |
| 329 } // namespace webkit_glue | 333 } // namespace webkit_glue |
| 330 | 334 |
| 331 #endif // WEBKIT_GLUE_WEBMEDIAPLAYER_IMPL_H_ | 335 #endif // WEBKIT_GLUE_WEBMEDIAPLAYER_IMPL_H_ |
| OLD | NEW |