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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 // WebGL texImage2D, ImageBitmap, printing and capturing capabilities. | 121 // WebGL texImage2D, ImageBitmap, printing and capturing capabilities. |
122 void paint(blink::WebCanvas* canvas, | 122 void paint(blink::WebCanvas* canvas, |
123 const blink::WebRect& rect, | 123 const blink::WebRect& rect, |
124 unsigned char alpha, | 124 unsigned char alpha, |
125 SkXfermode::Mode mode) override; | 125 SkXfermode::Mode mode) override; |
126 | 126 |
127 // True if the loaded media has a playable video/audio track. | 127 // True if the loaded media has a playable video/audio track. |
128 bool hasVideo() const override; | 128 bool hasVideo() const override; |
129 bool hasAudio() const override; | 129 bool hasAudio() const override; |
130 | 130 |
| 131 void enabledAudioTracksChanged( |
| 132 const blink::WebVector<blink::WebMediaPlayer::TrackId>& enabledTrackIds) |
| 133 override; |
| 134 void selectedVideoTrackChanged( |
| 135 blink::WebMediaPlayer::TrackId* selectedTrackId) override; |
| 136 |
131 // Dimensions of the video. | 137 // Dimensions of the video. |
132 blink::WebSize naturalSize() const override; | 138 blink::WebSize naturalSize() const override; |
133 | 139 |
134 // Getters of playback state. | 140 // Getters of playback state. |
135 bool paused() const override; | 141 bool paused() const override; |
136 bool seeking() const override; | 142 bool seeking() const override; |
137 double duration() const override; | 143 double duration() const override; |
138 virtual double timelineOffset() const; | 144 virtual double timelineOffset() const; |
139 double currentTime() const override; | 145 double currentTime() const override; |
140 | 146 |
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
501 // state will be set to YES or NO respectively if a frame is available. | 507 // state will be set to YES or NO respectively if a frame is available. |
502 enum class CanSuspendState { UNKNOWN, YES, NO }; | 508 enum class CanSuspendState { UNKNOWN, YES, NO }; |
503 CanSuspendState can_suspend_state_; | 509 CanSuspendState can_suspend_state_; |
504 | 510 |
505 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 511 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
506 }; | 512 }; |
507 | 513 |
508 } // namespace media | 514 } // namespace media |
509 | 515 |
510 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 516 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
OLD | NEW |