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

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

Issue 2444833004: Decouple MediaSession/MediaSessionObserver from WebContents in Java[OBSOLETE, go to the combined CL] (Closed)
Patch Set: nits 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 const base::android::JavaParamRef<jobject>& jobj); 152 const base::android::JavaParamRef<jobject>& jobj);
153 153
154 jint GetThemeColor(JNIEnv* env, 154 jint GetThemeColor(JNIEnv* env,
155 const base::android::JavaParamRef<jobject>& obj); 155 const base::android::JavaParamRef<jobject>& obj);
156 156
157 void RequestAccessibilitySnapshot( 157 void RequestAccessibilitySnapshot(
158 JNIEnv* env, 158 JNIEnv* env,
159 const base::android::JavaParamRef<jobject>& obj, 159 const base::android::JavaParamRef<jobject>& obj,
160 const base::android::JavaParamRef<jobject>& callback); 160 const base::android::JavaParamRef<jobject>& callback);
161 161
162 void ResumeMediaSession(JNIEnv* env,
163 const base::android::JavaParamRef<jobject>& obj);
164 void SuspendMediaSession(JNIEnv* env,
165 const base::android::JavaParamRef<jobject>& obj);
166 void StopMediaSession(JNIEnv* env,
167 const base::android::JavaParamRef<jobject>& obj);
168
169 base::android::ScopedJavaLocalRef<jstring> GetEncoding( 162 base::android::ScopedJavaLocalRef<jstring> GetEncoding(
170 JNIEnv* env, 163 JNIEnv* env,
171 const base::android::JavaParamRef<jobject>& obj) const; 164 const base::android::JavaParamRef<jobject>& obj) const;
172 165
173 // Relay the access from Java layer to GetScaledContentBitmap through JNI. 166 // Relay the access from Java layer to GetScaledContentBitmap through JNI.
174 void GetContentBitmap(JNIEnv* env, 167 void GetContentBitmap(JNIEnv* env,
175 const base::android::JavaParamRef<jobject>& obj, 168 const base::android::JavaParamRef<jobject>& obj,
176 const base::android::JavaParamRef<jobject>& jcallback, 169 const base::android::JavaParamRef<jobject>& jcallback,
177 const base::android::JavaParamRef<jobject>& color_type, 170 const base::android::JavaParamRef<jobject>& color_type,
178 jfloat scale, 171 jfloat scale,
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 SynchronousCompositorClient* synchronous_compositor_client_; 216 SynchronousCompositorClient* synchronous_compositor_client_;
224 217
225 base::WeakPtrFactory<WebContentsAndroid> weak_factory_; 218 base::WeakPtrFactory<WebContentsAndroid> weak_factory_;
226 219
227 DISALLOW_COPY_AND_ASSIGN(WebContentsAndroid); 220 DISALLOW_COPY_AND_ASSIGN(WebContentsAndroid);
228 }; 221 };
229 222
230 } // namespace content 223 } // namespace content
231 224
232 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ 225 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698