| 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 CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_BRIDGE_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_BRIDGE_H_ |
| 6 #define CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_BRIDGE_H_ | 6 #define CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_BRIDGE_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 const base::android::JavaParamRef<jobject>& obj); | 76 const base::android::JavaParamRef<jobject>& obj); |
| 77 void PauseLocal(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj); | 77 void PauseLocal(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj); |
| 78 jint GetLocalPosition(JNIEnv* env, | 78 jint GetLocalPosition(JNIEnv* env, |
| 79 const base::android::JavaParamRef<jobject>& obj); | 79 const base::android::JavaParamRef<jobject>& obj); |
| 80 void OnCastStarting( | 80 void OnCastStarting( |
| 81 JNIEnv* env, | 81 JNIEnv* env, |
| 82 const base::android::JavaParamRef<jobject>& obj, | 82 const base::android::JavaParamRef<jobject>& obj, |
| 83 const base::android::JavaParamRef<jstring>& casting_message); | 83 const base::android::JavaParamRef<jstring>& casting_message); |
| 84 void OnCastStopping(JNIEnv* env, | 84 void OnCastStopping(JNIEnv* env, |
| 85 const base::android::JavaParamRef<jobject>& obj); | 85 const base::android::JavaParamRef<jobject>& obj); |
| 86 void OnSeekComplete(JNIEnv* env, |
| 87 const base::android::JavaParamRef<jobject>& obj, |
| 88 const int position); |
| 86 | 89 |
| 87 // Wrappers for calls to Java used by the remote media player manager | 90 // Wrappers for calls to Java used by the remote media player manager |
| 88 void RequestRemotePlayback(); | 91 void RequestRemotePlayback(); |
| 89 void RequestRemotePlaybackControl(); | 92 void RequestRemotePlaybackControl(); |
| 90 void SetNativePlayer(); | 93 void SetNativePlayer(); |
| 91 void OnPlayerCreated(); | 94 void OnPlayerCreated(); |
| 92 void OnPlayerDestroyed(); | 95 void OnPlayerDestroyed(); |
| 93 | 96 |
| 94 // Gets the message to display on the embedded player while casting. | 97 // Gets the message to display on the embedded player while casting. |
| 95 std::string GetCastingMessage(); | 98 std::string GetCastingMessage(); |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 | 153 |
| 151 // NOTE: Weak pointers must be invalidated before all other member variables. | 154 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 152 base::WeakPtrFactory<RemoteMediaPlayerBridge> weak_factory_; | 155 base::WeakPtrFactory<RemoteMediaPlayerBridge> weak_factory_; |
| 153 | 156 |
| 154 DISALLOW_COPY_AND_ASSIGN(RemoteMediaPlayerBridge); | 157 DISALLOW_COPY_AND_ASSIGN(RemoteMediaPlayerBridge); |
| 155 }; | 158 }; |
| 156 | 159 |
| 157 } // namespace remote_media | 160 } // namespace remote_media |
| 158 | 161 |
| 159 #endif // CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_BRIDGE_H_ | 162 #endif // CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_BRIDGE_H_ |
| OLD | NEW |