Move compositor InputHandler from RenderViewImpl to RenderWidget.
At present the input handler for cross-process iframes is installed
only on the RenderViewImpl, meaning that events sent to them can only
be handled on the main thread (instead of the compositor thread).
Note: The compositor layer tree on the RenderViewImpl for a cross-
process frame renderer is actually empty.
This CL attaches an input handler to each RenderWidget instead,
allowing compositor-thread handling of input events for all
the frames. This is a precursor for handling GesturePinch events for
subframes.
TBR=alexmos@chromium.org
BUG=654917
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel
Review-Url: https://codereview.chromium.org/2479663002
Cr-Commit-Position: refs/heads/master@{#445295}
diff --git a/content/renderer/input/input_handler_wrapper.h b/content/renderer/input/input_handler_wrapper.h
index 67a1ef6..4519eff 100644
--- a/content/renderer/input/input_handler_wrapper.h
+++ b/content/renderer/input/input_handler_wrapper.h
@@ -27,7 +27,7 @@
int routing_id,
const scoped_refptr<base::SingleThreadTaskRunner>& main_task_runner,
const base::WeakPtr<cc::InputHandler>& input_handler,
- const base::WeakPtr<RenderViewImpl>& render_view_impl,
+ const base::WeakPtr<RenderWidget>& render_widget,
bool enable_smooth_scrolling);
~InputHandlerWrapper() override;
@@ -63,7 +63,7 @@
scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
// Can only be accessed on the main thread.
- base::WeakPtr<RenderViewImpl> render_view_impl_;
+ base::WeakPtr<RenderWidget> render_widget_;
DISALLOW_COPY_AND_ASSIGN(InputHandlerWrapper);
};