Chromium Code Reviews| Index: content/common/input/input_event.h |
| diff --git a/content/common/input/input_event.h b/content/common/input/input_event.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..e44da6964dd4e0fd17a2f1cafdd17330898796cf |
| --- /dev/null |
| +++ b/content/common/input/input_event.h |
| @@ -0,0 +1,37 @@ |
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CONTENT_COMMON_INPUT_INPUT_EVENT_H_ |
| +#define CONTENT_COMMON_INPUT_INPUT_EVENT_H_ |
| + |
| +#include "content/common/content_export.h" |
| +#include "content/common/input/input_event_state.h" |
| +#include "content/common/input/input_event_type.h" |
| +#include "ipc/ipc_message.h" |
| + |
| +namespace content { |
| + |
| +class CONTENT_EXPORT InputEvent { |
| + public: |
| + InputEvent(int64 id, InputEventType type, const IPC::Message& message); |
| + InputEvent(); |
| + ~InputEvent(); |
| + |
| + // The unique event id. |
| + int64 id; |
| + |
| + // Whether the event needs an ACK, or can create follow-up events. |
| + InputEventType type; |
| + |
| + // The pickled event payload. |
| + IPC::Message message; |
|
aelias_OOO_until_Jul13
2013/08/15 00:52:15
I'm not a huge fan of putting an opaque blob here.
jdduke (slow)
2013/08/15 23:22:26
Nope. I've been working on that yesterday and tod
|
| + |
| + // The current state of the event. This may change as the event is handled |
| + // by various parts of the input pipeline, both in the browser and renderer. |
| + InputEventState state; |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_COMMON_INPUT_INPUT_EVENT_H_ |