| 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 | |
| 137 // Dimensions of the video. | 130 // Dimensions of the video. |
| 138 blink::WebSize naturalSize() const override; | 131 blink::WebSize naturalSize() const override; |
| 139 | 132 |
| 140 // Getters of playback state. | 133 // Getters of playback state. |
| 141 bool paused() const override; | 134 bool paused() const override; |
| 142 bool seeking() const override; | 135 bool seeking() const override; |
| 143 double duration() const override; | 136 double duration() const override; |
| 144 virtual double timelineOffset() const; | 137 virtual double timelineOffset() const; |
| 145 double currentTime() const override; | 138 double currentTime() const override; |
| 146 | 139 |
| (...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 503 // state will be set to YES or NO respectively if a frame is available. | 496 // state will be set to YES or NO respectively if a frame is available. |
| 504 enum class CanSuspendState { UNKNOWN, YES, NO }; | 497 enum class CanSuspendState { UNKNOWN, YES, NO }; |
| 505 CanSuspendState can_suspend_state_; | 498 CanSuspendState can_suspend_state_; |
| 506 | 499 |
| 507 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 500 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
| 508 }; | 501 }; |
| 509 | 502 |
| 510 } // namespace media | 503 } // namespace media |
| 511 | 504 |
| 512 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 505 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
| OLD | NEW |