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_PUBLIC_COMMON_COMMON_PARAM_TRAITS_MACROS_H_ | 8 #ifndef CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_MACROS_H_ |
9 #define CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_MACROS_H_ | 9 #define CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_MACROS_H_ |
10 | 10 |
11 #include "content/public/common/console_message_level.h" | 11 #include "content/public/common/console_message_level.h" |
12 #include "content/public/common/page_transition_types.h" | 12 #include "content/public/common/page_transition_types.h" |
13 #include "content/public/common/referrer.h" | 13 #include "content/public/common/referrer.h" |
14 #include "content/public/common/security_style.h" | 14 #include "content/public/common/security_style.h" |
15 #include "content/public/common/ssl_status.h" | 15 #include "content/public/common/ssl_status.h" |
16 #include "content/public/common/webplugininfo.h" | 16 #include "content/public/common/webplugininfo.h" |
17 #include "ipc/ipc_message_macros.h" | 17 #include "ipc/ipc_message_macros.h" |
| 18 #include "content/public/common/webpreferences.h" |
18 #include "net/base/request_priority.h" | 19 #include "net/base/request_priority.h" |
19 #include "third_party/WebKit/public/platform/WebPoint.h" | 20 #include "third_party/WebKit/public/platform/WebPoint.h" |
20 #include "third_party/WebKit/public/platform/WebRect.h" | 21 #include "third_party/WebKit/public/platform/WebRect.h" |
21 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" | 22 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" |
22 #include "third_party/WebKit/public/platform/WebURLRequest.h" | 23 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
23 #include "third_party/WebKit/public/web/WebWindowFeatures.h" | 24 #include "third_party/WebKit/public/web/WebWindowFeatures.h" |
24 #include "ui/base/window_open_disposition.h" | 25 #include "ui/base/window_open_disposition.h" |
25 #include "webkit/common/webpreferences.h" | |
26 | 26 |
27 #undef IPC_MESSAGE_EXPORT | 27 #undef IPC_MESSAGE_EXPORT |
28 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 28 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
29 | 29 |
30 IPC_ENUM_TRAITS(content::ConsoleMessageLevel) | 30 IPC_ENUM_TRAITS(content::ConsoleMessageLevel) |
31 IPC_ENUM_TRAITS(content::PageTransition) | 31 IPC_ENUM_TRAITS(content::PageTransition) |
32 IPC_ENUM_TRAITS(content::SecurityStyle) | 32 IPC_ENUM_TRAITS(content::SecurityStyle) |
33 IPC_ENUM_TRAITS(blink::WebReferrerPolicy) | 33 IPC_ENUM_TRAITS(blink::WebReferrerPolicy) |
34 IPC_ENUM_TRAITS(WindowOpenDisposition) | 34 IPC_ENUM_TRAITS(WindowOpenDisposition) |
35 IPC_ENUM_TRAITS(webkit_glue::EditingBehavior) | 35 IPC_ENUM_TRAITS(content::EditingBehavior) |
36 IPC_ENUM_TRAITS_MAX_VALUE(net::RequestPriority, net::MAXIMUM_PRIORITY) | 36 IPC_ENUM_TRAITS_MAX_VALUE(net::RequestPriority, net::MAXIMUM_PRIORITY) |
37 | 37 |
38 IPC_STRUCT_TRAITS_BEGIN(blink::WebPoint) | 38 IPC_STRUCT_TRAITS_BEGIN(blink::WebPoint) |
39 IPC_STRUCT_TRAITS_MEMBER(x) | 39 IPC_STRUCT_TRAITS_MEMBER(x) |
40 IPC_STRUCT_TRAITS_MEMBER(y) | 40 IPC_STRUCT_TRAITS_MEMBER(y) |
41 IPC_STRUCT_TRAITS_END() | 41 IPC_STRUCT_TRAITS_END() |
42 | 42 |
43 IPC_STRUCT_TRAITS_BEGIN(blink::WebRect) | 43 IPC_STRUCT_TRAITS_BEGIN(blink::WebRect) |
44 IPC_STRUCT_TRAITS_MEMBER(x) | 44 IPC_STRUCT_TRAITS_MEMBER(x) |
45 IPC_STRUCT_TRAITS_MEMBER(y) | 45 IPC_STRUCT_TRAITS_MEMBER(y) |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 IPC_STRUCT_TRAITS_MEMBER(statusBarVisible) | 219 IPC_STRUCT_TRAITS_MEMBER(statusBarVisible) |
220 IPC_STRUCT_TRAITS_MEMBER(toolBarVisible) | 220 IPC_STRUCT_TRAITS_MEMBER(toolBarVisible) |
221 IPC_STRUCT_TRAITS_MEMBER(locationBarVisible) | 221 IPC_STRUCT_TRAITS_MEMBER(locationBarVisible) |
222 IPC_STRUCT_TRAITS_MEMBER(scrollbarsVisible) | 222 IPC_STRUCT_TRAITS_MEMBER(scrollbarsVisible) |
223 IPC_STRUCT_TRAITS_MEMBER(resizable) | 223 IPC_STRUCT_TRAITS_MEMBER(resizable) |
224 IPC_STRUCT_TRAITS_MEMBER(fullscreen) | 224 IPC_STRUCT_TRAITS_MEMBER(fullscreen) |
225 IPC_STRUCT_TRAITS_MEMBER(dialog) | 225 IPC_STRUCT_TRAITS_MEMBER(dialog) |
226 IPC_STRUCT_TRAITS_END() | 226 IPC_STRUCT_TRAITS_END() |
227 | 227 |
228 #endif // CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_MACROS_H_ | 228 #endif // CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_MACROS_H_ |
OLD | NEW |