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 "content/common/content_export.h" | |
9 #include "content/common/input/input_event_state.h" | |
10 #include "content/common/input/input_event_type.h" | |
11 #include "ipc/ipc_message.h" | |
12 | |
13 namespace content { | |
14 | |
15 class CONTENT_EXPORT InputEvent { | |
16 public: | |
17 InputEvent(int64 id, InputEventType type, const IPC::Message& message); | |
18 InputEvent(); | |
19 ~InputEvent(); | |
20 | |
21 // The unique event id. | |
22 int64 id; | |
23 | |
24 // Whether the event needs an ACK, or can create follow-up events. | |
25 InputEventType type; | |
26 | |
27 // The pickled event payload. | |
28 IPC::Message message; | |
nduca
2013/08/12 23:32:40
also why's it pickled? I would have expected this
jdduke (slow)
2013/08/12 23:45:27
Well, I'm considering doing away with this complet
| |
29 | |
30 // The current state of the event. This may change as the event is handled | |
31 // by various parts of the input pipeline, both in the browser and renderer. | |
32 InputEventState state; | |
33 }; | |
34 | |
35 } // namespace content | |
36 | |
37 #endif // CONTENT_COMMON_INPUT_INPUT_EVENT_H_ | |
OLD | NEW |