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

Unified Diff: ui/android/view_android.cc

Issue 2770613002: Forward GenericMotionEvent to EventForwarder (Closed)
Patch Set: comments Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/android/view_android.h ('k') | ui/android/view_android_unittests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/android/view_android.cc
diff --git a/ui/android/view_android.cc b/ui/android/view_android.cc
index 88ba8c0b5a681646df58e4c1180c1de9fb88fa68..672ae01b8644db47f86de0da19e2b599bbb7e1cc 100644
--- a/ui/android/view_android.cc
+++ b/ui/android/view_android.cc
@@ -300,11 +300,23 @@ bool ViewAndroid::OnMouseEvent(const MotionEventAndroid& event) {
return HitTest(base::Bind(&ViewAndroid::SendMouseEventToClient), event);
}
+// static
bool ViewAndroid::SendMouseEventToClient(ViewClient* client,
const MotionEventAndroid& event) {
return client->OnMouseEvent(event);
}
+// static
+bool ViewAndroid::OnMouseWheelEvent(const MotionEventAndroid& event) {
+ return HitTest(base::Bind(&ViewAndroid::SendMouseWheelEventToClient), event);
+}
+
+// static
+bool ViewAndroid::SendMouseWheelEventToClient(ViewClient* client,
+ const MotionEventAndroid& event) {
+ return client->OnMouseWheelEvent(event);
+}
+
bool ViewAndroid::HitTest(ViewClientCallback send_to_client,
const MotionEventAndroid& event) {
if (client_ && send_to_client.Run(client_, event))
« no previous file with comments | « ui/android/view_android.h ('k') | ui/android/view_android_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698