Update V8 to version 4.7.42.
[chromium-blink-merge.git] / content / common / content_param_traits_macros.h
blob340dc7d2dd1d2ad73506226a3d48d2d923abc79e
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
3 // found in the LICENSE file.
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_CONTENT_PARAM_TRAITS_MACROS_H_
9 #define CONTENT_COMMON_CONTENT_PARAM_TRAITS_MACROS_H_
11 #include "content/common/content_export.h"
12 #include "content/public/common/request_context_frame_type.h"
13 #include "content/public/common/request_context_type.h"
14 #include "content/public/common/resource_type.h"
15 #include "ipc/ipc_message_macros.h"
16 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h"
17 #include "third_party/WebKit/public/web/WebCompositionUnderline.h"
18 #include "third_party/WebKit/public/web/WebContentSecurityPolicy.h"
19 #include "third_party/WebKit/public/web/WebInputEvent.h"
21 #undef IPC_MESSAGE_EXPORT
22 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
24 IPC_ENUM_TRAITS_MAX_VALUE(content::ResourceType,
25 content::RESOURCE_TYPE_LAST_TYPE - 1)
26 IPC_ENUM_TRAITS_MAX_VALUE(content::RequestContextType,
27 content::REQUEST_CONTEXT_TYPE_LAST)
28 IPC_ENUM_TRAITS_MAX_VALUE(content::RequestContextFrameType,
29 content::REQUEST_CONTEXT_FRAME_TYPE_LAST)
30 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebContentSecurityPolicyType,
31 blink::WebContentSecurityPolicyTypeLast)
32 IPC_ENUM_TRAITS_MIN_MAX_VALUE(blink::WebInputEvent::Type,
33 blink::WebInputEvent::TypeFirst,
34 blink::WebInputEvent::TypeLast)
35 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebPageVisibilityState,
36 blink::WebPageVisibilityStateLast)
38 IPC_STRUCT_TRAITS_BEGIN(blink::WebCompositionUnderline)
39 IPC_STRUCT_TRAITS_MEMBER(startOffset)
40 IPC_STRUCT_TRAITS_MEMBER(endOffset)
41 IPC_STRUCT_TRAITS_MEMBER(color)
42 IPC_STRUCT_TRAITS_MEMBER(thick)
43 IPC_STRUCT_TRAITS_MEMBER(backgroundColor)
44 IPC_STRUCT_TRAITS_END()
46 #endif // CONTENT_COMMON_CONTENT_PARAM_TRAITS_MACROS_H_