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" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 IPC_STRUCT_TRAITS_MEMBER(intlist_attributes) | 44 IPC_STRUCT_TRAITS_MEMBER(intlist_attributes) |
45 IPC_STRUCT_TRAITS_MEMBER(html_attributes) | 45 IPC_STRUCT_TRAITS_MEMBER(html_attributes) |
46 IPC_STRUCT_TRAITS_MEMBER(child_ids) | 46 IPC_STRUCT_TRAITS_MEMBER(child_ids) |
47 IPC_STRUCT_TRAITS_END() | 47 IPC_STRUCT_TRAITS_END() |
48 | 48 |
49 IPC_STRUCT_TRAITS_BEGIN(ui::AXTreeUpdate) | 49 IPC_STRUCT_TRAITS_BEGIN(ui::AXTreeUpdate) |
50 IPC_STRUCT_TRAITS_MEMBER(node_id_to_clear) | 50 IPC_STRUCT_TRAITS_MEMBER(node_id_to_clear) |
51 IPC_STRUCT_TRAITS_MEMBER(nodes) | 51 IPC_STRUCT_TRAITS_MEMBER(nodes) |
52 IPC_STRUCT_TRAITS_END() | 52 IPC_STRUCT_TRAITS_END() |
53 | 53 |
| 54 typedef std::map<int32, int> FrameIDMap; |
| 55 |
54 IPC_STRUCT_BEGIN(AccessibilityHostMsg_EventParams) | 56 IPC_STRUCT_BEGIN(AccessibilityHostMsg_EventParams) |
55 // The tree update. | 57 // The tree update. |
56 IPC_STRUCT_MEMBER(ui::AXTreeUpdate, update) | 58 IPC_STRUCT_MEMBER(ui::AXTreeUpdate, update) |
57 | 59 |
| 60 // 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 |
| 62 // iframe. |
| 63 IPC_STRUCT_MEMBER(FrameIDMap, node_to_frame_routing_id_map) |
| 64 |
58 // Type of event. | 65 // Type of event. |
59 IPC_STRUCT_MEMBER(ui::AXEvent, event_type) | 66 IPC_STRUCT_MEMBER(ui::AXEvent, event_type) |
60 | 67 |
61 // ID of the node that the event applies to. | 68 // ID of the node that the event applies to. |
62 IPC_STRUCT_MEMBER(int, id) | 69 IPC_STRUCT_MEMBER(int, id) |
63 IPC_STRUCT_END() | 70 IPC_STRUCT_END() |
64 | 71 |
65 IPC_STRUCT_BEGIN(AccessibilityHostMsg_LocationChangeParams) | 72 IPC_STRUCT_BEGIN(AccessibilityHostMsg_LocationChangeParams) |
66 // ID of the object whose location is changing. | 73 // ID of the object whose location is changing. |
67 IPC_STRUCT_MEMBER(int, id) | 74 IPC_STRUCT_MEMBER(int, id) |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 // Sent to notify the browser about renderer accessibility events. | 129 // Sent to notify the browser about renderer accessibility events. |
123 // The browser responds with a AccessibilityMsg_Events_ACK. | 130 // The browser responds with a AccessibilityMsg_Events_ACK. |
124 IPC_MESSAGE_ROUTED1( | 131 IPC_MESSAGE_ROUTED1( |
125 AccessibilityHostMsg_Events, | 132 AccessibilityHostMsg_Events, |
126 std::vector<AccessibilityHostMsg_EventParams>) | 133 std::vector<AccessibilityHostMsg_EventParams>) |
127 | 134 |
128 // Sent to update the browser of the location of accessibility objects. | 135 // Sent to update the browser of the location of accessibility objects. |
129 IPC_MESSAGE_ROUTED1( | 136 IPC_MESSAGE_ROUTED1( |
130 AccessibilityHostMsg_LocationChanges, | 137 AccessibilityHostMsg_LocationChanges, |
131 std::vector<AccessibilityHostMsg_LocationChangeParams>) | 138 std::vector<AccessibilityHostMsg_LocationChangeParams>) |
OLD | NEW |