| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 virtual void seek(double seconds); | 88 virtual void seek(double seconds); |
| 89 virtual void setRate(double rate); | 89 virtual void setRate(double rate); |
| 90 virtual void setVolume(double volume); | 90 virtual void setVolume(double volume); |
| 91 virtual void setPreload(blink::WebMediaPlayer::Preload preload); | 91 virtual void setPreload(blink::WebMediaPlayer::Preload preload); |
| 92 virtual blink::WebTimeRanges buffered() const; | 92 virtual blink::WebTimeRanges buffered() const; |
| 93 virtual double maxTimeSeekable() const; | 93 virtual double maxTimeSeekable() const; |
| 94 | 94 |
| 95 // Methods for painting. | 95 // Methods for painting. |
| 96 virtual void paint(blink::WebCanvas* canvas, | 96 virtual void paint(blink::WebCanvas* canvas, |
| 97 const blink::WebRect& rect, | 97 const blink::WebRect& rect, |
| 98 unsigned char alpha, |
| 99 SkXfermode::Mode mode); |
| 100 // TODO(dshwang): remove it because above method replaces. crbug.com/401027 |
| 101 virtual void paint(blink::WebCanvas* canvas, |
| 102 const blink::WebRect& rect, |
| 98 unsigned char alpha); | 103 unsigned char alpha); |
| 99 | 104 |
| 100 // True if the loaded media has a playable video/audio track. | 105 // True if the loaded media has a playable video/audio track. |
| 101 virtual bool hasVideo() const; | 106 virtual bool hasVideo() const; |
| 102 virtual bool hasAudio() const; | 107 virtual bool hasAudio() const; |
| 103 | 108 |
| 104 // Dimensions of the video. | 109 // Dimensions of the video. |
| 105 virtual blink::WebSize naturalSize() const; | 110 virtual blink::WebSize naturalSize() const; |
| 106 | 111 |
| 107 // Getters of playback state. | 112 // Getters of playback state. |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 WebContentDecryptionModuleImpl* web_cdm_; | 363 WebContentDecryptionModuleImpl* web_cdm_; |
| 359 | 364 |
| 360 media::DecryptorReadyCB decryptor_ready_cb_; | 365 media::DecryptorReadyCB decryptor_ready_cb_; |
| 361 | 366 |
| 362 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 367 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
| 363 }; | 368 }; |
| 364 | 369 |
| 365 } // namespace content | 370 } // namespace content |
| 366 | 371 |
| 367 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ | 372 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ |
| OLD | NEW |