| Index: content/renderer/input/input_event_filter.cc
|
| diff --git a/content/renderer/input/input_event_filter.cc b/content/renderer/input/input_event_filter.cc
|
| index a0399783988e64a7d0a00a3e59de5b6c607d0474..6924fe86fe954aea6a12966045297aa9b173fd81 100644
|
| --- a/content/renderer/input/input_event_filter.cc
|
| +++ b/content/renderer/input/input_event_filter.cc
|
| @@ -52,17 +52,16 @@ void InputEventFilter::DidRemoveInputHandler(int routing_id) {
|
|
|
| void InputEventFilter::DidOverscroll(int routing_id,
|
| const cc::DidOverscrollParams& params) {
|
| - DCHECK(target_loop_->BelongsToCurrentThread());
|
| -
|
| if (!overscroll_notifications_enabled_)
|
| return;
|
|
|
| - io_loop_->PostTask(
|
| - FROM_HERE,
|
| - base::Bind(&InputEventFilter::SendMessageOnIOThread, this,
|
| - ViewHostMsg_DidOverscroll(routing_id,
|
| - params.accumulated_overscroll,
|
| - params.current_fling_velocity)));
|
| + SendMessage(ViewHostMsg_DidOverscroll(routing_id,
|
| + params.accumulated_overscroll,
|
| + params.current_fling_velocity));
|
| +}
|
| +
|
| +void InputEventFilter::DidFinishTopControlsGesture(int routing_id) {
|
| + SendMessage(InputHostMsg_DidFinishTopControlsGesture(routing_id));
|
| }
|
|
|
| void InputEventFilter::OnFilterAdded(IPC::Channel* channel) {
|
| @@ -154,13 +153,16 @@ void InputEventFilter::SendACK(blink::WebInputEvent::Type type,
|
| InputEventAckState ack_result,
|
| const ui::LatencyInfo& latency_info,
|
| int routing_id) {
|
| + SendMessage(InputHostMsg_HandleInputEvent_ACK(
|
| + routing_id, type, ack_result, latency_info));
|
| +}
|
| +
|
| +void InputEventFilter::SendMessage(const IPC::Message& message) {
|
| DCHECK(target_loop_->BelongsToCurrentThread());
|
|
|
| io_loop_->PostTask(
|
| FROM_HERE,
|
| - base::Bind(&InputEventFilter::SendMessageOnIOThread, this,
|
| - InputHostMsg_HandleInputEvent_ACK(
|
| - routing_id, type, ack_result, latency_info)));
|
| + base::Bind(&InputEventFilter::SendMessageOnIOThread, this, message));
|
| }
|
|
|
| void InputEventFilter::SendMessageOnIOThread(const IPC::Message& message) {
|
|
|