Chromium Code Reviews| 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> |
| 11 | 11 |
| 12 #include "base/android/jni_android.h" | 12 #include "base/android/jni_android.h" |
| 13 #include "base/android/scoped_java_ref.h" | 13 #include "base/android/scoped_java_ref.h" |
| 14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
| 15 #include "base/macros.h" | 15 #include "base/macros.h" |
| 16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
| 17 #include "base/supports_user_data.h" | 17 #include "base/supports_user_data.h" |
| 18 #include "content/browser/frame_host/navigation_controller_android.h" | 18 #include "content/browser/frame_host/navigation_controller_android.h" |
| 19 #include "content/browser/renderer_host/render_widget_host_view_android.h" | 19 #include "content/browser/renderer_host/render_widget_host_view_android.h" |
| 20 #include "content/browser/web_contents/web_contents_view_android.h" | |
|
Jinsuk Kim
2016/11/25 01:49:18
Not necessary
| |
| 20 #include "content/common/content_export.h" | 21 #include "content/common/content_export.h" |
| 21 | 22 |
| 22 namespace content { | 23 namespace content { |
| 23 | 24 |
| 24 class WebContentsImpl; | 25 class WebContentsImpl; |
| 25 | 26 |
| 26 // Android wrapper around WebContents that provides safer passage from java and | 27 // Android wrapper around WebContents that provides safer passage from java and |
| 27 // back to native and provides java with a means of communicating with its | 28 // back to native and provides java with a means of communicating with its |
| 28 // native counterpart. | 29 // native counterpart. |
| 29 class CONTENT_EXPORT WebContentsAndroid | 30 class CONTENT_EXPORT WebContentsAndroid |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 153 | 154 |
| 154 void RequestAccessibilitySnapshot( | 155 void RequestAccessibilitySnapshot( |
| 155 JNIEnv* env, | 156 JNIEnv* env, |
| 156 const base::android::JavaParamRef<jobject>& obj, | 157 const base::android::JavaParamRef<jobject>& obj, |
| 157 const base::android::JavaParamRef<jobject>& callback); | 158 const base::android::JavaParamRef<jobject>& callback); |
| 158 | 159 |
| 159 base::android::ScopedJavaLocalRef<jstring> GetEncoding( | 160 base::android::ScopedJavaLocalRef<jstring> GetEncoding( |
| 160 JNIEnv* env, | 161 JNIEnv* env, |
| 161 const base::android::JavaParamRef<jobject>& obj) const; | 162 const base::android::JavaParamRef<jobject>& obj) const; |
| 162 | 163 |
| 164 void SetOverscrollRefreshHandler( | |
| 165 JNIEnv* env, | |
| 166 const base::android::JavaParamRef<jobject>& obj, | |
| 167 jlong overscroll_refresh_handler_ptr); | |
| 168 | |
| 163 // Relay the access from Java layer to GetScaledContentBitmap through JNI. | 169 // Relay the access from Java layer to GetScaledContentBitmap through JNI. |
| 164 void GetContentBitmap(JNIEnv* env, | 170 void GetContentBitmap(JNIEnv* env, |
| 165 const base::android::JavaParamRef<jobject>& obj, | 171 const base::android::JavaParamRef<jobject>& obj, |
| 166 const base::android::JavaParamRef<jobject>& jcallback, | 172 const base::android::JavaParamRef<jobject>& jcallback, |
| 167 const base::android::JavaParamRef<jobject>& color_type, | 173 const base::android::JavaParamRef<jobject>& color_type, |
| 168 jfloat scale, | 174 jfloat scale, |
| 169 jfloat x, | 175 jfloat x, |
| 170 jfloat y, | 176 jfloat y, |
| 171 jfloat width, | 177 jfloat width, |
| 172 jfloat height); | 178 jfloat height); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 210 base::android::ScopedJavaGlobalRef<jobject> obj_; | 216 base::android::ScopedJavaGlobalRef<jobject> obj_; |
| 211 | 217 |
| 212 base::WeakPtrFactory<WebContentsAndroid> weak_factory_; | 218 base::WeakPtrFactory<WebContentsAndroid> weak_factory_; |
| 213 | 219 |
| 214 DISALLOW_COPY_AND_ASSIGN(WebContentsAndroid); | 220 DISALLOW_COPY_AND_ASSIGN(WebContentsAndroid); |
| 215 }; | 221 }; |
| 216 | 222 |
| 217 } // namespace content | 223 } // namespace content |
| 218 | 224 |
| 219 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ | 225 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ |
| OLD | NEW |