| 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. |
| 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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 WebContentDecryptionModuleImpl* web_cdm_; | 343 WebContentDecryptionModuleImpl* web_cdm_; |
| 339 | 344 |
| 340 media::DecryptorReadyCB decryptor_ready_cb_; | 345 media::DecryptorReadyCB decryptor_ready_cb_; |
| 341 | 346 |
| 342 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 347 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
| 343 }; | 348 }; |
| 344 | 349 |
| 345 } // namespace content | 350 } // namespace content |
| 346 | 351 |
| 347 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ | 352 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ |
| OLD | NEW |