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

Side by Side Diff: content/browser/android/content_view_core_impl.h

Issue 2708613002: Add EventForwarder for routing touch events (Closed)
Patch Set: - Created 3 years, 10 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
OLDNEW
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
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, 93 jboolean SendMouseEvent(JNIEnv* env,
124 const base::android::JavaParamRef<jobject>& obj, 94 const base::android::JavaParamRef<jobject>& obj,
125 jlong time_ms, 95 jlong time_ms,
126 jint android_action, 96 jint android_action,
127 jfloat x, 97 jfloat x,
128 jfloat y, 98 jfloat y,
129 jint pointer_id, 99 jint pointer_id,
130 jfloat pressure, 100 jfloat pressure,
131 jfloat orientation, 101 jfloat orientation,
132 jfloat tilt, 102 jfloat tilt,
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; 421 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_;
452 422
453 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); 423 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl);
454 }; 424 };
455 425
456 bool RegisterContentViewCore(JNIEnv* env); 426 bool RegisterContentViewCore(JNIEnv* env);
457 427
458 } // namespace content 428 } // namespace content
459 429
460 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 430 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698