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. | |
scherkus (not reviewing)
2014/08/21 01:09:01
ditto
| |
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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
185 scoped_refptr<media::MediaLog> media_log_; | 190 scoped_refptr<media::MediaLog> media_log_; |
186 | 191 |
187 scoped_ptr<MediaStreamRendererFactory> renderer_factory_; | 192 scoped_ptr<MediaStreamRendererFactory> renderer_factory_; |
188 | 193 |
189 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); | 194 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); |
190 }; | 195 }; |
191 | 196 |
192 } // namespace content | 197 } // namespace content |
193 | 198 |
194 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ | 199 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ |
OLD | NEW |