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