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