| 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 MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 5 #ifndef MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
| 6 #define MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 6 #define MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 | 76 |
| 77 // Playback controls. | 77 // Playback controls. |
| 78 virtual void play(); | 78 virtual void play(); |
| 79 virtual void pause(); | 79 virtual void pause(); |
| 80 virtual bool supportsSave() const; | 80 virtual bool supportsSave() const; |
| 81 virtual void seek(double seconds); | 81 virtual void seek(double seconds); |
| 82 virtual void setRate(double rate); | 82 virtual void setRate(double rate); |
| 83 virtual void setVolume(double volume); | 83 virtual void setVolume(double volume); |
| 84 virtual void setPreload(blink::WebMediaPlayer::Preload preload); | 84 virtual void setPreload(blink::WebMediaPlayer::Preload preload); |
| 85 virtual blink::WebTimeRanges buffered() const; | 85 virtual blink::WebTimeRanges buffered() const; |
| 86 virtual double maxTimeSeekable() const; | 86 virtual blink::WebTimeRanges seekable() const; |
| 87 | 87 |
| 88 // Methods for painting. | 88 // Methods for painting. |
| 89 virtual void paint(blink::WebCanvas* canvas, | 89 virtual void paint(blink::WebCanvas* canvas, |
| 90 const blink::WebRect& rect, | 90 const blink::WebRect& rect, |
| 91 unsigned char alpha, | 91 unsigned char alpha, |
| 92 SkXfermode::Mode mode); | 92 SkXfermode::Mode mode); |
| 93 // TODO(dshwang): remove it because above method replaces. crbug.com/401027 | 93 // TODO(dshwang): remove it because above method replaces. crbug.com/401027 |
| 94 virtual void paint(blink::WebCanvas* canvas, | 94 virtual void paint(blink::WebCanvas* canvas, |
| 95 const blink::WebRect& rect, | 95 const blink::WebRect& rect, |
| 96 unsigned char alpha); | 96 unsigned char alpha); |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 scoped_ptr<EncryptedMediaPlayerSupport> encrypted_media_support_; | 308 scoped_ptr<EncryptedMediaPlayerSupport> encrypted_media_support_; |
| 309 | 309 |
| 310 const AudioHardwareConfig& audio_hardware_config_; | 310 const AudioHardwareConfig& audio_hardware_config_; |
| 311 | 311 |
| 312 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 312 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
| 313 }; | 313 }; |
| 314 | 314 |
| 315 } // namespace media | 315 } // namespace media |
| 316 | 316 |
| 317 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 317 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
| OLD | NEW |