| 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 getLastUploadedFrameInfo(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 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 704 // Pipeline media duration overridden by tests. | 708 // Pipeline media duration overridden by tests. |
| 705 base::Optional<base::TimeDelta> pipeline_media_duration_for_test_; | 709 base::Optional<base::TimeDelta> pipeline_media_duration_for_test_; |
| 706 | 710 |
| 707 // Whether the video requires a user gesture to resume after it was paused in | 711 // Whether the video requires a user gesture to resume after it was paused in |
| 708 // the background. Affects the value of ShouldPauseVideoWhenHidden(). | 712 // the background. Affects the value of ShouldPauseVideoWhenHidden(). |
| 709 bool video_locked_when_paused_when_hidden_ = false; | 713 bool video_locked_when_paused_when_hidden_ = false; |
| 710 | 714 |
| 711 // Whether embedded media experience is currently enabled. | 715 // Whether embedded media experience is currently enabled. |
| 712 bool embedded_media_experience_enabled_ = false; | 716 bool embedded_media_experience_enabled_ = false; |
| 713 | 717 |
| 718 gfx::Size last_uploaded_frame_size_; |
| 719 base::TimeDelta last_uploaded_frame_timestamp_; |
| 720 |
| 714 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 721 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
| 715 }; | 722 }; |
| 716 | 723 |
| 717 } // namespace media | 724 } // namespace media |
| 718 | 725 |
| 719 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 726 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
| OLD | NEW |