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

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

Issue 15920002: Fix WebView compositor input handling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Avoid DCHECKs when retrieving process ID Created 7 years, 6 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/renderer/gpu/input_event_filter.h
diff --git a/content/renderer/gpu/input_event_filter.h b/content/renderer/gpu/input_event_filter.h
index 693aefa9e575b2a1800e654937e950d4b3702bb3..499003c0d510bd05fe1c6af9f1cf69f2873f7ca8 100644
--- a/content/renderer/gpu/input_event_filter.h
+++ b/content/renderer/gpu/input_event_filter.h
@@ -12,6 +12,7 @@
#include "base/synchronization/lock.h"
#include "content/common/content_export.h"
#include "content/port/common/input_event_ack_state.h"
+#include "content/renderer/gpu/input_handler_manager_client.h"
#include "ipc/ipc_channel_proxy.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
@@ -26,11 +27,11 @@
namespace content {
class CONTENT_EXPORT InputEventFilter
- : public IPC::ChannelProxy::MessageFilter {
+ : public InputHandlerManagerClient,
+ public IPC::ChannelProxy::MessageFilter {
public:
- typedef base::Callback<InputEventAckState(
- int /*routing_id*/,
- const WebKit::WebInputEvent*)> Handler;
+ InputEventFilter(IPC::Listener* main_listener,
+ const scoped_refptr<base::MessageLoopProxy>& target_loop);
// The |handler| is invoked on the thread associated with |target_loop| to
// handle input events matching the filtered routes.
@@ -42,13 +43,9 @@ class CONTENT_EXPORT InputEventFilter
// is left to the eventual handler to deliver the corresponding
// InputHostMsg_HandleInputEvent_ACK.
//
- InputEventFilter(IPC::Listener* main_listener,
- const scoped_refptr<base::MessageLoopProxy>& target_loop,
- const Handler& handler);
-
- // Define the message routes to be filtered.
- void AddRoute(int routing_id);
- void RemoveRoute(int routing_id);
+ virtual void SetBoundHandler(const Handler& handler) OVERRIDE;
+ virtual void DidAddInputHandler(int routing_id) OVERRIDE;
+ virtual void DidRemoveInputHandler(int routing_id) OVERRIDE;
// IPC::ChannelProxy::MessageFilter methods:
virtual void OnFilterAdded(IPC::Channel* channel) OVERRIDE;
« no previous file with comments | « content/renderer/android/synchronous_compositor_factory.h ('k') | content/renderer/gpu/input_event_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698