diff options
author | tsepez@chromium.org <tsepez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-26 00:28:59 +0000 |
---|---|---|
committer | tsepez@chromium.org <tsepez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-26 00:28:59 +0000 |
commit | 4abb6ccbed7578e5f303b836ea679778becc41eb (patch) | |
tree | cefbe1a831435478aba08aa5e0c06ecdbf0f08c6 /content/common/accessibility_messages.h | |
parent | 039e40d20c1b1b12fb37f075dab2ebb3f7835f98 (diff) | |
download | chromium_src-4abb6ccbed7578e5f303b836ea679778becc41eb.zip chromium_src-4abb6ccbed7578e5f303b836ea679778becc41eb.tar.gz chromium_src-4abb6ccbed7578e5f303b836ea679778becc41eb.tar.bz2 |
Use validating IPC enum macros in accessibility messages.
This is part of a long-running background task to remove the remaining uses of the unchecked IPC_ENUM_TRAITS() macro.
The most automated way to do this is to tweak the json_schema_compiler to generate these for us. We'd need to do something as currently the idl doesn't support providing values for the corresponding enum
BUG=246708
Review URL: https://codereview.chromium.org/143873021
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@253300 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common/accessibility_messages.h')
-rw-r--r-- | content/common/accessibility_messages.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/content/common/accessibility_messages.h b/content/common/accessibility_messages.h index 8f48ede..c86720d 100644 --- a/content/common/accessibility_messages.h +++ b/content/common/accessibility_messages.h @@ -21,14 +21,15 @@ #define IPC_MESSAGE_START AccessibilityMsgStart -IPC_ENUM_TRAITS(ui::AXEvent) -IPC_ENUM_TRAITS(ui::AXRole) - -IPC_ENUM_TRAITS(ui::AXBoolAttribute) -IPC_ENUM_TRAITS(ui::AXFloatAttribute) -IPC_ENUM_TRAITS(ui::AXIntAttribute) -IPC_ENUM_TRAITS(ui::AXIntListAttribute) -IPC_ENUM_TRAITS(ui::AXStringAttribute) +IPC_ENUM_TRAITS_MAX_VALUE(ui::AXEvent, ui::AX_EVENT_LAST) +IPC_ENUM_TRAITS_MAX_VALUE(ui::AXRole, ui::AX_ROLE_LAST) + +IPC_ENUM_TRAITS_MAX_VALUE(ui::AXBoolAttribute, ui::AX_BOOL_ATTRIBUTE_LAST) +IPC_ENUM_TRAITS_MAX_VALUE(ui::AXFloatAttribute, ui::AX_FLOAT_ATTRIBUTE_LAST) +IPC_ENUM_TRAITS_MAX_VALUE(ui::AXIntAttribute, ui::AX_INT_ATTRIBUTE_LAST) +IPC_ENUM_TRAITS_MAX_VALUE(ui::AXIntListAttribute, + ui::AX_INT_LIST_ATTRIBUTE_LAST) +IPC_ENUM_TRAITS_MAX_VALUE(ui::AXStringAttribute, ui::AX_STRING_ATTRIBUTE_LAST) IPC_STRUCT_TRAITS_BEGIN(ui::AXNodeData) IPC_STRUCT_TRAITS_MEMBER(id) |