| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 UI_ANDROID_EVENT_FORWARDER_H_ | 5 #ifndef UI_ANDROID_EVENT_FORWARDER_H_ |
| 6 #define UI_ANDROID_EVENT_FORWARDER_H_ | 6 #define UI_ANDROID_EVENT_FORWARDER_H_ |
| 7 | 7 |
| 8 #include "base/android/scoped_java_ref.h" | 8 #include "base/android/scoped_java_ref.h" |
| 9 | 9 |
| 10 namespace ui { | 10 namespace ui { |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 jfloat y, | 54 jfloat y, |
| 55 jint pointer_id, | 55 jint pointer_id, |
| 56 jfloat pressure, | 56 jfloat pressure, |
| 57 jfloat orientation, | 57 jfloat orientation, |
| 58 jfloat tilt, | 58 jfloat tilt, |
| 59 jint android_changed_button, | 59 jint android_changed_button, |
| 60 jint android_button_state, | 60 jint android_button_state, |
| 61 jint android_meta_state, | 61 jint android_meta_state, |
| 62 jint tool_type); | 62 jint tool_type); |
| 63 | 63 |
| 64 void OnMouseWheelEvent(JNIEnv* env, |
| 65 const base::android::JavaParamRef<jobject>& obj, |
| 66 jlong time_ms, |
| 67 jfloat x, |
| 68 jfloat y, |
| 69 jfloat ticks_x, |
| 70 jfloat ticks_y, |
| 71 jfloat pixels_per_tick); |
| 72 |
| 64 private: | 73 private: |
| 65 friend class ViewAndroid; | 74 friend class ViewAndroid; |
| 66 | 75 |
| 67 explicit EventForwarder(ViewAndroid* view); | 76 explicit EventForwarder(ViewAndroid* view); |
| 68 | 77 |
| 69 base::android::ScopedJavaLocalRef<jobject> GetJavaObject(); | 78 base::android::ScopedJavaLocalRef<jobject> GetJavaObject(); |
| 70 | 79 |
| 71 ViewAndroid* const view_; | 80 ViewAndroid* const view_; |
| 72 base::android::ScopedJavaGlobalRef<jobject> java_obj_; | 81 base::android::ScopedJavaGlobalRef<jobject> java_obj_; |
| 73 | 82 |
| 74 DISALLOW_COPY_AND_ASSIGN(EventForwarder); | 83 DISALLOW_COPY_AND_ASSIGN(EventForwarder); |
| 75 }; | 84 }; |
| 76 | 85 |
| 77 bool RegisterEventForwarder(JNIEnv* env); | 86 bool RegisterEventForwarder(JNIEnv* env); |
| 78 | 87 |
| 79 } // namespace ui | 88 } // namespace ui |
| 80 | 89 |
| 81 #endif // UI_ANDROID_EVENT_FORWARDER_H_ | 90 #endif // UI_ANDROID_EVENT_FORWARDER_H_ |
| OLD | NEW |