| 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 CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 6 #define CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 // True if the loaded media has a playable video/audio track. | 147 // True if the loaded media has a playable video/audio track. |
| 148 virtual bool hasVideo() const; | 148 virtual bool hasVideo() const; |
| 149 virtual bool hasAudio() const; | 149 virtual bool hasAudio() const; |
| 150 | 150 |
| 151 virtual bool isRemote() const; | 151 virtual bool isRemote() const; |
| 152 | 152 |
| 153 // Dimensions of the video. | 153 // Dimensions of the video. |
| 154 virtual blink::WebSize naturalSize() const; | 154 virtual blink::WebSize naturalSize() const; |
| 155 | 155 |
| 156 // Getters of playback state. | 156 // Getters of playback state. |
| 157 virtual bool paused() const; | 157 bool paused() const override; |
| 158 virtual bool seeking() const; | 158 bool seeking() const override; |
| 159 virtual double duration() const; | 159 double earliestTime() const override; |
| 160 virtual double timelineOffset() const; | 160 double duration() const override; |
| 161 virtual double currentTime() const; | 161 virtual timelineOffset() const; |
| 162 double currentTime() const override; |
| 162 | 163 |
| 163 virtual bool didLoadingProgress(); | 164 virtual bool didLoadingProgress(); |
| 164 | 165 |
| 165 // Internal states of loading and network. | 166 // Internal states of loading and network. |
| 166 virtual blink::WebMediaPlayer::NetworkState networkState() const; | 167 virtual blink::WebMediaPlayer::NetworkState networkState() const; |
| 167 virtual blink::WebMediaPlayer::ReadyState readyState() const; | 168 virtual blink::WebMediaPlayer::ReadyState readyState() const; |
| 168 | 169 |
| 169 virtual bool hasSingleSecurityOrigin() const; | 170 virtual bool hasSingleSecurityOrigin() const; |
| 170 virtual bool didPassCORSAccessCheck() const; | 171 virtual bool didPassCORSAccessCheck() const; |
| 171 | 172 |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 531 | 532 |
| 532 // NOTE: Weak pointers must be invalidated before all other member variables. | 533 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 533 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; | 534 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; |
| 534 | 535 |
| 535 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); | 536 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); |
| 536 }; | 537 }; |
| 537 | 538 |
| 538 } // namespace content | 539 } // namespace content |
| 539 | 540 |
| 540 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 541 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
| OLD | NEW |