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 <string> | 10 #include <string> |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 // WebGL texImage2D, ImageBitmap, printing and capturing capabilities. | 120 // WebGL texImage2D, ImageBitmap, printing and capturing capabilities. |
121 void paint(blink::WebCanvas* canvas, | 121 void paint(blink::WebCanvas* canvas, |
122 const blink::WebRect& rect, | 122 const blink::WebRect& rect, |
123 unsigned char alpha, | 123 unsigned char alpha, |
124 SkXfermode::Mode mode) override; | 124 SkXfermode::Mode mode) override; |
125 | 125 |
126 // True if the loaded media has a playable video/audio track. | 126 // True if the loaded media has a playable video/audio track. |
127 bool hasVideo() const override; | 127 bool hasVideo() const override; |
128 bool hasAudio() const override; | 128 bool hasAudio() const override; |
129 | 129 |
| 130 void enabledAudioTracksChanged( |
| 131 const blink::WebVector<blink::WebMediaPlayer::TrackId>& enabledTrackIds) |
| 132 override; |
| 133 // |selectedTrackId| is null if no track is selected. |
| 134 void selectedVideoTrackChanged( |
| 135 blink::WebMediaPlayer::TrackId* selectedTrackId) override; |
| 136 |
130 // Dimensions of the video. | 137 // Dimensions of the video. |
131 blink::WebSize naturalSize() const override; | 138 blink::WebSize naturalSize() const override; |
132 | 139 |
133 // Getters of playback state. | 140 // Getters of playback state. |
134 bool paused() const override; | 141 bool paused() const override; |
135 bool seeking() const override; | 142 bool seeking() const override; |
136 double duration() const override; | 143 double duration() const override; |
137 virtual double timelineOffset() const; | 144 virtual double timelineOffset() const; |
138 double currentTime() const override; | 145 double currentTime() const override; |
139 | 146 |
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
489 // started; prevents us from spuriously logging errors that are transient or | 496 // started; prevents us from spuriously logging errors that are transient or |
490 // unimportant. | 497 // unimportant. |
491 bool suppress_destruction_errors_; | 498 bool suppress_destruction_errors_; |
492 | 499 |
493 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 500 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
494 }; | 501 }; |
495 | 502 |
496 } // namespace media | 503 } // namespace media |
497 | 504 |
498 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 505 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
OLD | NEW |