| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ | 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
| 6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ | 6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 #include <list> | 9 #include <list> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 void SetViewVisibility(JNIEnv* env, jobject obj, bool visible); | 111 void SetViewVisibility(JNIEnv* env, jobject obj, bool visible); |
| 112 void SetWindowVisibility(JNIEnv* env, jobject obj, bool visible); | 112 void SetWindowVisibility(JNIEnv* env, jobject obj, bool visible); |
| 113 void SetIsPaused(JNIEnv* env, jobject obj, bool paused); | 113 void SetIsPaused(JNIEnv* env, jobject obj, bool paused); |
| 114 void OnAttachedToWindow(JNIEnv* env, jobject obj, int w, int h); | 114 void OnAttachedToWindow(JNIEnv* env, jobject obj, int w, int h); |
| 115 void OnDetachedFromWindow(JNIEnv* env, jobject obj); | 115 void OnDetachedFromWindow(JNIEnv* env, jobject obj); |
| 116 base::android::ScopedJavaLocalRef<jbyteArray> GetOpaqueState( | 116 base::android::ScopedJavaLocalRef<jbyteArray> GetOpaqueState( |
| 117 JNIEnv* env, jobject obj); | 117 JNIEnv* env, jobject obj); |
| 118 jboolean RestoreFromOpaqueState(JNIEnv* env, jobject obj, jbyteArray state); | 118 jboolean RestoreFromOpaqueState(JNIEnv* env, jobject obj, jbyteArray state); |
| 119 void FocusFirstNode(JNIEnv* env, jobject obj); | 119 void FocusFirstNode(JNIEnv* env, jobject obj); |
| 120 void SetBackgroundColor(JNIEnv* env, jobject obj, jint color); | 120 void SetBackgroundColor(JNIEnv* env, jobject obj, jint color); |
| 121 void OnComputeScroll(JNIEnv* env, jobject obj, jlong animation_time_millis); |
| 121 bool OnDraw(JNIEnv* env, | 122 bool OnDraw(JNIEnv* env, |
| 122 jobject obj, | 123 jobject obj, |
| 123 jobject canvas, | 124 jobject canvas, |
| 124 jboolean is_hardware_accelerated, | 125 jboolean is_hardware_accelerated, |
| 125 jint scroll_x, | 126 jint scroll_x, |
| 126 jint scroll_y, | 127 jint scroll_y, |
| 127 jint visible_left, | 128 jint visible_left, |
| 128 jint visible_top, | 129 jint visible_top, |
| 129 jint visible_right, | 130 jint visible_right, |
| 130 jint visible_bottom); | 131 jint visible_bottom); |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 void DetachFunctorFromView() override; | 198 void DetachFunctorFromView() override; |
| 198 void OnNewPicture() override; | 199 void OnNewPicture() override; |
| 199 gfx::Point GetLocationOnScreen() override; | 200 gfx::Point GetLocationOnScreen() override; |
| 200 void ScrollContainerViewTo(gfx::Vector2d new_value) override; | 201 void ScrollContainerViewTo(gfx::Vector2d new_value) override; |
| 201 bool IsFlingActive() const override; | 202 bool IsFlingActive() const override; |
| 202 void UpdateScrollState(gfx::Vector2d max_scroll_offset, | 203 void UpdateScrollState(gfx::Vector2d max_scroll_offset, |
| 203 gfx::SizeF contents_size_dip, | 204 gfx::SizeF contents_size_dip, |
| 204 float page_scale_factor, | 205 float page_scale_factor, |
| 205 float min_page_scale_factor, | 206 float min_page_scale_factor, |
| 206 float max_page_scale_factor) override; | 207 float max_page_scale_factor) override; |
| 207 void DidOverscroll(gfx::Vector2d overscroll_delta) override; | 208 void DidOverscroll(gfx::Vector2d overscroll_delta, |
| 209 gfx::Vector2dF overscroll_velocity, |
| 210 bool first_overscroll_x, |
| 211 bool first_overscroll_y) override; |
| 212 |
| 208 void ParentDrawConstraintsUpdated( | 213 void ParentDrawConstraintsUpdated( |
| 209 const ParentCompositorDrawConstraints& draw_constraints) override {} | 214 const ParentCompositorDrawConstraints& draw_constraints) override {} |
| 210 | 215 |
| 211 void ClearCache(JNIEnv* env, jobject obj, jboolean include_disk_files); | 216 void ClearCache(JNIEnv* env, jobject obj, jboolean include_disk_files); |
| 212 void SetPendingWebContentsForPopup(scoped_ptr<content::WebContents> pending); | 217 void SetPendingWebContentsForPopup(scoped_ptr<content::WebContents> pending); |
| 213 jlong ReleasePopupAwContents(JNIEnv* env, jobject obj); | 218 jlong ReleasePopupAwContents(JNIEnv* env, jobject obj); |
| 214 | 219 |
| 215 void ScrollTo(JNIEnv* env, jobject obj, jint x, jint y); | 220 void ScrollTo(JNIEnv* env, jobject obj, jint x, jint y); |
| 216 void SetDipScale(JNIEnv* env, jobject obj, jfloat dip_scale); | 221 void SetDipScale(JNIEnv* env, jobject obj, jfloat dip_scale); |
| 217 void SetSaveFormData(bool enabled); | 222 void SetSaveFormData(bool enabled); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 GLViewRendererManager::Key renderer_manager_key_; | 265 GLViewRendererManager::Key renderer_manager_key_; |
| 261 | 266 |
| 262 DISALLOW_COPY_AND_ASSIGN(AwContents); | 267 DISALLOW_COPY_AND_ASSIGN(AwContents); |
| 263 }; | 268 }; |
| 264 | 269 |
| 265 bool RegisterAwContents(JNIEnv* env); | 270 bool RegisterAwContents(JNIEnv* env); |
| 266 | 271 |
| 267 } // namespace android_webview | 272 } // namespace android_webview |
| 268 | 273 |
| 269 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ | 274 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
| OLD | NEW |