Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(239)

Side by Side Diff: ui/android/event_forwarder.h

Issue 2770613002: Forward GenericMotionEvent to EventForwarder (Closed)
Patch Set: comments Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/android/DEPS ('k') | ui/android/event_forwarder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « ui/android/DEPS ('k') | ui/android/event_forwarder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698