| 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 "content/public/common/webpreferences.h" |
| 17 #include "ipc/ipc_message_macros.h" | 18 #include "ipc/ipc_message_macros.h" |
| 18 #include "net/base/network_change_notifier.h" | 19 #include "net/base/network_change_notifier.h" |
| 19 #include "net/base/request_priority.h" | 20 #include "net/base/request_priority.h" |
| 20 #include "third_party/WebKit/public/platform/WebPoint.h" | 21 #include "third_party/WebKit/public/platform/WebPoint.h" |
| 21 #include "third_party/WebKit/public/platform/WebRect.h" | 22 #include "third_party/WebKit/public/platform/WebRect.h" |
| 22 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" | 23 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" |
| 23 #include "third_party/WebKit/public/platform/WebURLRequest.h" | 24 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
| 24 #include "third_party/WebKit/public/web/WebWindowFeatures.h" | 25 #include "third_party/WebKit/public/web/WebWindowFeatures.h" |
| 25 #include "ui/base/window_open_disposition.h" | 26 #include "ui/base/window_open_disposition.h" |
| 26 #include "webkit/common/webpreferences.h" | |
| 27 | 27 |
| 28 #undef IPC_MESSAGE_EXPORT | 28 #undef IPC_MESSAGE_EXPORT |
| 29 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 29 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| 30 | 30 |
| 31 IPC_ENUM_TRAITS(content::PageTransition) // Bitmask. | 31 IPC_ENUM_TRAITS(content::PageTransition) // Bitmask. |
| 32 IPC_ENUM_TRAITS_MAX_VALUE(net::NetworkChangeNotifier::ConnectionType, | 32 IPC_ENUM_TRAITS_MAX_VALUE(net::NetworkChangeNotifier::ConnectionType, |
| 33 net::NetworkChangeNotifier::CONNECTION_LAST) | 33 net::NetworkChangeNotifier::CONNECTION_LAST) |
| 34 IPC_ENUM_TRAITS_MAX_VALUE(content::ConsoleMessageLevel, | 34 IPC_ENUM_TRAITS_MAX_VALUE(content::ConsoleMessageLevel, |
| 35 content::CONSOLE_MESSAGE_LEVEL_LAST) | 35 content::CONSOLE_MESSAGE_LEVEL_LAST) |
| 36 IPC_ENUM_TRAITS_MAX_VALUE(content::SecurityStyle, | 36 IPC_ENUM_TRAITS_MAX_VALUE(content::SecurityStyle, |
| 37 content::SECURITY_STYLE_LAST) | 37 content::SECURITY_STYLE_LAST) |
| 38 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebReferrerPolicy, | 38 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebReferrerPolicy, |
| 39 blink::WebReferrerPolicyLast) | 39 blink::WebReferrerPolicyLast) |
| 40 IPC_ENUM_TRAITS_MAX_VALUE(webkit_glue::EditingBehavior, | 40 IPC_ENUM_TRAITS_MAX_VALUE(content::EditingBehavior, |
| 41 webkit_glue::EDITING_BEHAVIOR_LAST) | 41 content::EDITING_BEHAVIOR_LAST) |
| 42 IPC_ENUM_TRAITS_MAX_VALUE(WindowOpenDisposition, | 42 IPC_ENUM_TRAITS_MAX_VALUE(WindowOpenDisposition, |
| 43 WINDOW_OPEN_DISPOSITION_LAST) | 43 WINDOW_OPEN_DISPOSITION_LAST) |
| 44 IPC_ENUM_TRAITS_MAX_VALUE(net::RequestPriority, net::MAXIMUM_PRIORITY) | 44 IPC_ENUM_TRAITS_MAX_VALUE(net::RequestPriority, net::MAXIMUM_PRIORITY) |
| 45 | 45 |
| 46 IPC_STRUCT_TRAITS_BEGIN(blink::WebPoint) | 46 IPC_STRUCT_TRAITS_BEGIN(blink::WebPoint) |
| 47 IPC_STRUCT_TRAITS_MEMBER(x) | 47 IPC_STRUCT_TRAITS_MEMBER(x) |
| 48 IPC_STRUCT_TRAITS_MEMBER(y) | 48 IPC_STRUCT_TRAITS_MEMBER(y) |
| 49 IPC_STRUCT_TRAITS_END() | 49 IPC_STRUCT_TRAITS_END() |
| 50 | 50 |
| 51 IPC_STRUCT_TRAITS_BEGIN(blink::WebRect) | 51 IPC_STRUCT_TRAITS_BEGIN(blink::WebRect) |
| (...skipping 28 matching lines...) Expand all Loading... |
| 80 IPC_STRUCT_TRAITS_BEGIN(content::WebPluginInfo) | 80 IPC_STRUCT_TRAITS_BEGIN(content::WebPluginInfo) |
| 81 IPC_STRUCT_TRAITS_MEMBER(name) | 81 IPC_STRUCT_TRAITS_MEMBER(name) |
| 82 IPC_STRUCT_TRAITS_MEMBER(path) | 82 IPC_STRUCT_TRAITS_MEMBER(path) |
| 83 IPC_STRUCT_TRAITS_MEMBER(version) | 83 IPC_STRUCT_TRAITS_MEMBER(version) |
| 84 IPC_STRUCT_TRAITS_MEMBER(desc) | 84 IPC_STRUCT_TRAITS_MEMBER(desc) |
| 85 IPC_STRUCT_TRAITS_MEMBER(mime_types) | 85 IPC_STRUCT_TRAITS_MEMBER(mime_types) |
| 86 IPC_STRUCT_TRAITS_MEMBER(type) | 86 IPC_STRUCT_TRAITS_MEMBER(type) |
| 87 IPC_STRUCT_TRAITS_MEMBER(pepper_permissions) | 87 IPC_STRUCT_TRAITS_MEMBER(pepper_permissions) |
| 88 IPC_STRUCT_TRAITS_END() | 88 IPC_STRUCT_TRAITS_END() |
| 89 | 89 |
| 90 IPC_STRUCT_TRAITS_BEGIN(WebPreferences) | 90 IPC_STRUCT_TRAITS_BEGIN(content::WebPreferences) |
| 91 IPC_STRUCT_TRAITS_MEMBER(standard_font_family_map) | 91 IPC_STRUCT_TRAITS_MEMBER(standard_font_family_map) |
| 92 IPC_STRUCT_TRAITS_MEMBER(fixed_font_family_map) | 92 IPC_STRUCT_TRAITS_MEMBER(fixed_font_family_map) |
| 93 IPC_STRUCT_TRAITS_MEMBER(serif_font_family_map) | 93 IPC_STRUCT_TRAITS_MEMBER(serif_font_family_map) |
| 94 IPC_STRUCT_TRAITS_MEMBER(sans_serif_font_family_map) | 94 IPC_STRUCT_TRAITS_MEMBER(sans_serif_font_family_map) |
| 95 IPC_STRUCT_TRAITS_MEMBER(cursive_font_family_map) | 95 IPC_STRUCT_TRAITS_MEMBER(cursive_font_family_map) |
| 96 IPC_STRUCT_TRAITS_MEMBER(fantasy_font_family_map) | 96 IPC_STRUCT_TRAITS_MEMBER(fantasy_font_family_map) |
| 97 IPC_STRUCT_TRAITS_MEMBER(default_font_size) | 97 IPC_STRUCT_TRAITS_MEMBER(default_font_size) |
| 98 IPC_STRUCT_TRAITS_MEMBER(default_fixed_font_size) | 98 IPC_STRUCT_TRAITS_MEMBER(default_fixed_font_size) |
| 99 IPC_STRUCT_TRAITS_MEMBER(minimum_font_size) | 99 IPC_STRUCT_TRAITS_MEMBER(minimum_font_size) |
| 100 IPC_STRUCT_TRAITS_MEMBER(minimum_logical_font_size) | 100 IPC_STRUCT_TRAITS_MEMBER(minimum_logical_font_size) |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 IPC_STRUCT_TRAITS_MEMBER(statusBarVisible) | 214 IPC_STRUCT_TRAITS_MEMBER(statusBarVisible) |
| 215 IPC_STRUCT_TRAITS_MEMBER(toolBarVisible) | 215 IPC_STRUCT_TRAITS_MEMBER(toolBarVisible) |
| 216 IPC_STRUCT_TRAITS_MEMBER(locationBarVisible) | 216 IPC_STRUCT_TRAITS_MEMBER(locationBarVisible) |
| 217 IPC_STRUCT_TRAITS_MEMBER(scrollbarsVisible) | 217 IPC_STRUCT_TRAITS_MEMBER(scrollbarsVisible) |
| 218 IPC_STRUCT_TRAITS_MEMBER(resizable) | 218 IPC_STRUCT_TRAITS_MEMBER(resizable) |
| 219 IPC_STRUCT_TRAITS_MEMBER(fullscreen) | 219 IPC_STRUCT_TRAITS_MEMBER(fullscreen) |
| 220 IPC_STRUCT_TRAITS_MEMBER(dialog) | 220 IPC_STRUCT_TRAITS_MEMBER(dialog) |
| 221 IPC_STRUCT_TRAITS_END() | 221 IPC_STRUCT_TRAITS_END() |
| 222 | 222 |
| 223 #endif // CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_MACROS_H_ | 223 #endif // CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_MACROS_H_ |
| OLD | NEW |