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

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

Issue 20356003: Provided batched input delivery with a BufferedInputRouter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code review 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/input_queue_client.h
diff --git a/content/browser/renderer_host/input/input_queue_client.h b/content/browser/renderer_host/input/input_queue_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..d7d5e46b306ac91777ce93dadf50b80599323711
--- /dev/null
+++ b/content/browser/renderer_host/input/input_queue_client.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_BROWSER_RENDERER_HOST_INPUT_INPUT_QUEUE_CLIENT_H_
+#define CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_QUEUE_CLIENT_H_
+
+#include <vector>
+
+#include "base/basictypes.h"
+
+namespace content {
+
+class EventPacket;
+
+class InputQueueClient {
+ public:
+ virtual ~InputQueueClient() {}
+
+ // Used by the flush process for sending batched events to the desired target.
+ virtual void Deliver(const EventPacket& packet) = 0;
+
+ // Signalled when the InputQueue has received and dispatched
+ // event ACK's from the previous flush.
+ virtual void DidFlush() = 0;
+
+ // Signalled when the InputQueue receives an input event.
+ virtual void SetNeedsFlush() = 0;
+
+ // Dispatch an ack'ed event to the client. Returned events will be inserted
+ // into the current flush stream.
+ virtual std::vector<InputEvent> OnInputEventAck(
+ const InputEvent& acked_event) = 0;
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_QUEUE_CLIENT_H_

Powered by Google App Engine
This is Rietveld 408576698