Index: content/common/content_param_traits_macros.h |
diff --git a/content/common/content_param_traits_macros.h b/content/common/content_param_traits_macros.h |
index 38d48d6acdc733b2286409d6a6138c9959dd2187..dff46f325945e168daf114ea3d0bc15b1d52e10e 100644 |
--- a/content/common/content_param_traits_macros.h |
+++ b/content/common/content_param_traits_macros.h |
@@ -19,11 +19,16 @@ |
#undef IPC_MESSAGE_EXPORT |
#define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
-IPC_ENUM_TRAITS(ResourceType::Type) |
-IPC_ENUM_TRAITS(blink::WebContentSecurityPolicyType) |
-IPC_ENUM_TRAITS(blink::WebInputEvent::Type) |
-IPC_ENUM_TRAITS(blink::WebPageVisibilityState) |
-IPC_ENUM_TRAITS(ui::LatencyComponentType) |
+IPC_ENUM_TRAITS_MAX_VALUE(ResourceType::Type, ResourceType::LAST_TYPE - 1) |
+IPC_ENUM_TRAITS_MAX_VALUE(blink::WebContentSecurityPolicyType, |
+ blink::WebContentSecurityPolicyTypeLast) |
+IPC_ENUM_TRAITS_MIN_MAX_VALUE(blink::WebInputEvent::Type, |
+ blink::WebInputEvent::TypeFirst, |
+ blink::WebInputEvent::TypeLast) |
+IPC_ENUM_TRAITS_MAX_VALUE(blink::WebPageVisibilityState, |
+ blink::WebPageVisibilityStateLast) |
+IPC_ENUM_TRAITS_MAX_VALUE(ui::LatencyComponentType, |
+ ui::LATENCY_COMPONENT_TYPE_LAST) |
IPC_STRUCT_TRAITS_BEGIN(ui::LatencyInfo::LatencyComponent) |
IPC_STRUCT_TRAITS_MEMBER(sequence_number) |