| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ | 6 #define CONTENT_RENDERER_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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 CORSMode cors_mode); | 68 CORSMode cors_mode); |
| 69 | 69 |
| 70 // Playback controls. | 70 // Playback controls. |
| 71 virtual void play(); | 71 virtual void play(); |
| 72 virtual void pause(); | 72 virtual void pause(); |
| 73 virtual bool supportsSave() const; | 73 virtual bool supportsSave() const; |
| 74 virtual void seek(double seconds); | 74 virtual void seek(double seconds); |
| 75 virtual void setRate(double rate); | 75 virtual void setRate(double rate); |
| 76 virtual void setVolume(double volume); | 76 virtual void setVolume(double volume); |
| 77 virtual void setPreload(blink::WebMediaPlayer::Preload preload); | 77 virtual void setPreload(blink::WebMediaPlayer::Preload preload); |
| 78 virtual const blink::WebTimeRanges& buffered(); | |
| 79 virtual blink::WebTimeRanges buffered() const; | 78 virtual blink::WebTimeRanges buffered() const; |
| 80 virtual double maxTimeSeekable() const; | 79 virtual double maxTimeSeekable() const; |
| 81 | 80 |
| 82 // Methods for painting. | 81 // Methods for painting. |
| 83 virtual void paint(blink::WebCanvas* canvas, | 82 virtual void paint(blink::WebCanvas* canvas, |
| 84 const blink::WebRect& rect, | 83 const blink::WebRect& rect, |
| 85 unsigned char alpha); | 84 unsigned char alpha); |
| 86 | 85 |
| 87 // True if the loaded media has a playable video/audio track. | 86 // True if the loaded media has a playable video/audio track. |
| 88 virtual bool hasVideo() const; | 87 virtual bool hasVideo() const; |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 scoped_refptr<MediaStreamAudioRenderer> audio_renderer_; | 187 scoped_refptr<MediaStreamAudioRenderer> audio_renderer_; |
| 189 | 188 |
| 190 scoped_refptr<media::MediaLog> media_log_; | 189 scoped_refptr<media::MediaLog> media_log_; |
| 191 | 190 |
| 192 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); | 191 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); |
| 193 }; | 192 }; |
| 194 | 193 |
| 195 } // namespace content | 194 } // namespace content |
| 196 | 195 |
| 197 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ | 196 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ |
| OLD | NEW |