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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 // Called to update the current time. | 205 // Called to update the current time. |
206 void OnTimeUpdate(base::TimeDelta current_timestamp, | 206 void OnTimeUpdate(base::TimeDelta current_timestamp, |
207 base::TimeTicks current_time_ticks); | 207 base::TimeTicks current_time_ticks); |
208 | 208 |
209 // Functions called when media player status changes. | 209 // Functions called when media player status changes. |
210 void OnConnectedToRemoteDevice(const std::string& remote_playback_message); | 210 void OnConnectedToRemoteDevice(const std::string& remote_playback_message); |
211 void OnDisconnectedFromRemoteDevice(); | 211 void OnDisconnectedFromRemoteDevice(); |
212 void OnDidExitFullscreen(); | 212 void OnDidExitFullscreen(); |
213 void OnMediaPlayerPlay(); | 213 void OnMediaPlayerPlay(); |
214 void OnMediaPlayerPause(); | 214 void OnMediaPlayerPause(); |
215 void OnRequestFullscreen(); | |
216 void OnRemoteRouteAvailabilityChanged(bool routes_available); | 215 void OnRemoteRouteAvailabilityChanged(bool routes_available); |
217 | 216 |
218 // StreamTextureFactoryContextObserver implementation. | 217 // StreamTextureFactoryContextObserver implementation. |
219 void ResetStreamTextureProxy() override; | 218 void ResetStreamTextureProxy() override; |
220 | 219 |
221 // Called when the player is released. | 220 // Called when the player is released. |
222 virtual void OnPlayerReleased(); | 221 virtual void OnPlayerReleased(); |
223 | 222 |
224 // This function is called by the RendererMediaPlayerManager to pause the | 223 // This function is called by the RendererMediaPlayerManager to pause the |
225 // video and release the media player and surface texture when we switch tabs. | 224 // video and release the media player and surface texture when we switch tabs. |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
523 | 522 |
524 // NOTE: Weak pointers must be invalidated before all other member variables. | 523 // NOTE: Weak pointers must be invalidated before all other member variables. |
525 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; | 524 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; |
526 | 525 |
527 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); | 526 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); |
528 }; | 527 }; |
529 | 528 |
530 } // namespace content | 529 } // namespace content |
531 | 530 |
532 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 531 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
OLD | NEW |