OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Singly or Multiply-included shared traits file depending on circumstances. | 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 | 6 // This allows the use of IPC serialization macros in more than one IPC message |
7 // file. | 7 // file. |
8 #ifndef CONTENT_COMMON_CONTENT_PARAM_TRAITS_MACROS_H_ | 8 #ifndef CONTENT_COMMON_CONTENT_PARAM_TRAITS_MACROS_H_ |
9 #define CONTENT_COMMON_CONTENT_PARAM_TRAITS_MACROS_H_ | 9 #define CONTENT_COMMON_CONTENT_PARAM_TRAITS_MACROS_H_ |
10 | 10 |
(...skipping 15 matching lines...) Expand all Loading... |
26 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 26 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
27 | 27 |
28 IPC_ENUM_TRAITS_MAX_VALUE(content::InputEventAckState, | 28 IPC_ENUM_TRAITS_MAX_VALUE(content::InputEventAckState, |
29 content::INPUT_EVENT_ACK_STATE_MAX) | 29 content::INPUT_EVENT_ACK_STATE_MAX) |
30 IPC_ENUM_TRAITS_MAX_VALUE(content::ResourceType, | 30 IPC_ENUM_TRAITS_MAX_VALUE(content::ResourceType, |
31 content::RESOURCE_TYPE_LAST_TYPE - 1) | 31 content::RESOURCE_TYPE_LAST_TYPE - 1) |
32 IPC_ENUM_TRAITS_MAX_VALUE(content::RequestContextType, | 32 IPC_ENUM_TRAITS_MAX_VALUE(content::RequestContextType, |
33 content::REQUEST_CONTEXT_TYPE_LAST) | 33 content::REQUEST_CONTEXT_TYPE_LAST) |
34 IPC_ENUM_TRAITS_MAX_VALUE(content::RequestContextFrameType, | 34 IPC_ENUM_TRAITS_MAX_VALUE(content::RequestContextFrameType, |
35 content::REQUEST_CONTEXT_FRAME_TYPE_LAST) | 35 content::REQUEST_CONTEXT_FRAME_TYPE_LAST) |
| 36 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebContentSecurityPolicySource, |
| 37 blink::WebContentSecurityPolicySourceLast) |
36 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebContentSecurityPolicyType, | 38 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebContentSecurityPolicyType, |
37 blink::WebContentSecurityPolicyTypeLast) | 39 blink::WebContentSecurityPolicyTypeLast) |
38 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebAddressSpace, blink::WebAddressSpaceLast) | 40 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebAddressSpace, blink::WebAddressSpaceLast) |
39 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebSharedWorkerCreationContextType, | 41 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebSharedWorkerCreationContextType, |
40 blink::WebSharedWorkerCreationContextTypeLast) | 42 blink::WebSharedWorkerCreationContextTypeLast) |
41 IPC_ENUM_TRAITS_MIN_MAX_VALUE(blink::WebInputEvent::Type, | 43 IPC_ENUM_TRAITS_MIN_MAX_VALUE(blink::WebInputEvent::Type, |
42 blink::WebInputEvent::TypeFirst, | 44 blink::WebInputEvent::TypeFirst, |
43 blink::WebInputEvent::TypeLast) | 45 blink::WebInputEvent::TypeLast) |
44 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebPageVisibilityState, | 46 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebPageVisibilityState, |
45 blink::WebPageVisibilityStateLast) | 47 blink::WebPageVisibilityStateLast) |
46 | 48 |
47 IPC_STRUCT_TRAITS_BEGIN(blink::WebCompositionUnderline) | 49 IPC_STRUCT_TRAITS_BEGIN(blink::WebCompositionUnderline) |
48 IPC_STRUCT_TRAITS_MEMBER(startOffset) | 50 IPC_STRUCT_TRAITS_MEMBER(startOffset) |
49 IPC_STRUCT_TRAITS_MEMBER(endOffset) | 51 IPC_STRUCT_TRAITS_MEMBER(endOffset) |
50 IPC_STRUCT_TRAITS_MEMBER(color) | 52 IPC_STRUCT_TRAITS_MEMBER(color) |
51 IPC_STRUCT_TRAITS_MEMBER(thick) | 53 IPC_STRUCT_TRAITS_MEMBER(thick) |
52 IPC_STRUCT_TRAITS_MEMBER(backgroundColor) | 54 IPC_STRUCT_TRAITS_MEMBER(backgroundColor) |
53 IPC_STRUCT_TRAITS_END() | 55 IPC_STRUCT_TRAITS_END() |
54 | 56 |
55 #endif // CONTENT_COMMON_CONTENT_PARAM_TRAITS_MACROS_H_ | 57 #endif // CONTENT_COMMON_CONTENT_PARAM_TRAITS_MACROS_H_ |
OLD | NEW |