| Index: content/browser/renderer_host/render_widget_host_impl.cc
|
| diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
|
| index 1ab2a20a4d35323f8282f36852cd9da5688605a4..4697a7f25e772c67f775f7e36689744f8878e927 100644
|
| --- a/content/browser/renderer_host/render_widget_host_impl.cc
|
| +++ b/content/browser/renderer_host/render_widget_host_impl.cc
|
| @@ -394,7 +394,7 @@ void RenderWidgetHostImpl::SuppressNextCharEvents() {
|
| }
|
|
|
| void RenderWidgetHostImpl::FlushInput() {
|
| - input_router_->Flush();
|
| + input_router_->RequestNotificationWhenFlushed();
|
| if (synthetic_gesture_controller_)
|
| synthetic_gesture_controller_->Flush(base::TimeTicks::Now());
|
| }
|
| @@ -460,7 +460,6 @@ bool RenderWidgetHostImpl::OnMessageReceived(const IPC::Message &msg) {
|
| IPC_MESSAGE_HANDLER(ViewHostMsg_SetTooltipText, OnSetTooltipText)
|
| IPC_MESSAGE_HANDLER_GENERIC(ViewHostMsg_SwapCompositorFrame,
|
| OnSwapCompositorFrame(msg))
|
| - IPC_MESSAGE_HANDLER(ViewHostMsg_DidStopFlinging, OnFlingingStopped)
|
| IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateRect, OnUpdateRect)
|
| IPC_MESSAGE_HANDLER(ViewHostMsg_Focus, OnFocus)
|
| IPC_MESSAGE_HANDLER(ViewHostMsg_Blur, OnBlur)
|
| @@ -1502,11 +1501,6 @@ bool RenderWidgetHostImpl::OnSwapCompositorFrame(
|
| return true;
|
| }
|
|
|
| -void RenderWidgetHostImpl::OnFlingingStopped() {
|
| - if (view_)
|
| - view_->DidStopFlinging();
|
| -}
|
| -
|
| void RenderWidgetHostImpl::OnUpdateRect(
|
| const ViewHostMsg_UpdateRect_Params& params) {
|
| TRACE_EVENT0("renderer_host", "RenderWidgetHostImpl::OnUpdateRect");
|
| @@ -1822,8 +1816,6 @@ void RenderWidgetHostImpl::OnHasTouchEventHandlers(bool has_handlers) {
|
| void RenderWidgetHostImpl::DidFlush() {
|
| if (synthetic_gesture_controller_)
|
| synthetic_gesture_controller_->OnDidFlushInput();
|
| - if (view_)
|
| - view_->OnDidFlushInput();
|
| }
|
|
|
| void RenderWidgetHostImpl::DidOverscroll(const DidOverscrollParams& params) {
|
| @@ -1831,6 +1823,11 @@ void RenderWidgetHostImpl::DidOverscroll(const DidOverscrollParams& params) {
|
| view_->DidOverscroll(params);
|
| }
|
|
|
| +void RenderWidgetHostImpl::DidStopFlinging() {
|
| + if (view_)
|
| + view_->DidStopFlinging();
|
| +}
|
| +
|
| void RenderWidgetHostImpl::OnKeyboardEventAck(
|
| const NativeWebKeyboardEvent& event,
|
| InputEventAckState ack_result) {
|
|
|