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

Side by Side Diff: content/common/input/input_event.h

Issue 19624005: Add InputEvent and EventPacket types for batched input delivery (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup Created 7 years, 3 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
« no previous file with comments | « content/common/input/generic_input_event.cc ('k') | content/common/input/input_event.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_COMMON_INPUT_INPUT_EVENT_H_
6 #define CONTENT_COMMON_INPUT_INPUT_EVENT_H_
7
8 #include "base/basictypes.h"
9 #include "content/common/content_export.h"
10
11 namespace content {
12
13 // Base class for input types delivered to the renderer.
14 class CONTENT_EXPORT InputEvent {
15 public:
16 // Used for serialization.
17 enum Type {
18 GENERIC,
nduca 2013/08/27 18:45:36 In your explanation to me of this, you described i
19 WEB_PLATFORM,
20 };
21
22 // Informs event response.
23 enum AckType {
nduca 2013/08/27 22:16:07 DispositionRequirement
24 ACK_NOT_REQUIRED,
25 ACK_REQUIRED,
26 ACK_CAN_CREATE_FOLLOWUP_EVENTS
nduca 2013/08/27 22:16:07 ACK_REQUIRED_AND_CAN_CREATE_FOLLOWUP
27 };
28
29 virtual ~InputEvent();
30
31 Type type;
nduca 2013/08/27 18:45:36 This class still feels very structy/tightly-couple
32 AckType ack_type;
nduca 2013/08/27 22:16:07 AckType GetDispoitionRequirements() const = 0;
33 int64 id;
34
35 protected:
36 InputEvent(Type type, AckType ack_type, int64 id);
37
38 private:
39 DISALLOW_COPY_AND_ASSIGN(InputEvent);
40 };
41
42 } // namespace content
43
44 #endif // CONTENT_COMMON_INPUT_INPUT_EVENT_H_
OLDNEW
« no previous file with comments | « content/common/input/generic_input_event.cc ('k') | content/common/input/input_event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698