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

Unified Diff: ui/android/view_android.cc

Issue 2770613002: Forward GenericMotionEvent to EventForwarder (Closed)
Patch Set: joystick back to content/ 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
Index: ui/android/view_android.cc
diff --git a/ui/android/view_android.cc b/ui/android/view_android.cc
index 88ba8c0b5a681646df58e4c1180c1de9fb88fa68..f8600a067dcf0ab77baed93c1900cc74be456986 100644
--- a/ui/android/view_android.cc
+++ b/ui/android/view_android.cc
@@ -305,6 +305,15 @@ bool ViewAndroid::SendMouseEventToClient(ViewClient* client,
return client->OnMouseEvent(event);
}
+bool ViewAndroid::OnMouseWheelEvent(const MotionEventAndroid& event) {
+ return HitTest(base::Bind(&ViewAndroid::SendMouseWheelEventToClient), event);
+}
+
+bool ViewAndroid::SendMouseWheelEventToClient(ViewClient* client,
boliu 2017/03/28 16:28:42 add "// static" to all static methods
Jinsuk Kim 2017/03/28 23:17:45 Done.
+ 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))

Powered by Google App Engine
This is Rietveld 408576698