OLD | NEW |
---|---|
(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_ | |
OLD | NEW |