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

Unified Diff: content/renderer/gpu/input_handler_manager_client.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
« no previous file with comments | « content/renderer/gpu/input_handler_manager.cc ('k') | content/renderer/gpu/input_handler_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/gpu/input_handler_manager_client.h
diff --git a/content/renderer/gpu/input_handler_manager_client.h b/content/renderer/gpu/input_handler_manager_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..79f8b9e3efdc37a0b700c54fa31a4cc36c5a1ab7
--- /dev/null
+++ b/content/renderer/gpu/input_handler_manager_client.h
@@ -0,0 +1,44 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_RENDERER_GPU_INPUT_HANDLER_MANAGER_CLIENT_H_
+#define CONTENT_RENDERER_GPU_INPUT_HANDLER_MANAGER_CLIENT_H_
+
+#include "base/basictypes.h"
+#include "base/callback_forward.h"
+#include "content/common/content_export.h"
+
+namespace WebKit {
+class WebInputEvent;
+}
+
+namespace content {
+
+class CONTENT_EXPORT InputHandlerManagerClient {
+ public:
+ virtual ~InputHandlerManagerClient() {}
+
+ // The Manager will supply a |handler| when bound to the client. This is valid
+ // until the manager shuts down, at which point it supplies a null |handler|.
+ // The client should only makes calls to |handler| on the compositor thread.
+ typedef base::Callback<InputEventAckState(
+ int /*routing_id*/, const WebKit::WebInputEvent*)> Handler;
+
+ // Called from the main thread.
+ virtual void SetBoundHandler(const Handler& handler) = 0;
+
+ // Called from the compositor thread.
+ virtual void DidAddInputHandler(int routing_id) = 0;
+ virtual void DidRemoveInputHandler(int routing_id) = 0;
+
+ protected:
+ InputHandlerManagerClient() {}
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(InputHandlerManagerClient);
+};
+
+} // namespace content
+
+#endif // CONTENT_COMMON_GPU_INPUT_HANDLER_MANAGER_CLIENT_H_
« no previous file with comments | « content/renderer/gpu/input_handler_manager.cc ('k') | content/renderer/gpu/input_handler_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698