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