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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 blink::WebTimeRanges seekable() const override; | 103 blink::WebTimeRanges seekable() const override; |
104 | 104 |
105 // Methods for painting. | 105 // Methods for painting. |
106 void paint(blink::WebCanvas* canvas, | 106 void paint(blink::WebCanvas* canvas, |
107 const blink::WebRect& rect, | 107 const blink::WebRect& rect, |
108 unsigned char alpha, | 108 unsigned char alpha, |
109 SkXfermode::Mode mode) override; | 109 SkXfermode::Mode mode) override; |
110 media::SkCanvasVideoRenderer* GetSkCanvasVideoRenderer(); | 110 media::SkCanvasVideoRenderer* GetSkCanvasVideoRenderer(); |
111 void ResetCanvasCache(); | 111 void ResetCanvasCache(); |
112 | 112 |
| 113 // Methods to trigger resize event. |
| 114 void TriggerResize(); |
| 115 |
113 // True if the loaded media has a playable video/audio track. | 116 // True if the loaded media has a playable video/audio track. |
114 bool hasVideo() const override; | 117 bool hasVideo() const override; |
115 bool hasAudio() const override; | 118 bool hasAudio() const override; |
116 | 119 |
117 // Dimensions of the video. | 120 // Dimensions of the video. |
118 blink::WebSize naturalSize() const override; | 121 blink::WebSize naturalSize() const override; |
119 | 122 |
120 // Getters of playback state. | 123 // Getters of playback state. |
121 bool paused() const override; | 124 bool paused() const override; |
122 bool seeking() const override; | 125 bool seeking() const override; |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 // True if playback should be started upon the next call to OnShown(). Only | 235 // True if playback should be started upon the next call to OnShown(). Only |
233 // used on Android. | 236 // used on Android. |
234 bool should_play_upon_shown_; | 237 bool should_play_upon_shown_; |
235 | 238 |
236 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); | 239 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); |
237 }; | 240 }; |
238 | 241 |
239 } // namespace content | 242 } // namespace content |
240 | 243 |
241 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ | 244 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ |
OLD | NEW |