| 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" | |
| 19 | 18 |
| 20 #undef IPC_MESSAGE_EXPORT | 19 #undef IPC_MESSAGE_EXPORT |
| 21 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 20 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| 22 | 21 |
| 23 #define IPC_MESSAGE_START AccessibilityMsgStart | 22 #define IPC_MESSAGE_START AccessibilityMsgStart |
| 24 | 23 |
| 25 IPC_ENUM_TRAITS_MAX_VALUE(ui::AXEvent, ui::AX_EVENT_LAST) | 24 IPC_ENUM_TRAITS_MAX_VALUE(ui::AXEvent, ui::AX_EVENT_LAST) |
| 26 IPC_ENUM_TRAITS_MAX_VALUE(ui::AXRole, ui::AX_ROLE_LAST) | 25 IPC_ENUM_TRAITS_MAX_VALUE(ui::AXRole, ui::AX_ROLE_LAST) |
| 27 | 26 |
| 28 IPC_ENUM_TRAITS_MAX_VALUE(ui::AXBoolAttribute, ui::AX_BOOL_ATTRIBUTE_LAST) | 27 IPC_ENUM_TRAITS_MAX_VALUE(ui::AXBoolAttribute, ui::AX_BOOL_ATTRIBUTE_LAST) |
| (...skipping 10 matching lines...) Expand all Loading... |
| 39 IPC_STRUCT_TRAITS_MEMBER(location) | 38 IPC_STRUCT_TRAITS_MEMBER(location) |
| 40 IPC_STRUCT_TRAITS_MEMBER(string_attributes) | 39 IPC_STRUCT_TRAITS_MEMBER(string_attributes) |
| 41 IPC_STRUCT_TRAITS_MEMBER(int_attributes) | 40 IPC_STRUCT_TRAITS_MEMBER(int_attributes) |
| 42 IPC_STRUCT_TRAITS_MEMBER(float_attributes) | 41 IPC_STRUCT_TRAITS_MEMBER(float_attributes) |
| 43 IPC_STRUCT_TRAITS_MEMBER(bool_attributes) | 42 IPC_STRUCT_TRAITS_MEMBER(bool_attributes) |
| 44 IPC_STRUCT_TRAITS_MEMBER(intlist_attributes) | 43 IPC_STRUCT_TRAITS_MEMBER(intlist_attributes) |
| 45 IPC_STRUCT_TRAITS_MEMBER(html_attributes) | 44 IPC_STRUCT_TRAITS_MEMBER(html_attributes) |
| 46 IPC_STRUCT_TRAITS_MEMBER(child_ids) | 45 IPC_STRUCT_TRAITS_MEMBER(child_ids) |
| 47 IPC_STRUCT_TRAITS_END() | 46 IPC_STRUCT_TRAITS_END() |
| 48 | 47 |
| 49 IPC_STRUCT_TRAITS_BEGIN(ui::AXTreeUpdate) | |
| 50 IPC_STRUCT_TRAITS_MEMBER(node_id_to_clear) | |
| 51 IPC_STRUCT_TRAITS_MEMBER(nodes) | |
| 52 IPC_STRUCT_TRAITS_END() | |
| 53 | |
| 54 IPC_STRUCT_BEGIN(AccessibilityHostMsg_EventParams) | 48 IPC_STRUCT_BEGIN(AccessibilityHostMsg_EventParams) |
| 55 // The tree update. | 49 // Vector of nodes in the tree that need to be updated before |
| 56 IPC_STRUCT_MEMBER(ui::AXTreeUpdate, update) | 50 // sending the event. |
| 51 IPC_STRUCT_MEMBER(std::vector<ui::AXNodeData>, nodes) |
| 57 | 52 |
| 58 // Type of event. | 53 // Type of event. |
| 59 IPC_STRUCT_MEMBER(ui::AXEvent, event_type) | 54 IPC_STRUCT_MEMBER(ui::AXEvent, event_type) |
| 60 | 55 |
| 61 // ID of the node that the event applies to. | 56 // ID of the node that the event applies to. |
| 62 IPC_STRUCT_MEMBER(int, id) | 57 IPC_STRUCT_MEMBER(int, id) |
| 63 IPC_STRUCT_END() | 58 IPC_STRUCT_END() |
| 64 | 59 |
| 65 IPC_STRUCT_BEGIN(AccessibilityHostMsg_LocationChangeParams) | 60 IPC_STRUCT_BEGIN(AccessibilityHostMsg_LocationChangeParams) |
| 66 // ID of the object whose location is changing. | 61 // ID of the object whose location is changing. |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 // Sent to notify the browser about renderer accessibility events. | 113 // Sent to notify the browser about renderer accessibility events. |
| 119 // The browser responds with a AccessibilityMsg_Events_ACK. | 114 // The browser responds with a AccessibilityMsg_Events_ACK. |
| 120 IPC_MESSAGE_ROUTED1( | 115 IPC_MESSAGE_ROUTED1( |
| 121 AccessibilityHostMsg_Events, | 116 AccessibilityHostMsg_Events, |
| 122 std::vector<AccessibilityHostMsg_EventParams>) | 117 std::vector<AccessibilityHostMsg_EventParams>) |
| 123 | 118 |
| 124 // Sent to update the browser of the location of accessibility objects. | 119 // Sent to update the browser of the location of accessibility objects. |
| 125 IPC_MESSAGE_ROUTED1( | 120 IPC_MESSAGE_ROUTED1( |
| 126 AccessibilityHostMsg_LocationChanges, | 121 AccessibilityHostMsg_LocationChanges, |
| 127 std::vector<AccessibilityHostMsg_LocationChangeParams>) | 122 std::vector<AccessibilityHostMsg_LocationChangeParams>) |
| OLD | NEW |