| 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 WEBKIT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 5 #ifndef WEBKIT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
| 6 #define WEBKIT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 6 #define WEBKIT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 OVERRIDE; | 156 OVERRIDE; |
| 157 | 157 |
| 158 // Media player callback handlers. | 158 // Media player callback handlers. |
| 159 void OnMediaMetadataChanged(base::TimeDelta duration, int width, | 159 void OnMediaMetadataChanged(base::TimeDelta duration, int width, |
| 160 int height, bool success); | 160 int height, bool success); |
| 161 void OnPlaybackComplete(); | 161 void OnPlaybackComplete(); |
| 162 void OnBufferingUpdate(int percentage); | 162 void OnBufferingUpdate(int percentage); |
| 163 void OnSeekComplete(base::TimeDelta current_time); | 163 void OnSeekComplete(base::TimeDelta current_time); |
| 164 void OnMediaError(int error_type); | 164 void OnMediaError(int error_type); |
| 165 void OnVideoSizeChanged(int width, int height); | 165 void OnVideoSizeChanged(int width, int height); |
| 166 void OnMediaSeekRequest(base::TimeDelta time_to_seek, | 166 void OnMediaSeekRequest(base::TimeDelta time_to_seek); |
| 167 bool request_texture_peer); | 167 void OnMediaConfigRequest(); |
| 168 | 168 |
| 169 // Called to update the current time. | 169 // Called to update the current time. |
| 170 void OnTimeUpdate(base::TimeDelta current_time); | 170 void OnTimeUpdate(base::TimeDelta current_time); |
| 171 | 171 |
| 172 // Functions called when media player status changes. | 172 // Functions called when media player status changes. |
| 173 void OnMediaPlayerPlay(); | 173 void OnMediaPlayerPlay(); |
| 174 void OnMediaPlayerPause(); | 174 void OnMediaPlayerPause(); |
| 175 void OnDidEnterFullscreen(); | 175 void OnDidEnterFullscreen(); |
| 176 void OnDidExitFullscreen(); | 176 void OnDidExitFullscreen(); |
| 177 | 177 |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 | 391 |
| 392 // The decryptor that manages decryption keys and decrypts encrypted frames. | 392 // The decryptor that manages decryption keys and decrypts encrypted frames. |
| 393 scoped_ptr<ProxyDecryptor> decryptor_; | 393 scoped_ptr<ProxyDecryptor> decryptor_; |
| 394 | 394 |
| 395 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); | 395 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); |
| 396 }; | 396 }; |
| 397 | 397 |
| 398 } // namespace webkit_media | 398 } // namespace webkit_media |
| 399 | 399 |
| 400 #endif // WEBKIT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 400 #endif // WEBKIT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
| OLD | NEW |