Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(264)

Side by Side Diff: chrome/browser/media/android/remote/remote_media_player_bridge.h

Issue 1580733002: [Android cast] Make the local player exit seeking mode on cast start (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename a function to avoid tripping the clang checker Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 OnSeekCompleted(JNIEnv* env,
87 const base::android::JavaParamRef<jobject>& obj);
86 88
87 // Wrappers for calls to Java used by the remote media player manager 89 // Wrappers for calls to Java used by the remote media player manager
88 void RequestRemotePlayback(); 90 void RequestRemotePlayback();
89 void RequestRemotePlaybackControl(); 91 void RequestRemotePlaybackControl();
90 void SetNativePlayer(); 92 void SetNativePlayer();
91 void OnPlayerCreated(); 93 void OnPlayerCreated();
92 void OnPlayerDestroyed(); 94 void OnPlayerDestroyed();
93 95
94 // Gets the message to display on the embedded player while casting. 96 // Gets the message to display on the embedded player while casting.
95 std::string GetCastingMessage(); 97 std::string GetCastingMessage();
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 152
151 // NOTE: Weak pointers must be invalidated before all other member variables. 153 // NOTE: Weak pointers must be invalidated before all other member variables.
152 base::WeakPtrFactory<RemoteMediaPlayerBridge> weak_factory_; 154 base::WeakPtrFactory<RemoteMediaPlayerBridge> weak_factory_;
153 155
154 DISALLOW_COPY_AND_ASSIGN(RemoteMediaPlayerBridge); 156 DISALLOW_COPY_AND_ASSIGN(RemoteMediaPlayerBridge);
155 }; 157 };
156 158
157 } // namespace remote_media 159 } // namespace remote_media
158 160
159 #endif // CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_BRIDGE_H_ 161 #endif // CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_BRIDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698