| 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, |
| 87 const base::android::JavaParamRef<jintArray>& indices); | 88 const base::android::JavaParamRef<jintArray>& indices); |
| 88 | 89 |
| 89 void SendOrientationChangeEvent( | 90 void SendOrientationChangeEvent( |
| 90 JNIEnv* env, | 91 JNIEnv* env, |
| 91 const base::android::JavaParamRef<jobject>& obj, | 92 const base::android::JavaParamRef<jobject>& obj, |
| 92 jint orientation); | 93 jint orientation); |
| 93 jboolean OnTouchEvent( | |
| 94 JNIEnv* env, | |
| 95 const base::android::JavaParamRef<jobject>& obj, | |
| 96 const base::android::JavaParamRef<jobject>& motion_event, | |
| 97 jlong time_ms, | |
| 98 jint android_action, | |
| 99 jint pointer_count, | |
| 100 jint history_size, | |
| 101 jint action_index, | |
| 102 jfloat pos_x_0, | |
| 103 jfloat pos_y_0, | |
| 104 jfloat pos_x_1, | |
| 105 jfloat pos_y_1, | |
| 106 jint pointer_id_0, | |
| 107 jint pointer_id_1, | |
| 108 jfloat touch_major_0, | |
| 109 jfloat touch_major_1, | |
| 110 jfloat touch_minor_0, | |
| 111 jfloat touch_minor_1, | |
| 112 jfloat orientation_0, | |
| 113 jfloat orientation_1, | |
| 114 jfloat tilt_0, | |
| 115 jfloat tilt_1, | |
| 116 jfloat raw_pos_x, | |
| 117 jfloat raw_pos_y, | |
| 118 jint android_tool_type_0, | |
| 119 jint android_tool_type_1, | |
| 120 jint android_button_state, | |
| 121 jint android_meta_state, | |
| 122 jboolean is_touch_handle_event); | |
| 123 jboolean SendMouseEvent(JNIEnv* env, | 94 jboolean SendMouseEvent(JNIEnv* env, |
| 124 const base::android::JavaParamRef<jobject>& obj, | 95 const base::android::JavaParamRef<jobject>& obj, |
| 125 jlong time_ms, | 96 jlong time_ms, |
| 126 jint android_action, | 97 jint android_action, |
| 127 jfloat x, | 98 jfloat x, |
| 128 jfloat y, | 99 jfloat y, |
| 129 jint pointer_id, | 100 jint pointer_id, |
| 130 jfloat pressure, | 101 jfloat pressure, |
| 131 jfloat orientation, | 102 jfloat orientation, |
| 132 jfloat tilt, | 103 jfloat tilt, |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 void OnDragEvent(JNIEnv* env, | 247 void OnDragEvent(JNIEnv* env, |
| 277 const base::android::JavaParamRef<jobject>& jobj, | 248 const base::android::JavaParamRef<jobject>& jobj, |
| 278 jint action, | 249 jint action, |
| 279 jint x, | 250 jint x, |
| 280 jint y, | 251 jint y, |
| 281 jint screen_x, | 252 jint screen_x, |
| 282 jint screen_y, | 253 jint screen_y, |
| 283 const base::android::JavaParamRef<jobjectArray>& j_mimeTypes, | 254 const base::android::JavaParamRef<jobjectArray>& j_mimeTypes, |
| 284 const base::android::JavaParamRef<jstring>& j_content); | 255 const base::android::JavaParamRef<jstring>& j_content); |
| 285 | 256 |
| 257 void MoveToFrontInViewHierarchy( |
| 258 JNIEnv* env, |
| 259 const base::android::JavaParamRef<jobject>& jobj); |
| 260 void UpdateViewBounds( |
| 261 JNIEnv* env, |
| 262 const base::android::JavaParamRef<jobject>& jobj, |
| 263 int x, |
| 264 int y, |
| 265 int width, |
| 266 int height); |
| 286 jint GetCurrentRenderProcessId( | 267 jint GetCurrentRenderProcessId( |
| 287 JNIEnv* env, | 268 JNIEnv* env, |
| 288 const base::android::JavaParamRef<jobject>& obj); | 269 const base::android::JavaParamRef<jobject>& obj); |
| 289 | 270 |
| 290 // -------------------------------------------------------------------------- | 271 // -------------------------------------------------------------------------- |
| 291 // Public methods that call to Java via JNI | 272 // Public methods that call to Java via JNI |
| 292 // -------------------------------------------------------------------------- | 273 // -------------------------------------------------------------------------- |
| 293 | 274 |
| 294 void HidePopupsAndPreserveSelection(); | 275 void HidePopupsAndPreserveSelection(); |
| 295 | 276 |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; | 443 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; |
| 463 | 444 |
| 464 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 445 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
| 465 }; | 446 }; |
| 466 | 447 |
| 467 bool RegisterContentViewCore(JNIEnv* env); | 448 bool RegisterContentViewCore(JNIEnv* env); |
| 468 | 449 |
| 469 } // namespace content | 450 } // namespace content |
| 470 | 451 |
| 471 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 452 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| OLD | NEW |