| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 // WebGL texImage2D, ImageBitmap, printing and capturing capabilities. | 122 // WebGL texImage2D, ImageBitmap, printing and capturing capabilities. |
| 123 void paint(blink::WebCanvas* canvas, | 123 void paint(blink::WebCanvas* canvas, |
| 124 const blink::WebRect& rect, | 124 const blink::WebRect& rect, |
| 125 unsigned char alpha, | 125 unsigned char alpha, |
| 126 SkXfermode::Mode mode) override; | 126 SkXfermode::Mode mode) override; |
| 127 | 127 |
| 128 // True if the loaded media has a playable video/audio track. | 128 // True if the loaded media has a playable video/audio track. |
| 129 bool hasVideo() const override; | 129 bool hasVideo() const override; |
| 130 bool hasAudio() const override; | 130 bool hasAudio() const override; |
| 131 | 131 |
| 132 void enabledAudioTracksChanged( |
| 133 const blink::WebVector<blink::WebMediaPlayer::TrackId>& enabledTrackIds) |
| 134 override; |
| 135 void selectedVideoTrackChanged( |
| 136 blink::WebMediaPlayer::TrackId* selectedTrackId) override; |
| 137 |
| 132 // Dimensions of the video. | 138 // Dimensions of the video. |
| 133 blink::WebSize naturalSize() const override; | 139 blink::WebSize naturalSize() const override; |
| 134 | 140 |
| 135 // Getters of playback state. | 141 // Getters of playback state. |
| 136 bool paused() const override; | 142 bool paused() const override; |
| 137 bool seeking() const override; | 143 bool seeking() const override; |
| 138 double duration() const override; | 144 double duration() const override; |
| 139 virtual double timelineOffset() const; | 145 virtual double timelineOffset() const; |
| 140 double currentTime() const override; | 146 double currentTime() const override; |
| 141 | 147 |
| (...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 511 // Called some-time after OnHidden() if the media was suspended in a playing | 517 // Called some-time after OnHidden() if the media was suspended in a playing |
| 512 // state as part of the call to OnHidden(). | 518 // state as part of the call to OnHidden(). |
| 513 base::OneShotTimer background_pause_timer_; | 519 base::OneShotTimer background_pause_timer_; |
| 514 | 520 |
| 515 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 521 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
| 516 }; | 522 }; |
| 517 | 523 |
| 518 } // namespace media | 524 } // namespace media |
| 519 | 525 |
| 520 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 526 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
| OLD | NEW |