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 "content/common/ax_content_node_data.h" | 8 #include "content/common/ax_content_node_data.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 "ipc/ipc_message_macros.h" | 11 #include "ipc/ipc_message_macros.h" |
12 #include "ipc/ipc_message_utils.h" | 12 #include "ipc/ipc_message_utils.h" |
13 #include "ipc/ipc_param_traits.h" | 13 #include "ipc/ipc_param_traits.h" |
14 #include "ipc/param_traits_macros.h" | 14 #include "ipc/param_traits_macros.h" |
15 #include "third_party/WebKit/public/web/WebAXEnums.h" | 15 #include "third_party/WebKit/public/web/WebAXEnums.h" |
16 #include "ui/accessibility/ax_node_data.h" | 16 #include "ui/accessibility/ax_node_data.h" |
17 #include "ui/accessibility/ax_tree_update.h" | 17 #include "ui/accessibility/ax_tree_update.h" |
| 18 #include "ui/gfx/transform.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(content::AXContentIntAttribute, | 25 IPC_ENUM_TRAITS_MAX_VALUE(content::AXContentIntAttribute, |
25 content::AX_CONTENT_INT_ATTRIBUTE_LAST) | 26 content::AX_CONTENT_INT_ATTRIBUTE_LAST) |
26 | 27 |
27 IPC_STRUCT_TRAITS_BEGIN(content::AXContentNodeData) | 28 IPC_STRUCT_TRAITS_BEGIN(content::AXContentNodeData) |
28 IPC_STRUCT_TRAITS_MEMBER(id) | 29 IPC_STRUCT_TRAITS_MEMBER(id) |
29 IPC_STRUCT_TRAITS_MEMBER(role) | 30 IPC_STRUCT_TRAITS_MEMBER(role) |
30 IPC_STRUCT_TRAITS_MEMBER(state) | 31 IPC_STRUCT_TRAITS_MEMBER(state) |
31 IPC_STRUCT_TRAITS_MEMBER(location) | 32 IPC_STRUCT_TRAITS_MEMBER(location) |
| 33 IPC_STRUCT_TRAITS_MEMBER(transform) |
32 IPC_STRUCT_TRAITS_MEMBER(string_attributes) | 34 IPC_STRUCT_TRAITS_MEMBER(string_attributes) |
33 IPC_STRUCT_TRAITS_MEMBER(int_attributes) | 35 IPC_STRUCT_TRAITS_MEMBER(int_attributes) |
34 IPC_STRUCT_TRAITS_MEMBER(float_attributes) | 36 IPC_STRUCT_TRAITS_MEMBER(float_attributes) |
35 IPC_STRUCT_TRAITS_MEMBER(bool_attributes) | 37 IPC_STRUCT_TRAITS_MEMBER(bool_attributes) |
36 IPC_STRUCT_TRAITS_MEMBER(intlist_attributes) | 38 IPC_STRUCT_TRAITS_MEMBER(intlist_attributes) |
37 IPC_STRUCT_TRAITS_MEMBER(html_attributes) | 39 IPC_STRUCT_TRAITS_MEMBER(html_attributes) |
38 IPC_STRUCT_TRAITS_MEMBER(child_ids) | 40 IPC_STRUCT_TRAITS_MEMBER(child_ids) |
39 IPC_STRUCT_TRAITS_MEMBER(content_int_attributes) | 41 IPC_STRUCT_TRAITS_MEMBER(content_int_attributes) |
40 IPC_STRUCT_TRAITS_END() | 42 IPC_STRUCT_TRAITS_END() |
41 | 43 |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 IPC_MESSAGE_ROUTED1( | 217 IPC_MESSAGE_ROUTED1( |
216 AccessibilityHostMsg_FindInPageResult, | 218 AccessibilityHostMsg_FindInPageResult, |
217 AccessibilityHostMsg_FindInPageResultParams) | 219 AccessibilityHostMsg_FindInPageResultParams) |
218 | 220 |
219 // Sent in response to AccessibilityMsg_SnapshotTree. The callback id that was | 221 // Sent in response to AccessibilityMsg_SnapshotTree. The callback id that was |
220 // passed to the request will be returned in |callback_id|, along with | 222 // passed to the request will be returned in |callback_id|, along with |
221 // a standalone snapshot of the accessibility tree. | 223 // a standalone snapshot of the accessibility tree. |
222 IPC_MESSAGE_ROUTED2(AccessibilityHostMsg_SnapshotResponse, | 224 IPC_MESSAGE_ROUTED2(AccessibilityHostMsg_SnapshotResponse, |
223 int /* callback_id */, | 225 int /* callback_id */, |
224 content::AXContentTreeUpdate) | 226 content::AXContentTreeUpdate) |
OLD | NEW |