Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(422)

Side by Side Diff: content/common/accessibility_messages.h

Issue 2748463003: Generalize the HIT_TEST accessibility action so that it can send any event. (Closed)
Patch Set: Use ParseAXEvent Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 21 matching lines...) Expand all
32 IPC_STRUCT_TRAITS_MEMBER(action) 32 IPC_STRUCT_TRAITS_MEMBER(action)
33 IPC_STRUCT_TRAITS_MEMBER(target_node_id) 33 IPC_STRUCT_TRAITS_MEMBER(target_node_id)
34 IPC_STRUCT_TRAITS_MEMBER(flags) 34 IPC_STRUCT_TRAITS_MEMBER(flags)
35 IPC_STRUCT_TRAITS_MEMBER(anchor_node_id) 35 IPC_STRUCT_TRAITS_MEMBER(anchor_node_id)
36 IPC_STRUCT_TRAITS_MEMBER(anchor_offset) 36 IPC_STRUCT_TRAITS_MEMBER(anchor_offset)
37 IPC_STRUCT_TRAITS_MEMBER(focus_node_id) 37 IPC_STRUCT_TRAITS_MEMBER(focus_node_id)
38 IPC_STRUCT_TRAITS_MEMBER(focus_offset) 38 IPC_STRUCT_TRAITS_MEMBER(focus_offset)
39 IPC_STRUCT_TRAITS_MEMBER(target_rect) 39 IPC_STRUCT_TRAITS_MEMBER(target_rect)
40 IPC_STRUCT_TRAITS_MEMBER(target_point) 40 IPC_STRUCT_TRAITS_MEMBER(target_point)
41 IPC_STRUCT_TRAITS_MEMBER(value) 41 IPC_STRUCT_TRAITS_MEMBER(value)
42 IPC_STRUCT_TRAITS_MEMBER(hit_test_event_to_fire)
42 IPC_STRUCT_TRAITS_END() 43 IPC_STRUCT_TRAITS_END()
43 44
44 IPC_STRUCT_TRAITS_BEGIN(content::AXContentNodeData) 45 IPC_STRUCT_TRAITS_BEGIN(content::AXContentNodeData)
45 IPC_STRUCT_TRAITS_MEMBER(id) 46 IPC_STRUCT_TRAITS_MEMBER(id)
46 IPC_STRUCT_TRAITS_MEMBER(role) 47 IPC_STRUCT_TRAITS_MEMBER(role)
47 IPC_STRUCT_TRAITS_MEMBER(state) 48 IPC_STRUCT_TRAITS_MEMBER(state)
48 IPC_STRUCT_TRAITS_MEMBER(location) 49 IPC_STRUCT_TRAITS_MEMBER(location)
49 IPC_STRUCT_TRAITS_MEMBER(transform) 50 IPC_STRUCT_TRAITS_MEMBER(transform)
50 IPC_STRUCT_TRAITS_MEMBER(string_attributes) 51 IPC_STRUCT_TRAITS_MEMBER(string_attributes)
51 IPC_STRUCT_TRAITS_MEMBER(int_attributes) 52 IPC_STRUCT_TRAITS_MEMBER(int_attributes)
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 // such as focusing or clicking on a node. 136 // such as focusing or clicking on a node.
136 IPC_MESSAGE_ROUTED1(AccessibilityMsg_PerformAction, 137 IPC_MESSAGE_ROUTED1(AccessibilityMsg_PerformAction,
137 ui::AXActionData /* action parameters */) 138 ui::AXActionData /* action parameters */)
138 139
139 // Determine the accessibility object under a given point. 140 // Determine the accessibility object under a given point.
140 // 141 //
141 // If the target is an object with a child frame (like if the hit test 142 // If the target is an object with a child frame (like if the hit test
142 // result is an iframe element), it responds with 143 // result is an iframe element), it responds with
143 // AccessibilityHostMsg_ChildFrameHitTestResult so that the 144 // AccessibilityHostMsg_ChildFrameHitTestResult so that the
144 // hit test can be performed recursively on the child frame. Otherwise 145 // hit test can be performed recursively on the child frame. Otherwise
145 // it fires an accessibility event of type ui::AX_EVENT_HOVER on the target. 146 // it fires an accessibility event of type |event_to_fire| on the target.
146 IPC_MESSAGE_ROUTED1(AccessibilityMsg_HitTest, 147 IPC_MESSAGE_ROUTED2(AccessibilityMsg_HitTest,
147 gfx::Point /* location to test */) 148 gfx::Point /* location to test */,
149 ui::AXEvent /* event to fire */)
148 150
149 // Relay a request from assistive technology to set accessibility focus 151 // Relay a request from assistive technology to set accessibility focus
150 // to a given node. On platforms where this is used (currently Android), 152 // to a given node. On platforms where this is used (currently Android),
151 // inline text boxes are only computed for the node with accessibility focus, 153 // inline text boxes are only computed for the node with accessibility focus,
152 // rather than for the whole tree. 154 // rather than for the whole tree.
153 IPC_MESSAGE_ROUTED1(AccessibilityMsg_SetAccessibilityFocus, 155 IPC_MESSAGE_ROUTED1(AccessibilityMsg_SetAccessibilityFocus,
154 int /* object id */) 156 int /* object id */)
155 157
156 // Tells the render view that a AccessibilityHostMsg_Events 158 // Tells the render view that a AccessibilityHostMsg_Events
157 // message was processed and it can send additional events. The argument 159 // message was processed and it can send additional events. The argument
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 IPC_MESSAGE_ROUTED1( 200 IPC_MESSAGE_ROUTED1(
199 AccessibilityHostMsg_LocationChanges, 201 AccessibilityHostMsg_LocationChanges,
200 std::vector<AccessibilityHostMsg_LocationChangeParams>) 202 std::vector<AccessibilityHostMsg_LocationChangeParams>)
201 203
202 // Sent to update the browser of Find In Page results. 204 // Sent to update the browser of Find In Page results.
203 IPC_MESSAGE_ROUTED1( 205 IPC_MESSAGE_ROUTED1(
204 AccessibilityHostMsg_FindInPageResult, 206 AccessibilityHostMsg_FindInPageResult,
205 AccessibilityHostMsg_FindInPageResultParams) 207 AccessibilityHostMsg_FindInPageResultParams)
206 208
207 // Sent in response to AccessibilityMsg_HitTest. 209 // Sent in response to AccessibilityMsg_HitTest.
208 IPC_MESSAGE_ROUTED2(AccessibilityHostMsg_ChildFrameHitTestResult, 210 IPC_MESSAGE_ROUTED3(AccessibilityHostMsg_ChildFrameHitTestResult,
209 gfx::Point /* location tested */, 211 gfx::Point /* location tested */,
210 int /* node id of result */) 212 int /* node id of result */,
213 ui::AXEvent /* event to fire */)
211 214
212 // Sent in response to AccessibilityMsg_SnapshotTree. The callback id that was 215 // Sent in response to AccessibilityMsg_SnapshotTree. The callback id that was
213 // passed to the request will be returned in |callback_id|, along with 216 // passed to the request will be returned in |callback_id|, along with
214 // a standalone snapshot of the accessibility tree. 217 // a standalone snapshot of the accessibility tree.
215 IPC_MESSAGE_ROUTED2(AccessibilityHostMsg_SnapshotResponse, 218 IPC_MESSAGE_ROUTED2(AccessibilityHostMsg_SnapshotResponse,
216 int /* callback_id */, 219 int /* callback_id */,
217 content::AXContentTreeUpdate) 220 content::AXContentTreeUpdate)
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | content/renderer/accessibility/render_accessibility_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698