| 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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 // Called to update the current time. | 197 // Called to update the current time. |
| 198 void OnTimeUpdate(const base::TimeDelta& current_time); | 198 void OnTimeUpdate(const base::TimeDelta& current_time); |
| 199 | 199 |
| 200 // Functions called when media player status changes. | 200 // Functions called when media player status changes. |
| 201 void OnConnectedToRemoteDevice(); | 201 void OnConnectedToRemoteDevice(); |
| 202 void OnDisconnectedFromRemoteDevice(); | 202 void OnDisconnectedFromRemoteDevice(); |
| 203 void OnDidEnterFullscreen(); | 203 void OnDidEnterFullscreen(); |
| 204 void OnDidExitFullscreen(); | 204 void OnDidExitFullscreen(); |
| 205 void OnMediaPlayerPlay(); | 205 void OnMediaPlayerPlay(); |
| 206 void OnMediaPlayerPause(); | 206 void OnMediaPlayerPause(); |
| 207 void OnRequestFullscreen(); |
| 207 | 208 |
| 208 // Called when the player is released. | 209 // Called when the player is released. |
| 209 virtual void OnPlayerReleased(); | 210 virtual void OnPlayerReleased(); |
| 210 | 211 |
| 211 // This function is called by the RendererMediaPlayerManager to pause the | 212 // This function is called by the RendererMediaPlayerManager to pause the |
| 212 // video and release the media player and surface texture when we switch tabs. | 213 // video and release the media player and surface texture when we switch tabs. |
| 213 // However, the actual GlTexture is not released to keep the video screenshot. | 214 // However, the actual GlTexture is not released to keep the video screenshot. |
| 214 virtual void ReleaseMediaResources(); | 215 virtual void ReleaseMediaResources(); |
| 215 | 216 |
| 216 // Method inherited from DestructionObserver. | 217 // Method inherited from DestructionObserver. |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 483 | 484 |
| 484 // Proxy to callback for |UpdateNetworkState|. | 485 // Proxy to callback for |UpdateNetworkState|. |
| 485 CallbackProxy<WebKit::WebMediaPlayer::NetworkState>* network_state_cb_; | 486 CallbackProxy<WebKit::WebMediaPlayer::NetworkState>* network_state_cb_; |
| 486 | 487 |
| 487 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); | 488 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); |
| 488 }; | 489 }; |
| 489 | 490 |
| 490 } // namespace content | 491 } // namespace content |
| 491 | 492 |
| 492 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 493 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
| OLD | NEW |