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

Unified Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 1003023002: Signal input flush when all flings have terminated (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test compile Created 5 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: 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) {
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.h ('k') | content/browser/renderer_host/render_widget_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698