Chromium Code Reviews| 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 an iframe element), | |
|
nasko
2016/03/30 21:01:41
Does this mean that a <div> that has an <iframe> i
dmazzoni
2016/03/31 16:15:55
Sorry if my wording is unclear. I meant that the <
nasko
2016/03/31 16:35:57
Thanks! This definitely clarifies it.
| |
| 165 // responds with AccessibilityHostMsg_ChildFrameHitTestResult so that the | |
| 166 // hit test can be performed recursively on the child frame. Otherwise | |
| 167 // it fires an accessibility event of type ui::AX_EVENT_HOVER on the target. | |
| 164 IPC_MESSAGE_ROUTED1(AccessibilityMsg_HitTest, | 168 IPC_MESSAGE_ROUTED1(AccessibilityMsg_HitTest, |
| 165 gfx::Point /* location to test */) | 169 gfx::Point /* location to test */) |
| 166 | 170 |
| 167 // Relay a request from assistive technology to set accessibility focus | 171 // Relay a request from assistive technology to set accessibility focus |
| 168 // to a given node. On platforms where this is used (currently Android), | 172 // 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, | 173 // inline text boxes are only computed for the node with accessibility focus, |
| 170 // rather than for the whole tree. | 174 // rather than for the whole tree. |
| 171 IPC_MESSAGE_ROUTED1(AccessibilityMsg_SetAccessibilityFocus, | 175 IPC_MESSAGE_ROUTED1(AccessibilityMsg_SetAccessibilityFocus, |
| 172 int /* object id */) | 176 int /* object id */) |
| 173 | 177 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 206 IPC_MESSAGE_ROUTED2( | 210 IPC_MESSAGE_ROUTED2( |
| 207 AccessibilityHostMsg_Events, | 211 AccessibilityHostMsg_Events, |
| 208 std::vector<AccessibilityHostMsg_EventParams> /* events */, | 212 std::vector<AccessibilityHostMsg_EventParams> /* events */, |
| 209 int /* reset_token */) | 213 int /* reset_token */) |
| 210 | 214 |
| 211 // Sent to update the browser of the location of accessibility objects. | 215 // Sent to update the browser of the location of accessibility objects. |
| 212 IPC_MESSAGE_ROUTED1( | 216 IPC_MESSAGE_ROUTED1( |
| 213 AccessibilityHostMsg_LocationChanges, | 217 AccessibilityHostMsg_LocationChanges, |
| 214 std::vector<AccessibilityHostMsg_LocationChangeParams>) | 218 std::vector<AccessibilityHostMsg_LocationChangeParams>) |
| 215 | 219 |
| 216 // Sent to update the browser of the location of accessibility objects. | 220 // Sent to update the browser of Find In Page results. |
| 217 IPC_MESSAGE_ROUTED1( | 221 IPC_MESSAGE_ROUTED1( |
| 218 AccessibilityHostMsg_FindInPageResult, | 222 AccessibilityHostMsg_FindInPageResult, |
| 219 AccessibilityHostMsg_FindInPageResultParams) | 223 AccessibilityHostMsg_FindInPageResultParams) |
| 220 | 224 |
| 225 // Sent in response to AccessibilityMsg_HitTest. | |
| 226 IPC_MESSAGE_ROUTED2(AccessibilityHostMsg_ChildFrameHitTestResult, | |
| 227 gfx::Point /* location tested */, | |
| 228 int /* node id of result */); | |
| 229 | |
| 221 // Sent in response to AccessibilityMsg_SnapshotTree. The callback id that was | 230 // Sent in response to AccessibilityMsg_SnapshotTree. The callback id that was |
| 222 // passed to the request will be returned in |callback_id|, along with | 231 // passed to the request will be returned in |callback_id|, along with |
| 223 // a standalone snapshot of the accessibility tree. | 232 // a standalone snapshot of the accessibility tree. |
| 224 IPC_MESSAGE_ROUTED2(AccessibilityHostMsg_SnapshotResponse, | 233 IPC_MESSAGE_ROUTED2(AccessibilityHostMsg_SnapshotResponse, |
| 225 int /* callback_id */, | 234 int /* callback_id */, |
| 226 content::AXContentTreeUpdate) | 235 content::AXContentTreeUpdate) |
| OLD | NEW |