| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 virtual void setVolume(double volume); | 76 virtual void setVolume(double volume); |
| 77 virtual void setPreload(blink::WebMediaPlayer::Preload preload); | 77 virtual void setPreload(blink::WebMediaPlayer::Preload preload); |
| 78 virtual blink::WebTimeRanges buffered() const; | 78 virtual blink::WebTimeRanges buffered() const; |
| 79 virtual blink::WebTimeRanges seekable() const; | 79 virtual blink::WebTimeRanges seekable() const; |
| 80 | 80 |
| 81 // Methods for painting. | 81 // Methods for painting. |
| 82 virtual void paint(blink::WebCanvas* canvas, | 82 virtual void paint(blink::WebCanvas* canvas, |
| 83 const blink::WebRect& rect, | 83 const blink::WebRect& rect, |
| 84 unsigned char alpha, | 84 unsigned char alpha, |
| 85 SkXfermode::Mode mode); | 85 SkXfermode::Mode mode); |
| 86 // TODO(dshwang): remove it because above method replaces. crbug.com/401027 | |
| 87 virtual void paint(blink::WebCanvas* canvas, | |
| 88 const blink::WebRect& rect, | |
| 89 unsigned char alpha); | |
| 90 | 86 |
| 91 // True if the loaded media has a playable video/audio track. | 87 // True if the loaded media has a playable video/audio track. |
| 92 virtual bool hasVideo() const; | 88 virtual bool hasVideo() const; |
| 93 virtual bool hasAudio() const; | 89 virtual bool hasAudio() const; |
| 94 | 90 |
| 95 // Dimensions of the video. | 91 // Dimensions of the video. |
| 96 virtual blink::WebSize naturalSize() const; | 92 virtual blink::WebSize naturalSize() const; |
| 97 | 93 |
| 98 // Getters of playback state. | 94 // Getters of playback state. |
| 99 virtual bool paused() const; | 95 virtual bool paused() const; |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 scoped_refptr<media::MediaLog> media_log_; | 188 scoped_refptr<media::MediaLog> media_log_; |
| 193 | 189 |
| 194 scoped_ptr<MediaStreamRendererFactory> renderer_factory_; | 190 scoped_ptr<MediaStreamRendererFactory> renderer_factory_; |
| 195 | 191 |
| 196 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); | 192 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); |
| 197 }; | 193 }; |
| 198 | 194 |
| 199 } // namespace content | 195 } // namespace content |
| 200 | 196 |
| 201 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ | 197 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ |
| OLD | NEW |