| 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 return synchronous_compositor_client_; | 190 return synchronous_compositor_client_; |
| 191 } | 191 } |
| 192 | 192 |
| 193 int DownloadImage(JNIEnv* env, | 193 int DownloadImage(JNIEnv* env, |
| 194 const base::android::JavaParamRef<jobject>& obj, | 194 const base::android::JavaParamRef<jobject>& obj, |
| 195 const base::android::JavaParamRef<jstring>& url, | 195 const base::android::JavaParamRef<jstring>& url, |
| 196 jboolean is_fav_icon, | 196 jboolean is_fav_icon, |
| 197 jint max_bitmap_size, | 197 jint max_bitmap_size, |
| 198 jboolean bypass_cache, | 198 jboolean bypass_cache, |
| 199 const base::android::JavaParamRef<jobject>& jcallback); | 199 const base::android::JavaParamRef<jobject>& jcallback); |
| 200 void DismissTextHandles(JNIEnv* env, |
| 201 const base::android::JavaParamRef<jobject>& obj); |
| 200 | 202 |
| 201 private: | 203 private: |
| 202 RenderWidgetHostViewAndroid* GetRenderWidgetHostViewAndroid(); | 204 RenderWidgetHostViewAndroid* GetRenderWidgetHostViewAndroid(); |
| 203 | 205 |
| 204 void OnFinishGetContentBitmap( | 206 void OnFinishGetContentBitmap( |
| 205 base::android::ScopedJavaGlobalRef<jobject>* obj, | 207 base::android::ScopedJavaGlobalRef<jobject>* obj, |
| 206 base::android::ScopedJavaGlobalRef<jobject>* callback, | 208 base::android::ScopedJavaGlobalRef<jobject>* callback, |
| 207 const SkBitmap& bitmap, | 209 const SkBitmap& bitmap, |
| 208 ReadbackResponse response); | 210 ReadbackResponse response); |
| 209 | 211 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 222 SynchronousCompositorClient* synchronous_compositor_client_; | 224 SynchronousCompositorClient* synchronous_compositor_client_; |
| 223 | 225 |
| 224 base::WeakPtrFactory<WebContentsAndroid> weak_factory_; | 226 base::WeakPtrFactory<WebContentsAndroid> weak_factory_; |
| 225 | 227 |
| 226 DISALLOW_COPY_AND_ASSIGN(WebContentsAndroid); | 228 DISALLOW_COPY_AND_ASSIGN(WebContentsAndroid); |
| 227 }; | 229 }; |
| 228 | 230 |
| 229 } // namespace content | 231 } // namespace content |
| 230 | 232 |
| 231 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ | 233 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ |
| OLD | NEW |