| 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 MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 5 #ifndef MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
| 6 #define MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 6 #define MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 void setBufferingStrategy( | 117 void setBufferingStrategy( |
| 118 blink::WebMediaPlayer::BufferingStrategy buffering_strategy) override; | 118 blink::WebMediaPlayer::BufferingStrategy buffering_strategy) override; |
| 119 blink::WebTimeRanges buffered() const override; | 119 blink::WebTimeRanges buffered() const override; |
| 120 blink::WebTimeRanges seekable() const override; | 120 blink::WebTimeRanges seekable() const override; |
| 121 | 121 |
| 122 // paint() the current video frame into |canvas|. This is used to support | 122 // paint() the current video frame into |canvas|. This is used to support |
| 123 // various APIs and functionalities, including but not limited to: <canvas>, | 123 // various APIs and functionalities, including but not limited to: <canvas>, |
| 124 // WebGL texImage2D, ImageBitmap, printing and capturing capabilities. | 124 // WebGL texImage2D, ImageBitmap, printing and capturing capabilities. |
| 125 void paint(blink::WebCanvas* canvas, | 125 void paint(blink::WebCanvas* canvas, |
| 126 const blink::WebRect& rect, | 126 const blink::WebRect& rect, |
| 127 SkPaint& paint) override; | 127 CdlPaint& paint) override; |
| 128 | 128 |
| 129 // True if the loaded media has a playable video/audio track. | 129 // True if the loaded media has a playable video/audio track. |
| 130 bool hasVideo() const override; | 130 bool hasVideo() const override; |
| 131 bool hasAudio() const override; | 131 bool hasAudio() const override; |
| 132 | 132 |
| 133 void enabledAudioTracksChanged( | 133 void enabledAudioTracksChanged( |
| 134 const blink::WebVector<blink::WebMediaPlayer::TrackId>& enabledTrackIds) | 134 const blink::WebVector<blink::WebMediaPlayer::TrackId>& enabledTrackIds) |
| 135 override; | 135 override; |
| 136 void selectedVideoTrackChanged( | 136 void selectedVideoTrackChanged( |
| 137 blink::WebMediaPlayer::TrackId* selectedTrackId) override; | 137 blink::WebMediaPlayer::TrackId* selectedTrackId) override; |
| (...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 578 | 578 |
| 579 // Whether the player is currently in autoplay muted state. | 579 // Whether the player is currently in autoplay muted state. |
| 580 bool autoplay_muted_ = false; | 580 bool autoplay_muted_ = false; |
| 581 | 581 |
| 582 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 582 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
| 583 }; | 583 }; |
| 584 | 584 |
| 585 } // namespace media | 585 } // namespace media |
| 586 | 586 |
| 587 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 587 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
| OLD | NEW |