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; |
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
|
+ |
+ // 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_ |