| 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))
|
|
|