| 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 // IPC messages for accessibility. | 5 // IPC messages for accessibility. |
| 6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 #include "content/common/view_message_enums.h" | 10 #include "content/common/view_message_enums.h" |
| 11 #include "content/public/common/common_param_traits.h" | 11 #include "content/public/common/common_param_traits.h" |
| 12 #include "ipc/ipc_message_macros.h" | 12 #include "ipc/ipc_message_macros.h" |
| 13 #include "ipc/ipc_message_utils.h" | 13 #include "ipc/ipc_message_utils.h" |
| 14 #include "ipc/ipc_param_traits.h" | 14 #include "ipc/ipc_param_traits.h" |
| 15 #include "ipc/param_traits_macros.h" | 15 #include "ipc/param_traits_macros.h" |
| 16 #include "third_party/WebKit/public/web/WebAXEnums.h" | 16 #include "third_party/WebKit/public/web/WebAXEnums.h" |
| 17 #include "ui/accessibility/ax_node_data.h" | 17 #include "ui/accessibility/ax_node_data.h" |
| 18 #include "ui/accessibility/ax_tree_update.h" | 18 #include "ui/accessibility/ax_tree_update.h" |
| 19 | 19 |
| 20 // Singly-included section for custom types. |
| 21 #ifndef CONTENT_COMMON_ACCESSIBILITY_MESSAGES_H_ |
| 22 #define CONTENT_COMMON_ACCESSIBILITY_MESSAGES_H_ |
| 23 |
| 24 typedef std::map<int32, int> FrameIDMap; |
| 25 |
| 26 #endif // CONTENT_COMMON_ACCESSIBILITY_MESSAGES_H_ |
| 27 |
| 20 #undef IPC_MESSAGE_EXPORT | 28 #undef IPC_MESSAGE_EXPORT |
| 21 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 29 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| 22 | 30 |
| 23 #define IPC_MESSAGE_START AccessibilityMsgStart | 31 #define IPC_MESSAGE_START AccessibilityMsgStart |
| 24 | 32 |
| 25 IPC_ENUM_TRAITS_MAX_VALUE(ui::AXEvent, ui::AX_EVENT_LAST) | 33 IPC_ENUM_TRAITS_MAX_VALUE(ui::AXEvent, ui::AX_EVENT_LAST) |
| 26 IPC_ENUM_TRAITS_MAX_VALUE(ui::AXRole, ui::AX_ROLE_LAST) | 34 IPC_ENUM_TRAITS_MAX_VALUE(ui::AXRole, ui::AX_ROLE_LAST) |
| 27 | 35 |
| 28 IPC_ENUM_TRAITS_MAX_VALUE(ui::AXBoolAttribute, ui::AX_BOOL_ATTRIBUTE_LAST) | 36 IPC_ENUM_TRAITS_MAX_VALUE(ui::AXBoolAttribute, ui::AX_BOOL_ATTRIBUTE_LAST) |
| 29 IPC_ENUM_TRAITS_MAX_VALUE(ui::AXFloatAttribute, ui::AX_FLOAT_ATTRIBUTE_LAST) | 37 IPC_ENUM_TRAITS_MAX_VALUE(ui::AXFloatAttribute, ui::AX_FLOAT_ATTRIBUTE_LAST) |
| (...skipping 14 matching lines...) Expand all Loading... |
| 44 IPC_STRUCT_TRAITS_MEMBER(intlist_attributes) | 52 IPC_STRUCT_TRAITS_MEMBER(intlist_attributes) |
| 45 IPC_STRUCT_TRAITS_MEMBER(html_attributes) | 53 IPC_STRUCT_TRAITS_MEMBER(html_attributes) |
| 46 IPC_STRUCT_TRAITS_MEMBER(child_ids) | 54 IPC_STRUCT_TRAITS_MEMBER(child_ids) |
| 47 IPC_STRUCT_TRAITS_END() | 55 IPC_STRUCT_TRAITS_END() |
| 48 | 56 |
| 49 IPC_STRUCT_TRAITS_BEGIN(ui::AXTreeUpdate) | 57 IPC_STRUCT_TRAITS_BEGIN(ui::AXTreeUpdate) |
| 50 IPC_STRUCT_TRAITS_MEMBER(node_id_to_clear) | 58 IPC_STRUCT_TRAITS_MEMBER(node_id_to_clear) |
| 51 IPC_STRUCT_TRAITS_MEMBER(nodes) | 59 IPC_STRUCT_TRAITS_MEMBER(nodes) |
| 52 IPC_STRUCT_TRAITS_END() | 60 IPC_STRUCT_TRAITS_END() |
| 53 | 61 |
| 54 typedef std::map<int32, int> FrameIDMap; | |
| 55 | |
| 56 IPC_STRUCT_BEGIN(AccessibilityHostMsg_EventParams) | 62 IPC_STRUCT_BEGIN(AccessibilityHostMsg_EventParams) |
| 57 // The tree update. | 63 // The tree update. |
| 58 IPC_STRUCT_MEMBER(ui::AXTreeUpdate, update) | 64 IPC_STRUCT_MEMBER(ui::AXTreeUpdate, update) |
| 59 | 65 |
| 60 // Mapping from node id to routing id of its child frame - either the | 66 // Mapping from node id to routing id of its child frame - either the |
| 61 // routing id of a RenderFrame or a RenderFrameProxy for an out-of-process | 67 // routing id of a RenderFrame or a RenderFrameProxy for an out-of-process |
| 62 // iframe. | 68 // iframe. |
| 63 IPC_STRUCT_MEMBER(FrameIDMap, node_to_frame_routing_id_map) | 69 IPC_STRUCT_MEMBER(FrameIDMap, node_to_frame_routing_id_map) |
| 64 | 70 |
| 65 // Type of event. | 71 // Type of event. |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 // Sent to notify the browser about renderer accessibility events. | 135 // Sent to notify the browser about renderer accessibility events. |
| 130 // The browser responds with a AccessibilityMsg_Events_ACK. | 136 // The browser responds with a AccessibilityMsg_Events_ACK. |
| 131 IPC_MESSAGE_ROUTED1( | 137 IPC_MESSAGE_ROUTED1( |
| 132 AccessibilityHostMsg_Events, | 138 AccessibilityHostMsg_Events, |
| 133 std::vector<AccessibilityHostMsg_EventParams>) | 139 std::vector<AccessibilityHostMsg_EventParams>) |
| 134 | 140 |
| 135 // Sent to update the browser of the location of accessibility objects. | 141 // Sent to update the browser of the location of accessibility objects. |
| 136 IPC_MESSAGE_ROUTED1( | 142 IPC_MESSAGE_ROUTED1( |
| 137 AccessibilityHostMsg_LocationChanges, | 143 AccessibilityHostMsg_LocationChanges, |
| 138 std::vector<AccessibilityHostMsg_LocationChangeParams>) | 144 std::vector<AccessibilityHostMsg_LocationChangeParams>) |
| OLD | NEW |