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 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 void ResumeMediaSession(JNIEnv* env, |
162 const base::android::JavaParamRef<jobject>& obj); | 162 const base::android::JavaParamRef<jobject>& obj); |
163 void SuspendMediaSession(JNIEnv* env, | 163 void SuspendMediaSession(JNIEnv* env, |
164 const base::android::JavaParamRef<jobject>& obj); | 164 const base::android::JavaParamRef<jobject>& obj); |
165 void StopMediaSession(JNIEnv* env, | 165 void StopMediaSession(JNIEnv* env, |
166 const base::android::JavaParamRef<jobject>& obj); | 166 const base::android::JavaParamRef<jobject>& obj); |
| 167 void DidReceiveMediaSessionAction( |
| 168 JNIEnv* env, |
| 169 const base::android::JavaParamRef<jobject>& obj, |
| 170 int action); |
167 | 171 |
168 base::android::ScopedJavaLocalRef<jstring> GetEncoding( | 172 base::android::ScopedJavaLocalRef<jstring> GetEncoding( |
169 JNIEnv* env, | 173 JNIEnv* env, |
170 const base::android::JavaParamRef<jobject>& obj) const; | 174 const base::android::JavaParamRef<jobject>& obj) const; |
171 | 175 |
172 // Relay the access from Java layer to GetScaledContentBitmap through JNI. | 176 // Relay the access from Java layer to GetScaledContentBitmap through JNI. |
173 void GetContentBitmap(JNIEnv* env, | 177 void GetContentBitmap(JNIEnv* env, |
174 const base::android::JavaParamRef<jobject>& obj, | 178 const base::android::JavaParamRef<jobject>& obj, |
175 const base::android::JavaParamRef<jobject>& jcallback, | 179 const base::android::JavaParamRef<jobject>& jcallback, |
176 const base::android::JavaParamRef<jobject>& color_type, | 180 const base::android::JavaParamRef<jobject>& color_type, |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 SynchronousCompositorClient* synchronous_compositor_client_; | 226 SynchronousCompositorClient* synchronous_compositor_client_; |
223 | 227 |
224 base::WeakPtrFactory<WebContentsAndroid> weak_factory_; | 228 base::WeakPtrFactory<WebContentsAndroid> weak_factory_; |
225 | 229 |
226 DISALLOW_COPY_AND_ASSIGN(WebContentsAndroid); | 230 DISALLOW_COPY_AND_ASSIGN(WebContentsAndroid); |
227 }; | 231 }; |
228 | 232 |
229 } // namespace content | 233 } // namespace content |
230 | 234 |
231 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ | 235 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ |
OLD | NEW |