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

Unified Diff: content/renderer/gpu/input_handler_manager.h

Issue 13844021: Move compositor thread input handling logic into content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 7 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/content_tests.gypi ('k') | content/renderer/gpu/input_handler_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/gpu/input_handler_manager.h
diff --git a/content/renderer/gpu/input_handler_manager.h b/content/renderer/gpu/input_handler_manager.h
index 567d6b39b0641d13b45aee933f12be4260353d3a..c33b5b772fdc75b8872145bcc109917a17a3c1cd 100644
--- a/content/renderer/gpu/input_handler_manager.h
+++ b/content/renderer/gpu/input_handler_manager.h
@@ -15,6 +15,10 @@ namespace base {
class MessageLoopProxy;
}
+namespace cc {
+class InputHandler;
+}
+
namespace WebKit {
class WebInputEvent;
}
@@ -22,8 +26,9 @@ class WebInputEvent;
namespace content {
class InputEventFilter;
+class InputHandlerWrapper;
-// InputHandlerManager class manages WebCompositorInputHandler instances for
+// InputHandlerManager class manages InputHandlerProxy instances for
// the WebViews in this renderer.
class InputHandlerManager {
public:
@@ -41,12 +46,11 @@ class InputHandlerManager {
IPC::ChannelProxy::MessageFilter* GetMessageFilter() const;
// Callable from the main thread only.
- void AddInputHandler(int routing_id,
- int input_handler_id,
- const base::WeakPtr<RenderViewImpl>& render_view_impl);
-
+ void AddInputHandler(
+ int routing_id,
+ const base::WeakPtr<cc::InputHandler>& input_handler,
+ const base::WeakPtr<RenderViewImpl>& render_view_impl);
- private:
// Callback only from the compositor's thread.
void RemoveInputHandler(int routing_id);
@@ -55,15 +59,16 @@ class InputHandlerManager {
const WebKit::WebInputEvent* input_event);
// Called from the compositor's thread.
+ InputEventFilter* filter() { return filter_.get(); }
+
+ private:
+ // Called from the compositor's thread.
void AddInputHandlerOnCompositorThread(
int routing_id,
- int input_handler_id,
const scoped_refptr<base::MessageLoopProxy>& main_loop,
+ const base::WeakPtr<cc::InputHandler>& input_handler,
const base::WeakPtr<RenderViewImpl>& render_view_impl);
- class InputHandlerWrapper;
- friend class InputHandlerWrapper;
-
typedef std::map<int, // routing_id
scoped_refptr<InputHandlerWrapper> > InputHandlerMap;
InputHandlerMap input_handlers_;
« no previous file with comments | « content/content_tests.gypi ('k') | content/renderer/gpu/input_handler_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698