| 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" |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 int /* New anchor offset */, | 152 int /* New anchor offset */, |
| 153 int /* New focus object id */, | 153 int /* New focus object id */, |
| 154 int /* New focus offset */) | 154 int /* New focus offset */) |
| 155 | 155 |
| 156 // Relay a request from assistive technology to set the value of an | 156 // Relay a request from assistive technology to set the value of an |
| 157 // editable text element. | 157 // editable text element. |
| 158 IPC_MESSAGE_ROUTED2(AccessibilityMsg_SetValue, | 158 IPC_MESSAGE_ROUTED2(AccessibilityMsg_SetValue, |
| 159 int /* object id */, | 159 int /* object id */, |
| 160 base::string16 /* Value */) | 160 base::string16 /* Value */) |
| 161 | 161 |
| 162 // Determine the accessibility object under a given point and reply with | 162 // Determine the accessibility object under a given point. |
| 163 // a AccessibilityHostMsg_HitTestResult with the same id. | 163 // |
| 164 // If the target is an object with a child frame (like if the hit test |
| 165 // result is an iframe element), it responds with |
| 166 // AccessibilityHostMsg_ChildFrameHitTestResult so that the |
| 167 // hit test can be performed recursively on the child frame. Otherwise |
| 168 // it fires an accessibility event of type ui::AX_EVENT_HOVER on the target. |
| 164 IPC_MESSAGE_ROUTED1(AccessibilityMsg_HitTest, | 169 IPC_MESSAGE_ROUTED1(AccessibilityMsg_HitTest, |
| 165 gfx::Point /* location to test */) | 170 gfx::Point /* location to test */) |
| 166 | 171 |
| 167 // Relay a request from assistive technology to set accessibility focus | 172 // Relay a request from assistive technology to set accessibility focus |
| 168 // to a given node. On platforms where this is used (currently Android), | 173 // to a given node. On platforms where this is used (currently Android), |
| 169 // inline text boxes are only computed for the node with accessibility focus, | 174 // inline text boxes are only computed for the node with accessibility focus, |
| 170 // rather than for the whole tree. | 175 // rather than for the whole tree. |
| 171 IPC_MESSAGE_ROUTED1(AccessibilityMsg_SetAccessibilityFocus, | 176 IPC_MESSAGE_ROUTED1(AccessibilityMsg_SetAccessibilityFocus, |
| 172 int /* object id */) | 177 int /* object id */) |
| 173 | 178 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 IPC_MESSAGE_ROUTED2( | 211 IPC_MESSAGE_ROUTED2( |
| 207 AccessibilityHostMsg_Events, | 212 AccessibilityHostMsg_Events, |
| 208 std::vector<AccessibilityHostMsg_EventParams> /* events */, | 213 std::vector<AccessibilityHostMsg_EventParams> /* events */, |
| 209 int /* reset_token */) | 214 int /* reset_token */) |
| 210 | 215 |
| 211 // Sent to update the browser of the location of accessibility objects. | 216 // Sent to update the browser of the location of accessibility objects. |
| 212 IPC_MESSAGE_ROUTED1( | 217 IPC_MESSAGE_ROUTED1( |
| 213 AccessibilityHostMsg_LocationChanges, | 218 AccessibilityHostMsg_LocationChanges, |
| 214 std::vector<AccessibilityHostMsg_LocationChangeParams>) | 219 std::vector<AccessibilityHostMsg_LocationChangeParams>) |
| 215 | 220 |
| 216 // Sent to update the browser of the location of accessibility objects. | 221 // Sent to update the browser of Find In Page results. |
| 217 IPC_MESSAGE_ROUTED1( | 222 IPC_MESSAGE_ROUTED1( |
| 218 AccessibilityHostMsg_FindInPageResult, | 223 AccessibilityHostMsg_FindInPageResult, |
| 219 AccessibilityHostMsg_FindInPageResultParams) | 224 AccessibilityHostMsg_FindInPageResultParams) |
| 220 | 225 |
| 226 // Sent in response to AccessibilityMsg_HitTest. |
| 227 IPC_MESSAGE_ROUTED2(AccessibilityHostMsg_ChildFrameHitTestResult, |
| 228 gfx::Point /* location tested */, |
| 229 int /* node id of result */); |
| 230 |
| 221 // Sent in response to AccessibilityMsg_SnapshotTree. The callback id that was | 231 // Sent in response to AccessibilityMsg_SnapshotTree. The callback id that was |
| 222 // passed to the request will be returned in |callback_id|, along with | 232 // passed to the request will be returned in |callback_id|, along with |
| 223 // a standalone snapshot of the accessibility tree. | 233 // a standalone snapshot of the accessibility tree. |
| 224 IPC_MESSAGE_ROUTED2(AccessibilityHostMsg_SnapshotResponse, | 234 IPC_MESSAGE_ROUTED2(AccessibilityHostMsg_SnapshotResponse, |
| 225 int /* callback_id */, | 235 int /* callback_id */, |
| 226 content::AXContentTreeUpdate) | 236 content::AXContentTreeUpdate) |
| OLD | NEW |