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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 blink::WebTimeRanges seekable() 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 | |
94 virtual void paint(blink::WebCanvas* canvas, | |
95 const blink::WebRect& rect, | |
96 unsigned char alpha); | |
97 | 93 |
98 // True if the loaded media has a playable video/audio track. | 94 // True if the loaded media has a playable video/audio track. |
99 virtual bool hasVideo() const; | 95 virtual bool hasVideo() const; |
100 virtual bool hasAudio() const; | 96 virtual bool hasAudio() const; |
101 | 97 |
102 // Dimensions of the video. | 98 // Dimensions of the video. |
103 virtual blink::WebSize naturalSize() const; | 99 virtual blink::WebSize naturalSize() const; |
104 | 100 |
105 // Getters of playback state. | 101 // Getters of playback state. |
106 virtual bool paused() const; | 102 virtual bool paused() const; |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 scoped_ptr<EncryptedMediaPlayerSupport> encrypted_media_support_; | 304 scoped_ptr<EncryptedMediaPlayerSupport> encrypted_media_support_; |
309 | 305 |
310 const AudioHardwareConfig& audio_hardware_config_; | 306 const AudioHardwareConfig& audio_hardware_config_; |
311 | 307 |
312 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 308 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
313 }; | 309 }; |
314 | 310 |
315 } // namespace media | 311 } // namespace media |
316 | 312 |
317 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 313 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
OLD | NEW |