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

Unified Diff: content/browser/renderer_host/input/event_ack_handler.h

Issue 20356003: Provided batched input delivery with a BufferedInputRouter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: BufferedInputRouter unit tests Created 7 years, 4 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/browser/renderer_host/input/event_ack_handler.h
diff --git a/content/browser/renderer_host/input/event_ack_handler.h b/content/browser/renderer_host/input/event_ack_handler.h
new file mode 100644
index 0000000000000000000000000000000000000000..f94d4a4a5088b4980438fdb1f1dfc191eb8ef043
--- /dev/null
+++ b/content/browser/renderer_host/input/event_ack_handler.h
@@ -0,0 +1,40 @@
+// 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_BROWSER_RENDERER_HOST_INPUT_EVENT_ACK_HANDLER_H_
+#define CONTENT_BROWSER_RENDERER_HOST_INPUT_EVENT_ACK_HANDLER_H_
+
+#include "base/basictypes.h"
+
+namespace content {
+
+class EventInjector;
+class InputEvent;
+
+// Queued with an InputEvent to allow customized ack response.
+class EventAckHandler {
aelias_OOO_until_Jul13 2013/08/13 06:11:51 Please delete this class as it stands, I don't thi
jdduke (slow) 2013/08/13 15:29:48 I agree, that's why I told you I wanted to delete
+ public:
+ virtual ~EventAckHandler() { }
+
+ virtual void OnInputEventAck(const InputEvent& acked_event) = 0;
aelias_OOO_until_Jul13 2013/08/13 06:11:51 This method can be moved to InputQueueClient.
jdduke (slow) 2013/08/13 15:29:48 Done.
+
+ // Allows the creation of follow-up events from an |acked_event|.
+ // Injected events will be inserted into the event queue at the same relative
+ // location as that occupied by |acked_event|.
+ class EventInjector {
aelias_OOO_until_Jul13 2013/08/13 06:11:51 This class should be deleted (and it's not what I
jdduke (slow) 2013/08/13 15:29:48 Perhaps not in the end, but without modifying a nu
+ public:
+ virtual ~EventInjector() { }
+ virtual void InjectEvent(const InputEvent& acked_event,
+ EventAckHandler* ack_handler) = 0;
+ };
+
+ // Only called if |acked_event| was flagged for follow-up event injection.
+ // |injector| will never be null.
+ virtual void OnInputEventAck(const InputEvent& acked_event,
+ EventInjector* injector) = 0;
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_EVENT_ACK_HANDLER_H_

Powered by Google App Engine
This is Rietveld 408576698