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

Side by Side 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 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_EVENT_ACK_HANDLER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_EVENT_ACK_HANDLER_H_
7
8 #include "base/basictypes.h"
9
10 namespace content {
11
12 class EventInjector;
13 class InputEvent;
14
15 // Queued with an InputEvent to allow customized ack response.
16 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
17 public:
18 virtual ~EventAckHandler() { }
19
20 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.
21
22 // Allows the creation of follow-up events from an |acked_event|.
23 // Injected events will be inserted into the event queue at the same relative
24 // location as that occupied by |acked_event|.
25 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
26 public:
27 virtual ~EventInjector() { }
28 virtual void InjectEvent(const InputEvent& acked_event,
29 EventAckHandler* ack_handler) = 0;
30 };
31
32 // Only called if |acked_event| was flagged for follow-up event injection.
33 // |injector| will never be null.
34 virtual void OnInputEventAck(const InputEvent& acked_event,
35 EventInjector* injector) = 0;
36 };
37
38 } // namespace content
39
40 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_EVENT_ACK_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698