Index: content/common/input/input_param_traits_macros.h |
diff --git a/content/common/input/input_param_traits_macros.h b/content/common/input/input_param_traits_macros.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7d2172affae1512212b2a4ea9442232b7b4ba8ab |
--- /dev/null |
+++ b/content/common/input/input_param_traits_macros.h |
@@ -0,0 +1,42 @@ |
+// Copyright (c) 2012 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. |
+ |
+// Singly or Multiply-included shared traits file depending on circumstances. |
+// This allows the use of IPC serialization macros in more than one IPC message |
+// file. |
+#ifndef CONTENT_COMMON_INPUT_INPUT_PARAM_TRAITS_MACROS_H_ |
+#define CONTENT_COMMON_INPUT_INPUT_PARAM_TRAITS_MACROS_H_ |
+ |
+#include "base/memory/scoped_ptr.h" |
+#include "content/common/content_export.h" |
+#include "content/common/input/event_packet.h" |
+#include "content/common/input/event_packet_ack.h" |
+#include "content/common/input/input_event.h" |
+#include "content/common/input/input_event_state.h" |
+#include "content/common/input/generic_event.h" |
+#include "ipc/ipc_message_macros.h" |
+#include "ipc/ipc_message_utils.h" |
+ |
+#undef IPC_MESSAGE_EXPORT |
+#define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
+ |
+IPC_ENUM_TRAITS(content::InputEventState) |
+IPC_ENUM_TRAITS(content::InputEvent::Type) |
+ |
+IPC_STRUCT_TRAITS_BEGIN(content::EventPacketAck) |
+ IPC_STRUCT_TRAITS_MEMBER(id) |
+ IPC_STRUCT_TRAITS_MEMBER(event_states) |
+IPC_STRUCT_TRAITS_END() |
+ |
+IPC_STRUCT_TRAITS_BEGIN(content::InputEvent) |
+ IPC_STRUCT_TRAITS_MEMBER(id) |
+ IPC_STRUCT_TRAITS_MEMBER(type) |
+IPC_STRUCT_TRAITS_END() |
+ |
+IPC_STRUCT_TRAITS_BEGIN(content::GenericEvent) |
+ IPC_STRUCT_TRAITS_PARENT(content::InputEvent) |
+ IPC_STRUCT_TRAITS_MEMBER(message) |
+IPC_STRUCT_TRAITS_END() |
+ |
+#endif // CONTENT_COMMON_INPUT_INPUT_PARAM_TRAITS_MACROS_H_ |