| 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 "build/build_config.h" | 11 #include "build/build_config.h" |
| 12 #include "content/public/common/console_message_level.h" | 12 #include "content/public/common/console_message_level.h" |
| 13 #include "content/public/common/referrer.h" | 13 #include "content/public/common/referrer.h" |
| 14 #include "content/public/common/web_preferences.h" | 14 #include "content/public/common/web_preferences.h" |
| 15 #include "content/public/common/webplugininfo.h" | 15 #include "content/public/common/webplugininfo.h" |
| 16 #include "ipc/ipc_message_macros.h" | 16 #include "ipc/ipc_message_macros.h" |
| 17 #include "net/base/network_change_notifier.h" | 17 #include "net/base/network_change_notifier.h" |
| 18 #include "net/base/request_priority.h" | 18 #include "net/base/request_priority.h" |
| 19 #include "net/nqe/effective_connection_type.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/WebSecurityStyle.h" | 23 #include "third_party/WebKit/public/platform/WebSecurityStyle.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/platform/modules/permissions/permission_stat
us.mojom.h" | 25 #include "third_party/WebKit/public/platform/modules/permissions/permission_stat
us.mojom.h" |
| 25 #include "third_party/WebKit/public/web/WebFrameSerializerCacheControlPolicy.h" | 26 #include "third_party/WebKit/public/web/WebFrameSerializerCacheControlPolicy.h" |
| 26 #include "third_party/WebKit/public/web/window_features.mojom.h" | 27 #include "third_party/WebKit/public/web/window_features.mojom.h" |
| 27 #include "ui/accessibility/ax_node_data.h" | 28 #include "ui/accessibility/ax_node_data.h" |
| 28 #include "ui/accessibility/ax_relative_bounds.h" | 29 #include "ui/accessibility/ax_relative_bounds.h" |
| 29 #include "ui/accessibility/ax_tree_update.h" | 30 #include "ui/accessibility/ax_tree_update.h" |
| 30 #include "ui/base/page_transition_types.h" | 31 #include "ui/base/page_transition_types.h" |
| 31 #include "ui/base/window_open_disposition.h" | 32 #include "ui/base/window_open_disposition.h" |
| 32 #include "ui/gfx/ipc/geometry/gfx_param_traits.h" | 33 #include "ui/gfx/ipc/geometry/gfx_param_traits.h" |
| 33 #include "ui/gfx/ipc/gfx_param_traits.h" | 34 #include "ui/gfx/ipc/gfx_param_traits.h" |
| 34 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h" | 35 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h" |
| 35 #include "ui/gfx/transform.h" | 36 #include "ui/gfx/transform.h" |
| 36 | 37 |
| 37 #undef IPC_MESSAGE_EXPORT | 38 #undef IPC_MESSAGE_EXPORT |
| 38 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 39 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| 39 | 40 |
| 40 IPC_ENUM_TRAITS_VALIDATE(ui::PageTransition, | 41 IPC_ENUM_TRAITS_VALIDATE(ui::PageTransition, |
| 41 ((value & | 42 ((value & |
| 42 ui::PageTransition::PAGE_TRANSITION_CORE_MASK) <= | 43 ui::PageTransition::PAGE_TRANSITION_CORE_MASK) <= |
| 43 ui::PageTransition::PAGE_TRANSITION_LAST_CORE)) | 44 ui::PageTransition::PAGE_TRANSITION_LAST_CORE)) |
| 44 IPC_ENUM_TRAITS_MAX_VALUE(net::NetworkChangeNotifier::ConnectionType, | 45 IPC_ENUM_TRAITS_MAX_VALUE(net::NetworkChangeNotifier::ConnectionType, |
| 45 net::NetworkChangeNotifier::CONNECTION_LAST) | 46 net::NetworkChangeNotifier::CONNECTION_LAST) |
| 47 IPC_ENUM_TRAITS_MAX_VALUE(net::EffectiveConnectionType, |
| 48 net::EFFECTIVE_CONNECTION_TYPE_LAST - 1) |
| 46 IPC_ENUM_TRAITS_MAX_VALUE(content::ConsoleMessageLevel, | 49 IPC_ENUM_TRAITS_MAX_VALUE(content::ConsoleMessageLevel, |
| 47 content::CONSOLE_MESSAGE_LEVEL_LAST) | 50 content::CONSOLE_MESSAGE_LEVEL_LAST) |
| 48 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebFrameSerializerCacheControlPolicy, | 51 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebFrameSerializerCacheControlPolicy, |
| 49 blink::WebFrameSerializerCacheControlPolicy::kLast) | 52 blink::WebFrameSerializerCacheControlPolicy::kLast) |
| 50 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebReferrerPolicy, | 53 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebReferrerPolicy, |
| 51 blink::kWebReferrerPolicyLast) | 54 blink::kWebReferrerPolicyLast) |
| 52 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebSecurityStyle, blink::kWebSecurityStyleLast) | 55 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebSecurityStyle, blink::kWebSecurityStyleLast) |
| 53 IPC_ENUM_TRAITS_MAX_VALUE(blink::mojom::PermissionStatus, | 56 IPC_ENUM_TRAITS_MAX_VALUE(blink::mojom::PermissionStatus, |
| 54 blink::mojom::PermissionStatus::LAST) | 57 blink::mojom::PermissionStatus::LAST) |
| 55 IPC_ENUM_TRAITS_MAX_VALUE(content::EditingBehavior, | 58 IPC_ENUM_TRAITS_MAX_VALUE(content::EditingBehavior, |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 IPC_ENUM_TRAITS_MAX_VALUE(ui::AXTextAffinity, ui::AX_TEXT_AFFINITY_LAST) | 289 IPC_ENUM_TRAITS_MAX_VALUE(ui::AXTextAffinity, ui::AX_TEXT_AFFINITY_LAST) |
| 287 IPC_ENUM_TRAITS_MAX_VALUE(ui::AXEventFrom, ui::AX_EVENT_FROM_LAST) | 290 IPC_ENUM_TRAITS_MAX_VALUE(ui::AXEventFrom, ui::AX_EVENT_FROM_LAST) |
| 288 | 291 |
| 289 IPC_STRUCT_TRAITS_BEGIN(ui::AXRelativeBounds) | 292 IPC_STRUCT_TRAITS_BEGIN(ui::AXRelativeBounds) |
| 290 IPC_STRUCT_TRAITS_MEMBER(offset_container_id) | 293 IPC_STRUCT_TRAITS_MEMBER(offset_container_id) |
| 291 IPC_STRUCT_TRAITS_MEMBER(bounds) | 294 IPC_STRUCT_TRAITS_MEMBER(bounds) |
| 292 IPC_STRUCT_TRAITS_MEMBER(transform) | 295 IPC_STRUCT_TRAITS_MEMBER(transform) |
| 293 IPC_STRUCT_TRAITS_END() | 296 IPC_STRUCT_TRAITS_END() |
| 294 | 297 |
| 295 #endif // CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_MACROS_H_ | 298 #endif // CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_MACROS_H_ |
| OLD | NEW |