| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| 6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 // Methods called from Java via JNI | 64 // Methods called from Java via JNI |
| 65 // -------------------------------------------------------------------------- | 65 // -------------------------------------------------------------------------- |
| 66 | 66 |
| 67 base::android::ScopedJavaLocalRef<jobject> GetWebContentsAndroid( | 67 base::android::ScopedJavaLocalRef<jobject> GetWebContentsAndroid( |
| 68 JNIEnv* env, | 68 JNIEnv* env, |
| 69 const base::android::JavaParamRef<jobject>& obj); | 69 const base::android::JavaParamRef<jobject>& obj); |
| 70 base::android::ScopedJavaLocalRef<jobject> GetJavaWindowAndroid( | 70 base::android::ScopedJavaLocalRef<jobject> GetJavaWindowAndroid( |
| 71 JNIEnv* env, | 71 JNIEnv* env, |
| 72 const base::android::JavaParamRef<jobject>& obj); | 72 const base::android::JavaParamRef<jobject>& obj); |
| 73 | 73 |
| 74 void UpdateWindowAndroid(JNIEnv* env, | 74 void UpdateViewRoot( |
| 75 const base::android::JavaParamRef<jobject>& obj, | 75 JNIEnv* env, |
| 76 jlong window_android); | 76 const base::android::JavaParamRef<jobject>& obj, |
| 77 jlong view_root_ptr); |
| 77 void OnJavaContentViewCoreDestroyed( | 78 void OnJavaContentViewCoreDestroyed( |
| 78 JNIEnv* env, | 79 JNIEnv* env, |
| 79 const base::android::JavaParamRef<jobject>& obj); | 80 const base::android::JavaParamRef<jobject>& obj); |
| 80 | 81 |
| 81 // Notifies the ContentViewCore that items were selected in the currently | 82 // Notifies the ContentViewCore that items were selected in the currently |
| 82 // showing select popup. | 83 // showing select popup. |
| 83 void SelectPopupMenuItems( | 84 void SelectPopupMenuItems( |
| 84 JNIEnv* env, | 85 JNIEnv* env, |
| 85 const base::android::JavaParamRef<jobject>& obj, | 86 const base::android::JavaParamRef<jobject>& obj, |
| 86 jlong selectPopupSourceFrame, | 87 jlong selectPopupSourceFrame, |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 void OnDragEvent(JNIEnv* env, | 277 void OnDragEvent(JNIEnv* env, |
| 277 const base::android::JavaParamRef<jobject>& jobj, | 278 const base::android::JavaParamRef<jobject>& jobj, |
| 278 jint action, | 279 jint action, |
| 279 jint x, | 280 jint x, |
| 280 jint y, | 281 jint y, |
| 281 jint screen_x, | 282 jint screen_x, |
| 282 jint screen_y, | 283 jint screen_y, |
| 283 const base::android::JavaParamRef<jobjectArray>& j_mimeTypes, | 284 const base::android::JavaParamRef<jobjectArray>& j_mimeTypes, |
| 284 const base::android::JavaParamRef<jstring>& j_content); | 285 const base::android::JavaParamRef<jstring>& j_content); |
| 285 | 286 |
| 287 void MoveToFrontInViewHierarchy( |
| 288 JNIEnv* env, |
| 289 const base::android::JavaParamRef<jobject>& jobj); |
| 290 void UpdateViewBounds( |
| 291 JNIEnv* env, |
| 292 const base::android::JavaParamRef<jobject>& jobj, |
| 293 int x, |
| 294 int y, |
| 295 int width, |
| 296 int height); |
| 286 jint GetCurrentRenderProcessId( | 297 jint GetCurrentRenderProcessId( |
| 287 JNIEnv* env, | 298 JNIEnv* env, |
| 288 const base::android::JavaParamRef<jobject>& obj); | 299 const base::android::JavaParamRef<jobject>& obj); |
| 289 | 300 |
| 290 // -------------------------------------------------------------------------- | 301 // -------------------------------------------------------------------------- |
| 291 // Public methods that call to Java via JNI | 302 // Public methods that call to Java via JNI |
| 292 // -------------------------------------------------------------------------- | 303 // -------------------------------------------------------------------------- |
| 293 | 304 |
| 294 void HidePopupsAndPreserveSelection(); | 305 void HidePopupsAndPreserveSelection(); |
| 295 | 306 |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; | 473 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; |
| 463 | 474 |
| 464 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 475 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
| 465 }; | 476 }; |
| 466 | 477 |
| 467 bool RegisterContentViewCore(JNIEnv* env); | 478 bool RegisterContentViewCore(JNIEnv* env); |
| 468 | 479 |
| 469 } // namespace content | 480 } // namespace content |
| 470 | 481 |
| 471 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 482 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| OLD | NEW |