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_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ |
6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ | 6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
84 virtual void seek(double seconds); | 84 virtual void seek(double seconds); |
85 virtual void setRate(double rate); | 85 virtual void setRate(double rate); |
86 virtual void setVolume(double volume); | 86 virtual void setVolume(double volume); |
87 virtual void setPreload(blink::WebMediaPlayer::Preload preload); | 87 virtual void setPreload(blink::WebMediaPlayer::Preload preload); |
88 virtual blink::WebTimeRanges buffered() const; | 88 virtual blink::WebTimeRanges buffered() const; |
89 virtual double maxTimeSeekable() const; | 89 virtual double maxTimeSeekable() const; |
90 | 90 |
91 // Methods for painting. | 91 // Methods for painting. |
92 virtual void paint(blink::WebCanvas* canvas, | 92 virtual void paint(blink::WebCanvas* canvas, |
93 const blink::WebRect& rect, | 93 const blink::WebRect& rect, |
94 unsigned char alpha, | |
95 SkXfermode::Mode mode); | |
96 // TODO(dshwang): remove it. | |
scherkus (not reviewing)
2014/08/21 01:09:01
ditto
| |
97 virtual void paint(blink::WebCanvas* canvas, | |
98 const blink::WebRect& rect, | |
94 unsigned char alpha); | 99 unsigned char alpha); |
95 | 100 |
96 // True if the loaded media has a playable video/audio track. | 101 // True if the loaded media has a playable video/audio track. |
97 virtual bool hasVideo() const; | 102 virtual bool hasVideo() const; |
98 virtual bool hasAudio() const; | 103 virtual bool hasAudio() const; |
99 | 104 |
100 // Dimensions of the video. | 105 // Dimensions of the video. |
101 virtual blink::WebSize naturalSize() const; | 106 virtual blink::WebSize naturalSize() const; |
102 | 107 |
103 // Getters of playback state. | 108 // Getters of playback state. |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
341 WebContentDecryptionModuleImpl* web_cdm_; | 346 WebContentDecryptionModuleImpl* web_cdm_; |
342 | 347 |
343 media::DecryptorReadyCB decryptor_ready_cb_; | 348 media::DecryptorReadyCB decryptor_ready_cb_; |
344 | 349 |
345 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 350 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
346 }; | 351 }; |
347 | 352 |
348 } // namespace content | 353 } // namespace content |
349 | 354 |
350 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ | 355 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ |
OLD | NEW |