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

Unified Diff: content/public/renderer/android/synchronous_input_event_handler.h

Issue 15920002: Fix WebView compositor input handling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make InputEventAckState public 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
Index: content/public/renderer/android/synchronous_input_event_handler.h
diff --git a/content/public/renderer/android/synchronous_input_event_handler.h b/content/public/renderer/android/synchronous_input_event_handler.h
new file mode 100644
index 0000000000000000000000000000000000000000..d3e9cb585427345937a9221b3f8fb9519a398819
--- /dev/null
+++ b/content/public/renderer/android/synchronous_input_event_handler.h
@@ -0,0 +1,38 @@
+// 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_PUBLIC_COMMON_ANDROID_SYNCHRONOUS_INPUT_EVENT_HANDLER_H_
+#define CONTENT_PUBLIC_COMMON_ANDROID_SYNCHRONOUS_INPUT_EVENT_HANDLER_H_
+
+#include "base/basictypes.h"
+#include "content/common/content_export.h"
+#include "content/public/common/input_event_ack_state.h"
+
+namespace WebKit {
+class WebInputEvent;
+}
+
+namespace content {
+
+// Interface for embedders that wish to expose synchronous, in-process input
+// even handling operations. Only meaningful when the
+// kEnableSynchronousRendererCompositor flag is specified.
+class CONTENT_EXPORT SynchronousInputEventHandler {
+ public:
+ virtual ~SynchronousInputEventHandler() {}
+
+ virtual InputEventAckState HandleInputEvent(
+ int routing_id,
+ const WebKit::WebInputEvent* input_event) = 0;
+
+ protected:
+ SynchronousInputEventHandler() {}
+
+private:
+ DISALLOW_COPY_AND_ASSIGN(SynchronousInputEventHandler);
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_COMMON_ANDROID_SYNCHRONOUS_INPUT_EVENT_HANDLER_H_

Powered by Google App Engine
This is Rietveld 408576698