| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 void SelectPopupMenuItems( | 83 void SelectPopupMenuItems( |
| 84 JNIEnv* env, | 84 JNIEnv* env, |
| 85 const base::android::JavaParamRef<jobject>& obj, | 85 const base::android::JavaParamRef<jobject>& obj, |
| 86 jlong selectPopupSourceFrame, | 86 jlong selectPopupSourceFrame, |
| 87 const base::android::JavaParamRef<jintArray>& indices); | 87 const base::android::JavaParamRef<jintArray>& indices); |
| 88 | 88 |
| 89 void SendOrientationChangeEvent( | 89 void SendOrientationChangeEvent( |
| 90 JNIEnv* env, | 90 JNIEnv* env, |
| 91 const base::android::JavaParamRef<jobject>& obj, | 91 const base::android::JavaParamRef<jobject>& obj, |
| 92 jint orientation); | 92 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, | |
| 124 const base::android::JavaParamRef<jobject>& obj, | |
| 125 jlong time_ms, | |
| 126 jint android_action, | |
| 127 jfloat x, | |
| 128 jfloat y, | |
| 129 jint pointer_id, | |
| 130 jfloat pressure, | |
| 131 jfloat orientation, | |
| 132 jfloat tilt, | |
| 133 jint android_action_button, | |
| 134 jint android_button_state, | |
| 135 jint android_meta_state, | |
| 136 jint tool_type); | |
| 137 jboolean SendMouseWheelEvent(JNIEnv* env, | 93 jboolean SendMouseWheelEvent(JNIEnv* env, |
| 138 const base::android::JavaParamRef<jobject>& obj, | 94 const base::android::JavaParamRef<jobject>& obj, |
| 139 jlong time_ms, | 95 jlong time_ms, |
| 140 jfloat x, | 96 jfloat x, |
| 141 jfloat y, | 97 jfloat y, |
| 142 jfloat ticks_x, | 98 jfloat ticks_x, |
| 143 jfloat ticks_y, | 99 jfloat ticks_y, |
| 144 jfloat pixels_per_tick); | 100 jfloat pixels_per_tick); |
| 145 void ScrollBegin(JNIEnv* env, | 101 void ScrollBegin(JNIEnv* env, |
| 146 const base::android::JavaParamRef<jobject>& obj, | 102 const base::android::JavaParamRef<jobject>& obj, |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 bool DoBrowserControlsShrinkBlinkSize() const; | 323 bool DoBrowserControlsShrinkBlinkSize() const; |
| 368 float GetTopControlsHeightDip() const; | 324 float GetTopControlsHeightDip() const; |
| 369 float GetBottomControlsHeightDip() const; | 325 float GetBottomControlsHeightDip() const; |
| 370 | 326 |
| 371 void MoveRangeSelectionExtent(const gfx::PointF& extent); | 327 void MoveRangeSelectionExtent(const gfx::PointF& extent); |
| 372 | 328 |
| 373 void SelectBetweenCoordinates(const gfx::PointF& base, | 329 void SelectBetweenCoordinates(const gfx::PointF& base, |
| 374 const gfx::PointF& extent); | 330 const gfx::PointF& extent); |
| 375 | 331 |
| 376 void OnShowUnhandledTapUIIfNeeded(int x_dip, int y_dip); | 332 void OnShowUnhandledTapUIIfNeeded(int x_dip, int y_dip); |
| 333 void OnTouchDown(const base::android::ScopedJavaLocalRef<jobject>& event); |
| 377 | 334 |
| 378 ui::ViewAndroid* GetViewAndroid() const; | 335 ui::ViewAndroid* GetViewAndroid() const; |
| 379 | 336 |
| 380 private: | 337 private: |
| 381 class ContentViewUserData; | 338 class ContentViewUserData; |
| 382 | 339 |
| 383 friend class ContentViewUserData; | 340 friend class ContentViewUserData; |
| 384 ~ContentViewCoreImpl() override; | 341 ~ContentViewCoreImpl() override; |
| 385 | 342 |
| 386 // WebContentsObserver implementation. | 343 // WebContentsObserver implementation. |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 446 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; | 403 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; |
| 447 | 404 |
| 448 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 405 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
| 449 }; | 406 }; |
| 450 | 407 |
| 451 bool RegisterContentViewCore(JNIEnv* env); | 408 bool RegisterContentViewCore(JNIEnv* env); |
| 452 | 409 |
| 453 } // namespace content | 410 } // namespace content |
| 454 | 411 |
| 455 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 412 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| OLD | NEW |