| 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 SkPaint& paint) override; | 109 cc::PaintFlags& paint) override; |
| 110 media::SkCanvasVideoRenderer* GetSkCanvasVideoRenderer(); | 110 media::SkCanvasVideoRenderer* GetSkCanvasVideoRenderer(); |
| 111 void ResetCanvasCache(); | 111 void ResetCanvasCache(); |
| 112 | 112 |
| 113 // Methods to trigger resize event. | 113 // Methods to trigger resize event. |
| 114 void TriggerResize(); | 114 void TriggerResize(); |
| 115 | 115 |
| 116 // True if the loaded media has a playable video/audio track. | 116 // True if the loaded media has a playable video/audio track. |
| 117 bool hasVideo() const override; | 117 bool hasVideo() const override; |
| 118 bool hasAudio() const override; | 118 bool hasAudio() const override; |
| 119 | 119 |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 // True if playback should be started upon the next call to OnShown(). Only | 257 // True if playback should be started upon the next call to OnShown(). Only |
| 258 // used on Android. | 258 // used on Android. |
| 259 bool should_play_upon_shown_; | 259 bool should_play_upon_shown_; |
| 260 | 260 |
| 261 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); | 261 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); |
| 262 }; | 262 }; |
| 263 | 263 |
| 264 } // namespace content | 264 } // namespace content |
| 265 | 265 |
| 266 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ | 266 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ |
| OLD | NEW |