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

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

Issue 25385002: Remove the BufferedInputRouter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Space removal Created 7 years, 3 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
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.h ('k') | content/common/input/event_packet.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ac3915ed9f2fda4b8be61dfd2216c7ef6b08539b..c0a44a2359433de9b7ca6cd23613fbf35bcf53b7 100644
--- a/content/browser/renderer_host/render_widget_host_impl.cc
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
@@ -29,7 +29,6 @@
#include "content/browser/renderer_host/backing_store.h"
#include "content/browser/renderer_host/backing_store_manager.h"
#include "content/browser/renderer_host/dip_util.h"
-#include "content/browser/renderer_host/input/buffered_input_router.h"
#include "content/browser/renderer_host/input/immediate_input_router.h"
#include "content/browser/renderer_host/overscroll_controller.h"
#include "content/browser/renderer_host/render_process_host_impl.h"
@@ -226,7 +225,8 @@ RenderWidgetHostImpl::RenderWidgetHostImpl(RenderWidgetHostDelegate* delegate,
for (size_t i = 0; i < g_created_callbacks.Get().size(); i++)
g_created_callbacks.Get().at(i).Run(this);
- input_router_ = CreateInputRouter();
+ input_router_.reset(
+ new ImmediateInputRouter(process_, this, this, routing_id_));
#if defined(USE_AURA)
bool overscroll_enabled = CommandLine::ForCurrentProcess()->
@@ -1280,7 +1280,8 @@ void RenderWidgetHostImpl::RendererExited(base::TerminationStatus status,
waiting_for_screen_rects_ack_ = false;
// Reset to ensure that input routing works with a new renderer.
- input_router_ = CreateInputRouter();
+ input_router_.reset(
+ new ImmediateInputRouter(process_, this, this, routing_id_));
if (overscroll_controller_)
overscroll_controller_->Reset();
@@ -2470,17 +2471,6 @@ void RenderWidgetHostImpl::DelayedAutoResized() {
OnRenderAutoResized(new_size);
}
-scoped_ptr<InputRouter> RenderWidgetHostImpl::CreateInputRouter() {
- if (CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableBufferedInputRouter)) {
- return scoped_ptr<InputRouter>(
- new BufferedInputRouter(process_, this, this, routing_id_));
- } else {
- return scoped_ptr<InputRouter>(
- new ImmediateInputRouter(process_, this, this, routing_id_));
- }
-}
-
void RenderWidgetHostImpl::DetachDelegate() {
delegate_ = NULL;
}
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.h ('k') | content/common/input/event_packet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698