| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 void SelectPopupMenuItems( | 84 void SelectPopupMenuItems( |
| 85 JNIEnv* env, | 85 JNIEnv* env, |
| 86 const base::android::JavaParamRef<jobject>& obj, | 86 const base::android::JavaParamRef<jobject>& obj, |
| 87 jlong selectPopupSourceFrame, | 87 jlong selectPopupSourceFrame, |
| 88 const base::android::JavaParamRef<jintArray>& indices); | 88 const base::android::JavaParamRef<jintArray>& indices); |
| 89 | 89 |
| 90 void SendOrientationChangeEvent( | 90 void SendOrientationChangeEvent( |
| 91 JNIEnv* env, | 91 JNIEnv* env, |
| 92 const base::android::JavaParamRef<jobject>& obj, | 92 const base::android::JavaParamRef<jobject>& obj, |
| 93 jint orientation); | 93 jint orientation); |
| 94 jboolean OnTouchEvent( | |
| 95 JNIEnv* env, | |
| 96 const base::android::JavaParamRef<jobject>& obj, | |
| 97 const base::android::JavaParamRef<jobject>& motion_event, | |
| 98 jlong time_ms, | |
| 99 jint android_action, | |
| 100 jint pointer_count, | |
| 101 jint history_size, | |
| 102 jint action_index, | |
| 103 jfloat pos_x_0, | |
| 104 jfloat pos_y_0, | |
| 105 jfloat pos_x_1, | |
| 106 jfloat pos_y_1, | |
| 107 jint pointer_id_0, | |
| 108 jint pointer_id_1, | |
| 109 jfloat touch_major_0, | |
| 110 jfloat touch_major_1, | |
| 111 jfloat touch_minor_0, | |
| 112 jfloat touch_minor_1, | |
| 113 jfloat orientation_0, | |
| 114 jfloat orientation_1, | |
| 115 jfloat tilt_0, | |
| 116 jfloat tilt_1, | |
| 117 jfloat raw_pos_x, | |
| 118 jfloat raw_pos_y, | |
| 119 jint android_tool_type_0, | |
| 120 jint android_tool_type_1, | |
| 121 jint android_button_state, | |
| 122 jint android_meta_state, | |
| 123 jboolean is_touch_handle_event); | |
| 124 jboolean SendMouseEvent(JNIEnv* env, | |
| 125 const base::android::JavaParamRef<jobject>& obj, | |
| 126 jlong time_ms, | |
| 127 jint android_action, | |
| 128 jfloat x, | |
| 129 jfloat y, | |
| 130 jint pointer_id, | |
| 131 jfloat pressure, | |
| 132 jfloat orientation, | |
| 133 jfloat tilt, | |
| 134 jint android_action_button, | |
| 135 jint android_button_state, | |
| 136 jint android_meta_state, | |
| 137 jint tool_type); | |
| 138 jboolean SendMouseWheelEvent(JNIEnv* env, | 94 jboolean SendMouseWheelEvent(JNIEnv* env, |
| 139 const base::android::JavaParamRef<jobject>& obj, | 95 const base::android::JavaParamRef<jobject>& obj, |
| 140 jlong time_ms, | 96 jlong time_ms, |
| 141 jfloat x, | 97 jfloat x, |
| 142 jfloat y, | 98 jfloat y, |
| 143 jfloat ticks_x, | 99 jfloat ticks_x, |
| 144 jfloat ticks_y, | 100 jfloat ticks_y, |
| 145 jfloat pixels_per_tick); | 101 jfloat pixels_per_tick); |
| 146 void ScrollBegin(JNIEnv* env, | 102 void ScrollBegin(JNIEnv* env, |
| 147 const base::android::JavaParamRef<jobject>& obj, | 103 const base::android::JavaParamRef<jobject>& obj, |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 bool DoBrowserControlsShrinkBlinkSize() const; | 324 bool DoBrowserControlsShrinkBlinkSize() const; |
| 369 float GetTopControlsHeightDip() const; | 325 float GetTopControlsHeightDip() const; |
| 370 float GetBottomControlsHeightDip() const; | 326 float GetBottomControlsHeightDip() const; |
| 371 | 327 |
| 372 void MoveRangeSelectionExtent(const gfx::PointF& extent); | 328 void MoveRangeSelectionExtent(const gfx::PointF& extent); |
| 373 | 329 |
| 374 void SelectBetweenCoordinates(const gfx::PointF& base, | 330 void SelectBetweenCoordinates(const gfx::PointF& base, |
| 375 const gfx::PointF& extent); | 331 const gfx::PointF& extent); |
| 376 | 332 |
| 377 void OnShowUnhandledTapUIIfNeeded(int x_dip, int y_dip); | 333 void OnShowUnhandledTapUIIfNeeded(int x_dip, int y_dip); |
| 334 void OnTouchDown(const base::android::ScopedJavaLocalRef<jobject>& event); |
| 378 | 335 |
| 379 ui::ViewAndroid* GetViewAndroid() const; | 336 ui::ViewAndroid* GetViewAndroid() const; |
| 380 | 337 |
| 381 private: | 338 private: |
| 382 class ContentViewUserData; | 339 class ContentViewUserData; |
| 383 | 340 |
| 384 friend class ContentViewUserData; | 341 friend class ContentViewUserData; |
| 385 ~ContentViewCoreImpl() override; | 342 ~ContentViewCoreImpl() override; |
| 386 | 343 |
| 387 // WebContentsObserver implementation. | 344 // WebContentsObserver implementation. |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 447 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; | 404 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; |
| 448 | 405 |
| 449 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 406 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
| 450 }; | 407 }; |
| 451 | 408 |
| 452 bool RegisterContentViewCore(JNIEnv* env); | 409 bool RegisterContentViewCore(JNIEnv* env); |
| 453 | 410 |
| 454 } // namespace content | 411 } // namespace content |
| 455 | 412 |
| 456 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 413 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| OLD | NEW |