Chromium Code Reviews| 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)) |