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

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: Don't review, this CL is getting huge and needs to be split Created 4 years, 2 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 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,
162 const base::android::JavaParamRef<jobject>& obj);
163 void SuspendMediaSession(JNIEnv* env,
164 const base::android::JavaParamRef<jobject>& obj);
165 void StopMediaSession(JNIEnv* env,
166 const base::android::JavaParamRef<jobject>& obj);
167
168 base::android::ScopedJavaLocalRef<jstring> GetEncoding( 161 base::android::ScopedJavaLocalRef<jstring> GetEncoding(
169 JNIEnv* env, 162 JNIEnv* env,
170 const base::android::JavaParamRef<jobject>& obj) const; 163 const base::android::JavaParamRef<jobject>& obj) const;
171 164
172 // Relay the access from Java layer to GetScaledContentBitmap through JNI. 165 // Relay the access from Java layer to GetScaledContentBitmap through JNI.
173 void GetContentBitmap(JNIEnv* env, 166 void GetContentBitmap(JNIEnv* env,
174 const base::android::JavaParamRef<jobject>& obj, 167 const base::android::JavaParamRef<jobject>& obj,
175 const base::android::JavaParamRef<jobject>& jcallback, 168 const base::android::JavaParamRef<jobject>& jcallback,
176 const base::android::JavaParamRef<jobject>& color_type, 169 const base::android::JavaParamRef<jobject>& color_type,
177 jfloat scale, 170 jfloat scale,
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 SynchronousCompositorClient* synchronous_compositor_client_; 215 SynchronousCompositorClient* synchronous_compositor_client_;
223 216
224 base::WeakPtrFactory<WebContentsAndroid> weak_factory_; 217 base::WeakPtrFactory<WebContentsAndroid> weak_factory_;
225 218
226 DISALLOW_COPY_AND_ASSIGN(WebContentsAndroid); 219 DISALLOW_COPY_AND_ASSIGN(WebContentsAndroid);
227 }; 220 };
228 221
229 } // namespace content 222 } // namespace content
230 223
231 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ 224 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_
OLDNEW
« no previous file with comments | « content/browser/media/session/media_session_observer.cc ('k') | content/browser/web_contents/web_contents_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698