| 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 // True if the loaded media has a playable video/audio track. | 133 // True if the loaded media has a playable video/audio track. |
| 134 bool hasVideo() const override; | 134 bool hasVideo() const override; |
| 135 bool hasAudio() const override; | 135 bool hasAudio() const override; |
| 136 | 136 |
| 137 void enabledAudioTracksChanged( | 137 void enabledAudioTracksChanged( |
| 138 const blink::WebVector<blink::WebMediaPlayer::TrackId>& enabledTrackIds) | 138 const blink::WebVector<blink::WebMediaPlayer::TrackId>& enabledTrackIds) |
| 139 override; | 139 override; |
| 140 void selectedVideoTrackChanged( | 140 void selectedVideoTrackChanged( |
| 141 blink::WebMediaPlayer::TrackId* selectedTrackId) override; | 141 blink::WebMediaPlayer::TrackId* selectedTrackId) override; |
| 142 | 142 |
| 143 bool getCurrentFrameInfo(unsigned* width, |
| 144 unsigned* height, |
| 145 double* timestamp) override; |
| 146 |
| 143 // Dimensions of the video. | 147 // Dimensions of the video. |
| 144 blink::WebSize naturalSize() const override; | 148 blink::WebSize naturalSize() const override; |
| 145 | 149 |
| 146 // Getters of playback state. | 150 // Getters of playback state. |
| 147 bool paused() const override; | 151 bool paused() const override; |
| 148 bool seeking() const override; | 152 bool seeking() const override; |
| 149 double duration() const override; | 153 double duration() const override; |
| 150 virtual double timelineOffset() const; | 154 virtual double timelineOffset() const; |
| 151 double currentTime() const override; | 155 double currentTime() const override; |
| 152 | 156 |
| (...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 709 | 713 |
| 710 // Whether embedded media experience is currently enabled. | 714 // Whether embedded media experience is currently enabled. |
| 711 bool embedded_media_experience_enabled_ = false; | 715 bool embedded_media_experience_enabled_ = false; |
| 712 | 716 |
| 713 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 717 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
| 714 }; | 718 }; |
| 715 | 719 |
| 716 } // namespace media | 720 } // namespace media |
| 717 | 721 |
| 718 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 722 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
| OLD | NEW |