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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 gfx::Vector2dF overscroll_velocity) override; | 215 gfx::Vector2dF overscroll_velocity) override; |
216 | 216 |
217 void ParentDrawConstraintsUpdated( | 217 void ParentDrawConstraintsUpdated( |
218 const ParentCompositorDrawConstraints& draw_constraints) override {} | 218 const ParentCompositorDrawConstraints& draw_constraints) override {} |
219 | 219 |
220 void ClearCache(JNIEnv* env, jobject obj, jboolean include_disk_files); | 220 void ClearCache(JNIEnv* env, jobject obj, jboolean include_disk_files); |
221 void SetPendingWebContentsForPopup(scoped_ptr<content::WebContents> pending); | 221 void SetPendingWebContentsForPopup(scoped_ptr<content::WebContents> pending); |
222 jlong ReleasePopupAwContents(JNIEnv* env, jobject obj); | 222 jlong ReleasePopupAwContents(JNIEnv* env, jobject obj); |
223 | 223 |
224 void ScrollTo(JNIEnv* env, jobject obj, jint x, jint y); | 224 void ScrollTo(JNIEnv* env, jobject obj, jint x, jint y); |
| 225 void SmoothScroll(JNIEnv* env, |
| 226 jobject obj, |
| 227 jint target_x, |
| 228 jint target_y, |
| 229 jlong duration_ms); |
225 void SetDipScale(JNIEnv* env, jobject obj, jfloat dip_scale); | 230 void SetDipScale(JNIEnv* env, jobject obj, jfloat dip_scale); |
226 void SetSaveFormData(bool enabled); | 231 void SetSaveFormData(bool enabled); |
227 | 232 |
228 // Sets the java client | 233 // Sets the java client |
229 void SetAwAutofillClient(jobject client); | 234 void SetAwAutofillClient(jobject client); |
230 | 235 |
231 void SetJsOnlineProperty(JNIEnv* env, jobject obj, jboolean network_up); | 236 void SetJsOnlineProperty(JNIEnv* env, jobject obj, jboolean network_up); |
232 void TrimMemory(JNIEnv* env, jobject obj, jint level, jboolean visible); | 237 void TrimMemory(JNIEnv* env, jobject obj, jint level, jboolean visible); |
233 | 238 |
234 scoped_refptr<AwMessagePortMessageFilter> GetMessagePortMessageFilter(); | 239 scoped_refptr<AwMessagePortMessageFilter> GetMessagePortMessageFilter(); |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 GLViewRendererManager::Key renderer_manager_key_; | 276 GLViewRendererManager::Key renderer_manager_key_; |
272 | 277 |
273 DISALLOW_COPY_AND_ASSIGN(AwContents); | 278 DISALLOW_COPY_AND_ASSIGN(AwContents); |
274 }; | 279 }; |
275 | 280 |
276 bool RegisterAwContents(JNIEnv* env); | 281 bool RegisterAwContents(JNIEnv* env); |
277 | 282 |
278 } // namespace android_webview | 283 } // namespace android_webview |
279 | 284 |
280 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ | 285 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
OLD | NEW |