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_MS_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ |
6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ | 6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 virtual void seek(double seconds); | 72 virtual void seek(double seconds); |
73 virtual void setRate(double rate); | 73 virtual void setRate(double rate); |
74 virtual void setVolume(double volume); | 74 virtual void setVolume(double volume); |
75 virtual void setPreload(blink::WebMediaPlayer::Preload preload); | 75 virtual void setPreload(blink::WebMediaPlayer::Preload preload); |
76 virtual blink::WebTimeRanges buffered() const; | 76 virtual blink::WebTimeRanges buffered() const; |
77 virtual double maxTimeSeekable() const; | 77 virtual double maxTimeSeekable() const; |
78 | 78 |
79 // Methods for painting. | 79 // Methods for painting. |
80 virtual void paint(blink::WebCanvas* canvas, | 80 virtual void paint(blink::WebCanvas* canvas, |
81 const blink::WebRect& rect, | 81 const blink::WebRect& rect, |
| 82 unsigned char alpha, |
| 83 SkXfermode::Mode mode); |
| 84 // TODO(dshwang): remove it. |
| 85 virtual void paint(blink::WebCanvas* canvas, |
| 86 const blink::WebRect& rect, |
82 unsigned char alpha); | 87 unsigned char alpha); |
83 | 88 |
84 // True if the loaded media has a playable video/audio track. | 89 // True if the loaded media has a playable video/audio track. |
85 virtual bool hasVideo() const; | 90 virtual bool hasVideo() const; |
86 virtual bool hasAudio() const; | 91 virtual bool hasAudio() const; |
87 | 92 |
88 // Dimensions of the video. | 93 // Dimensions of the video. |
89 virtual blink::WebSize naturalSize() const; | 94 virtual blink::WebSize naturalSize() const; |
90 | 95 |
91 // Getters of playback state. | 96 // Getters of playback state. |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 scoped_refptr<media::MediaLog> media_log_; | 188 scoped_refptr<media::MediaLog> media_log_; |
184 | 189 |
185 scoped_ptr<MediaStreamRendererFactory> renderer_factory_; | 190 scoped_ptr<MediaStreamRendererFactory> renderer_factory_; |
186 | 191 |
187 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); | 192 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); |
188 }; | 193 }; |
189 | 194 |
190 } // namespace content | 195 } // namespace content |
191 | 196 |
192 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ | 197 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ |
OLD | NEW |