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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_QUEUE_CLIENT_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_QUEUE_CLIENT_H_
7
8 #include <vector>
9
10 #include "base/basictypes.h"
11
12 namespace content {
13
14 class EventPacket;
15
16 class InputQueueClient {
17 public:
18 virtual ~InputQueueClient() {}
19
20 // Used by the flush process for sending batched events to the desired target.
21 virtual void Deliver(const EventPacket& packet) = 0;
22
23 // Signalled when the InputQueue has received and dispatched
24 // event ACK's from the previous flush.
25 virtual void DidFlush() = 0;
26
27 // Signalled when the InputQueue receives an input event.
28 virtual void SetNeedsFlush() = 0;
29
30 // Dispatch an ack'ed event to the client. Returned events will be inserted
31 // into the current flush stream.
32 virtual std::vector<InputEvent> OnInputEventAck(
33 const InputEvent& acked_event) = 0;
34 };
35
36 } // namespace content
37
38 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_QUEUE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698