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 <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 void setSinkId(const blink::WebString& sink_id, | 99 void setSinkId(const blink::WebString& sink_id, |
100 const blink::WebSecurityOrigin& security_origin, | 100 const blink::WebSecurityOrigin& security_origin, |
101 blink::WebSetSinkIdCallbacks* web_callback) override; | 101 blink::WebSetSinkIdCallbacks* web_callback) override; |
102 void setPreload(blink::WebMediaPlayer::Preload preload) override; | 102 void setPreload(blink::WebMediaPlayer::Preload preload) override; |
103 blink::WebTimeRanges buffered() const override; | 103 blink::WebTimeRanges buffered() const override; |
104 blink::WebTimeRanges seekable() const override; | 104 blink::WebTimeRanges seekable() const override; |
105 | 105 |
106 // Methods for painting. | 106 // Methods for painting. |
107 void paint(blink::WebCanvas* canvas, | 107 void paint(blink::WebCanvas* canvas, |
108 const blink::WebRect& rect, | 108 const blink::WebRect& rect, |
109 unsigned char alpha, | 109 SkPaint& paint) override; |
110 SkXfermode::Mode mode) override; | |
111 media::SkCanvasVideoRenderer* GetSkCanvasVideoRenderer(); | 110 media::SkCanvasVideoRenderer* GetSkCanvasVideoRenderer(); |
112 void ResetCanvasCache(); | 111 void ResetCanvasCache(); |
113 | 112 |
114 // Methods to trigger resize event. | 113 // Methods to trigger resize event. |
115 void TriggerResize(); | 114 void TriggerResize(); |
116 | 115 |
117 // True if the loaded media has a playable video/audio track. | 116 // True if the loaded media has a playable video/audio track. |
118 bool hasVideo() const override; | 117 bool hasVideo() const override; |
119 bool hasAudio() const override; | 118 bool hasAudio() const override; |
120 | 119 |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 // True if playback should be started upon the next call to OnShown(). Only | 236 // True if playback should be started upon the next call to OnShown(). Only |
238 // used on Android. | 237 // used on Android. |
239 bool should_play_upon_shown_; | 238 bool should_play_upon_shown_; |
240 | 239 |
241 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); | 240 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); |
242 }; | 241 }; |
243 | 242 |
244 } // namespace content | 243 } // namespace content |
245 | 244 |
246 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ | 245 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ |
OLD | NEW |