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 // Singly or Multiply-included shared traits file depending on circumstances. |
| 6 // This allows the use of IPC serialization macros in more than one IPC message |
| 7 // file. |
| 8 #ifndef CONTENT_COMMON_INPUT_INPUT_PARAM_TRAITS_MACROS_H_ |
| 9 #define CONTENT_COMMON_INPUT_INPUT_PARAM_TRAITS_MACROS_H_ |
| 10 |
| 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "content/common/content_export.h" |
| 13 #include "content/common/input/event_packet_ack.h" |
| 14 #include "content/common/input/input_event.h" |
| 15 #include "content/common/input/input_event_disposition.h" |
| 16 #include "content/common/input/generic_input_event.h" |
| 17 #include "ipc/ipc_message_macros.h" |
| 18 #include "ipc/ipc_message_utils.h" |
| 19 |
| 20 #undef IPC_MESSAGE_EXPORT |
| 21 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| 22 |
| 23 IPC_ENUM_TRAITS(content::InputEventDisposition) |
| 24 IPC_ENUM_TRAITS(content::InputEvent::Type) |
| 25 IPC_ENUM_TRAITS(content::InputEvent::AckType) |
| 26 |
| 27 IPC_STRUCT_TRAITS_BEGIN(content::EventPacketAck) |
| 28 IPC_STRUCT_TRAITS_MEMBER(id) |
| 29 IPC_STRUCT_TRAITS_MEMBER(dispositions) |
| 30 IPC_STRUCT_TRAITS_END() |
| 31 |
| 32 IPC_STRUCT_TRAITS_BEGIN(content::InputEvent) |
| 33 IPC_STRUCT_TRAITS_MEMBER(type) |
| 34 IPC_STRUCT_TRAITS_MEMBER(ack_type) |
| 35 IPC_STRUCT_TRAITS_MEMBER(id) |
| 36 IPC_STRUCT_TRAITS_END() |
| 37 |
| 38 IPC_STRUCT_TRAITS_BEGIN(content::GenericInputEvent) |
| 39 IPC_STRUCT_TRAITS_PARENT(content::InputEvent) |
| 40 IPC_STRUCT_TRAITS_MEMBER(message) |
| 41 IPC_STRUCT_TRAITS_END() |
| 42 |
| 43 #endif // CONTENT_COMMON_INPUT_INPUT_PARAM_TRAITS_MACROS_H_ |
OLD | NEW |