| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 void setSinkId(const blink::WebString& sink_id, | 98 void setSinkId(const blink::WebString& sink_id, |
| 99 const blink::WebSecurityOrigin& security_origin, | 99 const blink::WebSecurityOrigin& security_origin, |
| 100 blink::WebSetSinkIdCallbacks* web_callback) override; | 100 blink::WebSetSinkIdCallbacks* web_callback) override; |
| 101 void setPreload(blink::WebMediaPlayer::Preload preload) override; | 101 void setPreload(blink::WebMediaPlayer::Preload preload) override; |
| 102 blink::WebTimeRanges buffered() const override; | 102 blink::WebTimeRanges buffered() const override; |
| 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 SkPaint& paint) override; | 108 cc::PaintFlags& paint) override; |
| 109 media::SkCanvasVideoRenderer* GetSkCanvasVideoRenderer(); | 109 media::SkCanvasVideoRenderer* GetSkCanvasVideoRenderer(); |
| 110 void ResetCanvasCache(); | 110 void ResetCanvasCache(); |
| 111 | 111 |
| 112 // Methods to trigger resize event. | 112 // Methods to trigger resize event. |
| 113 void TriggerResize(); | 113 void TriggerResize(); |
| 114 | 114 |
| 115 // True if the loaded media has a playable video/audio track. | 115 // True if the loaded media has a playable video/audio track. |
| 116 bool hasVideo() const override; | 116 bool hasVideo() const override; |
| 117 bool hasAudio() const override; | 117 bool hasAudio() const override; |
| 118 | 118 |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 // True if playback should be started upon the next call to OnShown(). Only | 250 // True if playback should be started upon the next call to OnShown(). Only |
| 251 // used on Android. | 251 // used on Android. |
| 252 bool should_play_upon_shown_; | 252 bool should_play_upon_shown_; |
| 253 | 253 |
| 254 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); | 254 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); |
| 255 }; | 255 }; |
| 256 | 256 |
| 257 } // namespace content | 257 } // namespace content |
| 258 | 258 |
| 259 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ | 259 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ |
| OLD | NEW |