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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 // incoming accessibility IPCs until it receives one with the matching reset | 171 // incoming accessibility IPCs until it receives one with the matching reset |
172 // token. Conversely, it ignores IPCs with a reset token if it was not | 172 // token. Conversely, it ignores IPCs with a reset token if it was not |
173 // expecting a reset. | 173 // expecting a reset. |
174 IPC_MESSAGE_ROUTED1(AccessibilityMsg_Reset, | 174 IPC_MESSAGE_ROUTED1(AccessibilityMsg_Reset, |
175 int /* reset token */) | 175 int /* reset token */) |
176 | 176 |
177 // Kill the renderer because we got a fatal error in the accessibility tree | 177 // Kill the renderer because we got a fatal error in the accessibility tree |
178 // and we've already reset too many times. | 178 // and we've already reset too many times. |
179 IPC_MESSAGE_ROUTED0(AccessibilityMsg_FatalError) | 179 IPC_MESSAGE_ROUTED0(AccessibilityMsg_FatalError) |
180 | 180 |
| 181 // Request a one-time snapshot of the accessibility tree without |
| 182 // enabling accessibility if it wasn't already enabled. The passed id |
| 183 // will be returned in the AccessibilityHostMsg_SnapshotResponse message. |
| 184 IPC_MESSAGE_ROUTED1(AccessibilityMsg_SnapshotTree, |
| 185 int /* callback id */) |
| 186 |
181 // Messages sent from the renderer to the browser. | 187 // Messages sent from the renderer to the browser. |
182 | 188 |
183 // Sent to notify the browser about renderer accessibility events. | 189 // Sent to notify the browser about renderer accessibility events. |
184 // The browser responds with a AccessibilityMsg_Events_ACK. | 190 // The browser responds with a AccessibilityMsg_Events_ACK. |
185 // The second parameter, reset_token, is set if this IPC was sent in response | 191 // The second parameter, reset_token, is set if this IPC was sent in response |
186 // to a reset request from the browser. When the browser requests a reset, | 192 // to a reset request from the browser. When the browser requests a reset, |
187 // it ignores incoming IPCs until it sees one with the correct reset token. | 193 // it ignores incoming IPCs until it sees one with the correct reset token. |
188 // Any other time, it ignores IPCs with a reset token. | 194 // Any other time, it ignores IPCs with a reset token. |
189 IPC_MESSAGE_ROUTED2( | 195 IPC_MESSAGE_ROUTED2( |
190 AccessibilityHostMsg_Events, | 196 AccessibilityHostMsg_Events, |
191 std::vector<AccessibilityHostMsg_EventParams> /* events */, | 197 std::vector<AccessibilityHostMsg_EventParams> /* events */, |
192 int /* reset_token */) | 198 int /* reset_token */) |
193 | 199 |
194 // Sent to update the browser of the location of accessibility objects. | 200 // Sent to update the browser of the location of accessibility objects. |
195 IPC_MESSAGE_ROUTED1( | 201 IPC_MESSAGE_ROUTED1( |
196 AccessibilityHostMsg_LocationChanges, | 202 AccessibilityHostMsg_LocationChanges, |
197 std::vector<AccessibilityHostMsg_LocationChangeParams>) | 203 std::vector<AccessibilityHostMsg_LocationChangeParams>) |
198 | 204 |
199 // Sent to update the browser of the location of accessibility objects. | 205 // Sent to update the browser of the location of accessibility objects. |
200 IPC_MESSAGE_ROUTED1( | 206 IPC_MESSAGE_ROUTED1( |
201 AccessibilityHostMsg_FindInPageResult, | 207 AccessibilityHostMsg_FindInPageResult, |
202 AccessibilityHostMsg_FindInPageResultParams) | 208 AccessibilityHostMsg_FindInPageResultParams) |
| 209 |
| 210 // Sent in response to AccessibilityMsg_SnapshotTree. The callback id that was |
| 211 // passed to the request will be returned in |callback_id|, along with |
| 212 // a standalone snapshot of the accessibility tree. |
| 213 IPC_MESSAGE_ROUTED2(AccessibilityHostMsg_SnapshotResponse, |
| 214 int /* callback_id */, |
| 215 ui::AXTreeUpdate) |
OLD | NEW |