| 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 | 164 |
| 165 base::android::ScopedJavaLocalRef<jstring> GetEncoding( | 165 base::android::ScopedJavaLocalRef<jstring> GetEncoding( |
| 166 JNIEnv* env, | 166 JNIEnv* env, |
| 167 const base::android::JavaParamRef<jobject>& obj) const; | 167 const base::android::JavaParamRef<jobject>& obj) const; |
| 168 | 168 |
| 169 void SetOverscrollRefreshHandler( | 169 void SetOverscrollRefreshHandler( |
| 170 JNIEnv* env, | 170 JNIEnv* env, |
| 171 const base::android::JavaParamRef<jobject>& obj, | 171 const base::android::JavaParamRef<jobject>& obj, |
| 172 const base::android::JavaParamRef<jobject>& overscroll_refresh_handler); | 172 const base::android::JavaParamRef<jobject>& overscroll_refresh_handler); |
| 173 | 173 |
| 174 // Relay the access from Java layer to GetScaledContentBitmap through JNI. | 174 // Relay the access from Java layer to RWHV::CopyFromSurface() through JNI. |
| 175 void GetContentBitmap(JNIEnv* env, | 175 void GetContentBitmap(JNIEnv* env, |
| 176 const base::android::JavaParamRef<jobject>& obj, | 176 const base::android::JavaParamRef<jobject>& obj, |
| 177 const base::android::JavaParamRef<jobject>& jcallback, | 177 jint width, |
| 178 const base::android::JavaParamRef<jobject>& color_type, | 178 jint height, |
| 179 jfloat scale, | 179 const base::android::JavaParamRef<jobject>& jcallback); |
| 180 jfloat x, | |
| 181 jfloat y, | |
| 182 jfloat width, | |
| 183 jfloat height); | |
| 184 | 180 |
| 185 void ReloadLoFiImages(JNIEnv* env, | 181 void ReloadLoFiImages(JNIEnv* env, |
| 186 const base::android::JavaParamRef<jobject>& obj); | 182 const base::android::JavaParamRef<jobject>& obj); |
| 187 | 183 |
| 188 int DownloadImage(JNIEnv* env, | 184 int DownloadImage(JNIEnv* env, |
| 189 const base::android::JavaParamRef<jobject>& obj, | 185 const base::android::JavaParamRef<jobject>& obj, |
| 190 const base::android::JavaParamRef<jstring>& url, | 186 const base::android::JavaParamRef<jstring>& url, |
| 191 jboolean is_fav_icon, | 187 jboolean is_fav_icon, |
| 192 jint max_bitmap_size, | 188 jint max_bitmap_size, |
| 193 jboolean bypass_cache, | 189 jboolean bypass_cache, |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 base::android::ScopedJavaGlobalRef<jobject> obj_; | 221 base::android::ScopedJavaGlobalRef<jobject> obj_; |
| 226 | 222 |
| 227 base::WeakPtrFactory<WebContentsAndroid> weak_factory_; | 223 base::WeakPtrFactory<WebContentsAndroid> weak_factory_; |
| 228 | 224 |
| 229 DISALLOW_COPY_AND_ASSIGN(WebContentsAndroid); | 225 DISALLOW_COPY_AND_ASSIGN(WebContentsAndroid); |
| 230 }; | 226 }; |
| 231 | 227 |
| 232 } // namespace content | 228 } // namespace content |
| 233 | 229 |
| 234 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ | 230 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ |
| OLD | NEW |