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(ui::AXEvent) | 25 IPC_ENUM_TRAITS(ui::AXEvent) |
25 IPC_ENUM_TRAITS(ui::AXRole) | 26 IPC_ENUM_TRAITS(ui::AXRole) |
26 | 27 |
27 IPC_ENUM_TRAITS(ui::AXBoolAttribute) | 28 IPC_ENUM_TRAITS(ui::AXBoolAttribute) |
28 IPC_ENUM_TRAITS(ui::AXFloatAttribute) | 29 IPC_ENUM_TRAITS(ui::AXFloatAttribute) |
29 IPC_ENUM_TRAITS(ui::AXIntAttribute) | 30 IPC_ENUM_TRAITS(ui::AXIntAttribute) |
30 IPC_ENUM_TRAITS(ui::AXIntListAttribute) | 31 IPC_ENUM_TRAITS(ui::AXIntListAttribute) |
31 IPC_ENUM_TRAITS(ui::AXStringAttribute) | 32 IPC_ENUM_TRAITS(ui::AXStringAttribute) |
32 | 33 |
33 IPC_STRUCT_TRAITS_BEGIN(ui::AXNodeData) | 34 IPC_STRUCT_TRAITS_BEGIN(ui::AXNodeData) |
34 IPC_STRUCT_TRAITS_MEMBER(id) | 35 IPC_STRUCT_TRAITS_MEMBER(id) |
35 IPC_STRUCT_TRAITS_MEMBER(role) | 36 IPC_STRUCT_TRAITS_MEMBER(role) |
36 IPC_STRUCT_TRAITS_MEMBER(state) | 37 IPC_STRUCT_TRAITS_MEMBER(state) |
37 IPC_STRUCT_TRAITS_MEMBER(location) | 38 IPC_STRUCT_TRAITS_MEMBER(location) |
38 IPC_STRUCT_TRAITS_MEMBER(string_attributes) | 39 IPC_STRUCT_TRAITS_MEMBER(string_attributes) |
39 IPC_STRUCT_TRAITS_MEMBER(int_attributes) | 40 IPC_STRUCT_TRAITS_MEMBER(int_attributes) |
40 IPC_STRUCT_TRAITS_MEMBER(float_attributes) | 41 IPC_STRUCT_TRAITS_MEMBER(float_attributes) |
41 IPC_STRUCT_TRAITS_MEMBER(bool_attributes) | 42 IPC_STRUCT_TRAITS_MEMBER(bool_attributes) |
42 IPC_STRUCT_TRAITS_MEMBER(intlist_attributes) | 43 IPC_STRUCT_TRAITS_MEMBER(intlist_attributes) |
43 IPC_STRUCT_TRAITS_MEMBER(html_attributes) | 44 IPC_STRUCT_TRAITS_MEMBER(html_attributes) |
44 IPC_STRUCT_TRAITS_MEMBER(child_ids) | 45 IPC_STRUCT_TRAITS_MEMBER(child_ids) |
45 IPC_STRUCT_TRAITS_END() | 46 IPC_STRUCT_TRAITS_END() |
46 | 47 |
48 IPC_STRUCT_TRAITS_BEGIN(ui::AXTreeUpdate) | |
49 IPC_STRUCT_TRAITS_MEMBER(node_id_to_clear) | |
aboxhall
2014/02/25 17:45:35
Can we have comments for these too?
dmazzoni
2014/02/27 20:51:44
This isn't the struct, this is just the macro that
aboxhall
2014/02/27 20:57:39
Ah, I see.
| |
50 IPC_STRUCT_TRAITS_MEMBER(nodes) | |
51 IPC_STRUCT_TRAITS_END() | |
52 | |
47 IPC_STRUCT_BEGIN(AccessibilityHostMsg_EventParams) | 53 IPC_STRUCT_BEGIN(AccessibilityHostMsg_EventParams) |
48 // Vector of nodes in the tree that need to be updated before | 54 // The tree update. |
49 // sending the event. | 55 IPC_STRUCT_MEMBER(ui::AXTreeUpdate, update) |
50 IPC_STRUCT_MEMBER(std::vector<ui::AXNodeData>, nodes) | |
51 | 56 |
52 // Type of event. | 57 // Type of event. |
53 IPC_STRUCT_MEMBER(ui::AXEvent, event_type) | 58 IPC_STRUCT_MEMBER(ui::AXEvent, event_type) |
54 | 59 |
55 // ID of the node that the event applies to. | 60 // ID of the node that the event applies to. |
56 IPC_STRUCT_MEMBER(int, id) | 61 IPC_STRUCT_MEMBER(int, id) |
57 IPC_STRUCT_END() | 62 IPC_STRUCT_END() |
58 | 63 |
59 IPC_STRUCT_BEGIN(AccessibilityHostMsg_LocationChangeParams) | 64 IPC_STRUCT_BEGIN(AccessibilityHostMsg_LocationChangeParams) |
60 // ID of the object whose location is changing. | 65 // ID of the object whose location is changing. |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
112 // Sent to notify the browser about renderer accessibility events. | 117 // Sent to notify the browser about renderer accessibility events. |
113 // The browser responds with a AccessibilityMsg_Events_ACK. | 118 // The browser responds with a AccessibilityMsg_Events_ACK. |
114 IPC_MESSAGE_ROUTED1( | 119 IPC_MESSAGE_ROUTED1( |
115 AccessibilityHostMsg_Events, | 120 AccessibilityHostMsg_Events, |
116 std::vector<AccessibilityHostMsg_EventParams>) | 121 std::vector<AccessibilityHostMsg_EventParams>) |
117 | 122 |
118 // Sent to update the browser of the location of accessibility objects. | 123 // Sent to update the browser of the location of accessibility objects. |
119 IPC_MESSAGE_ROUTED1( | 124 IPC_MESSAGE_ROUTED1( |
120 AccessibilityHostMsg_LocationChanges, | 125 AccessibilityHostMsg_LocationChanges, |
121 std::vector<AccessibilityHostMsg_LocationChangeParams>) | 126 std::vector<AccessibilityHostMsg_LocationChangeParams>) |
OLD | NEW |