| 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 // Called to update the current time. | 168 // Called to update the current time. |
| 169 void OnTimeUpdate(const base::TimeDelta& current_time); | 169 void OnTimeUpdate(const base::TimeDelta& current_time); |
| 170 | 170 |
| 171 // Functions called when media player status changes. | 171 // Functions called when media player status changes. |
| 172 void OnConnectedToRemoteDevice(); | 172 void OnConnectedToRemoteDevice(); |
| 173 void OnDisconnectedFromRemoteDevice(); | 173 void OnDisconnectedFromRemoteDevice(); |
| 174 void OnDidEnterFullscreen(); | 174 void OnDidEnterFullscreen(); |
| 175 void OnDidExitFullscreen(); | 175 void OnDidExitFullscreen(); |
| 176 void OnMediaPlayerPlay(); | 176 void OnMediaPlayerPlay(); |
| 177 void OnMediaPlayerPause(); | 177 void OnMediaPlayerPause(); |
| 178 void OnRequestFullscreen(); |
| 178 | 179 |
| 179 // Called when the player is released. | 180 // Called when the player is released. |
| 180 virtual void OnPlayerReleased(); | 181 virtual void OnPlayerReleased(); |
| 181 | 182 |
| 182 // This function is called by the RendererMediaPlayerManager to pause the | 183 // This function is called by the RendererMediaPlayerManager to pause the |
| 183 // video and release the media player and surface texture when we switch tabs. | 184 // video and release the media player and surface texture when we switch tabs. |
| 184 // However, the actual GlTexture is not released to keep the video screenshot. | 185 // However, the actual GlTexture is not released to keep the video screenshot. |
| 185 virtual void ReleaseMediaResources(); | 186 virtual void ReleaseMediaResources(); |
| 186 | 187 |
| 187 // Method inherited from DestructionObserver. | 188 // Method inherited from DestructionObserver. |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 447 scoped_ptr<ProxyDecryptor> decryptor_; | 448 scoped_ptr<ProxyDecryptor> decryptor_; |
| 448 | 449 |
| 449 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; | 450 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; |
| 450 | 451 |
| 451 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); | 452 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); |
| 452 }; | 453 }; |
| 453 | 454 |
| 454 } // namespace content | 455 } // namespace content |
| 455 | 456 |
| 456 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 457 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
| OLD | NEW |