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

Side by Side Diff: content/browser/web_contents/web_contents_android.h

Issue 2439483003: Link MediaSessionTabHelper with native MediaSession [CL is going to be split] (Closed)
Patch Set: addressed comments Created 4 years, 1 month 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 CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 const base::android::JavaParamRef<jobject>& jobj); 151 const base::android::JavaParamRef<jobject>& jobj);
152 152
153 jint GetThemeColor(JNIEnv* env, 153 jint GetThemeColor(JNIEnv* env,
154 const base::android::JavaParamRef<jobject>& obj); 154 const base::android::JavaParamRef<jobject>& obj);
155 155
156 void RequestAccessibilitySnapshot( 156 void RequestAccessibilitySnapshot(
157 JNIEnv* env, 157 JNIEnv* env,
158 const base::android::JavaParamRef<jobject>& obj, 158 const base::android::JavaParamRef<jobject>& obj,
159 const base::android::JavaParamRef<jobject>& callback); 159 const base::android::JavaParamRef<jobject>& callback);
160 160
161 void ResumeMediaSession(JNIEnv* env, 161 // Create a MediaSessionDelegateAndroid object as the native counterpart of
162 const base::android::JavaParamRef<jobject>& obj); 162 // |j_delegate| and link then together, and add it to the MediaSession of this
163 void SuspendMediaSession(JNIEnv* env, 163 // WebContents object.
164 const base::android::JavaParamRef<jobject>& obj); 164 void AddMediaSessionDelegate(
165 void StopMediaSession(JNIEnv* env, 165 JNIEnv* envm,
166 const base::android::JavaParamRef<jobject>& obj); 166 const base::android::JavaParamRef<jobject>& obj,
167 const base::android::JavaParamRef<jobject>& j_delegate);
167 168
168 base::android::ScopedJavaLocalRef<jstring> GetEncoding( 169 base::android::ScopedJavaLocalRef<jstring> GetEncoding(
169 JNIEnv* env, 170 JNIEnv* env,
170 const base::android::JavaParamRef<jobject>& obj) const; 171 const base::android::JavaParamRef<jobject>& obj) const;
171 172
172 // Relay the access from Java layer to GetScaledContentBitmap through JNI. 173 // Relay the access from Java layer to GetScaledContentBitmap through JNI.
173 void GetContentBitmap(JNIEnv* env, 174 void GetContentBitmap(JNIEnv* env,
174 const base::android::JavaParamRef<jobject>& obj, 175 const base::android::JavaParamRef<jobject>& obj,
175 const base::android::JavaParamRef<jobject>& jcallback, 176 const base::android::JavaParamRef<jobject>& jcallback,
176 const base::android::JavaParamRef<jobject>& color_type, 177 const base::android::JavaParamRef<jobject>& color_type,
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 SynchronousCompositorClient* synchronous_compositor_client_; 223 SynchronousCompositorClient* synchronous_compositor_client_;
223 224
224 base::WeakPtrFactory<WebContentsAndroid> weak_factory_; 225 base::WeakPtrFactory<WebContentsAndroid> weak_factory_;
225 226
226 DISALLOW_COPY_AND_ASSIGN(WebContentsAndroid); 227 DISALLOW_COPY_AND_ASSIGN(WebContentsAndroid);
227 }; 228 };
228 229
229 } // namespace content 230 } // namespace content
230 231
231 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ 232 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698