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

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

Issue 628763003: Support InputRouter recycling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updates Created 6 years, 2 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 f152c57916ac229b736484ec5016bb1406c4f327..ff88b56e6c230abba68e9e77398cc80176b6992c 100644
--- a/content/browser/renderer_host/render_widget_host_impl.cc
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
@@ -187,7 +187,6 @@ RenderWidgetHostImpl::RenderWidgetHostImpl(RenderWidgetHostDelegate* delegate,
suppress_next_char_events_(false),
pending_mouse_lock_request_(false),
allow_privileged_mouse_lock_(false),
- has_touch_handler_(false),
last_input_number_(static_cast<int64>(GetProcess()->GetID()) << 32),
next_browser_snapshot_id_(1),
browser_composite_latency_history_(kBrowserCompositeLatencyHistorySize),
@@ -393,7 +392,7 @@ void RenderWidgetHostImpl::SuppressNextCharEvents() {
}
void RenderWidgetHostImpl::FlushInput() {
- input_router_->Flush();
+ input_router_->RequestFlushedNotification();
if (synthetic_gesture_controller_)
synthetic_gesture_controller_->Flush(base::TimeTicks::Now());
}
@@ -1855,15 +1854,9 @@ void RenderWidgetHostImpl::DecrementInFlightEventCount() {
}
}
-void RenderWidgetHostImpl::OnHasTouchEventHandlers(bool has_handlers) {
- has_touch_handler_ = has_handlers;
-}
-
void RenderWidgetHostImpl::DidFlush() {
if (synthetic_gesture_controller_)
synthetic_gesture_controller_->OnDidFlushInput();
- if (view_)
- view_->OnDidFlushInput();
}
void RenderWidgetHostImpl::DidOverscroll(const DidOverscrollParams& params) {

Powered by Google App Engine
This is Rietveld 408576698