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

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

Issue 2217363002: Use relative bounding boxes throughout Chrome accessibility (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address feedback from aboxhall Created 4 years, 4 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"
11 #include "ipc/ipc_message_macros.h" 11 #include "ipc/ipc_message_macros.h"
12 #include "ipc/ipc_message_utils.h" 12 #include "ipc/ipc_message_utils.h"
13 #include "ipc/ipc_param_traits.h" 13 #include "ipc/ipc_param_traits.h"
14 #include "ipc/param_traits_macros.h" 14 #include "ipc/param_traits_macros.h"
15 #include "third_party/WebKit/public/web/WebAXEnums.h" 15 #include "third_party/WebKit/public/web/WebAXEnums.h"
16 #include "ui/accessibility/ax_node_data.h" 16 #include "ui/accessibility/ax_node_data.h"
17 #include "ui/accessibility/ax_relative_bounds.h"
17 #include "ui/accessibility/ax_tree_update.h" 18 #include "ui/accessibility/ax_tree_update.h"
18 #include "ui/gfx/transform.h" 19 #include "ui/gfx/transform.h"
19 20
20 #undef IPC_MESSAGE_EXPORT 21 #undef IPC_MESSAGE_EXPORT
21 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 22 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
22 23
23 #define IPC_MESSAGE_START AccessibilityMsgStart 24 #define IPC_MESSAGE_START AccessibilityMsgStart
24 25
25 IPC_ENUM_TRAITS_MAX_VALUE(content::AXContentIntAttribute, 26 IPC_ENUM_TRAITS_MAX_VALUE(content::AXContentIntAttribute,
26 content::AX_CONTENT_INT_ATTRIBUTE_LAST) 27 content::AX_CONTENT_INT_ATTRIBUTE_LAST)
27 28
28 IPC_STRUCT_TRAITS_BEGIN(content::AXContentNodeData) 29 IPC_STRUCT_TRAITS_BEGIN(content::AXContentNodeData)
29 IPC_STRUCT_TRAITS_MEMBER(id) 30 IPC_STRUCT_TRAITS_MEMBER(id)
30 IPC_STRUCT_TRAITS_MEMBER(role) 31 IPC_STRUCT_TRAITS_MEMBER(role)
31 IPC_STRUCT_TRAITS_MEMBER(state) 32 IPC_STRUCT_TRAITS_MEMBER(state)
32 IPC_STRUCT_TRAITS_MEMBER(location) 33 IPC_STRUCT_TRAITS_MEMBER(location)
33 IPC_STRUCT_TRAITS_MEMBER(transform) 34 IPC_STRUCT_TRAITS_MEMBER(transform)
34 IPC_STRUCT_TRAITS_MEMBER(string_attributes) 35 IPC_STRUCT_TRAITS_MEMBER(string_attributes)
35 IPC_STRUCT_TRAITS_MEMBER(int_attributes) 36 IPC_STRUCT_TRAITS_MEMBER(int_attributes)
36 IPC_STRUCT_TRAITS_MEMBER(float_attributes) 37 IPC_STRUCT_TRAITS_MEMBER(float_attributes)
37 IPC_STRUCT_TRAITS_MEMBER(bool_attributes) 38 IPC_STRUCT_TRAITS_MEMBER(bool_attributes)
38 IPC_STRUCT_TRAITS_MEMBER(intlist_attributes) 39 IPC_STRUCT_TRAITS_MEMBER(intlist_attributes)
39 IPC_STRUCT_TRAITS_MEMBER(html_attributes) 40 IPC_STRUCT_TRAITS_MEMBER(html_attributes)
40 IPC_STRUCT_TRAITS_MEMBER(child_ids) 41 IPC_STRUCT_TRAITS_MEMBER(child_ids)
41 IPC_STRUCT_TRAITS_MEMBER(content_int_attributes) 42 IPC_STRUCT_TRAITS_MEMBER(content_int_attributes)
43 IPC_STRUCT_TRAITS_MEMBER(offset_container_id)
42 IPC_STRUCT_TRAITS_END() 44 IPC_STRUCT_TRAITS_END()
43 45
44 IPC_STRUCT_TRAITS_BEGIN(content::AXContentTreeData) 46 IPC_STRUCT_TRAITS_BEGIN(content::AXContentTreeData)
45 IPC_STRUCT_TRAITS_MEMBER(tree_id) 47 IPC_STRUCT_TRAITS_MEMBER(tree_id)
46 IPC_STRUCT_TRAITS_MEMBER(parent_tree_id) 48 IPC_STRUCT_TRAITS_MEMBER(parent_tree_id)
47 IPC_STRUCT_TRAITS_MEMBER(focused_tree_id) 49 IPC_STRUCT_TRAITS_MEMBER(focused_tree_id)
48 IPC_STRUCT_TRAITS_MEMBER(url) 50 IPC_STRUCT_TRAITS_MEMBER(url)
49 IPC_STRUCT_TRAITS_MEMBER(title) 51 IPC_STRUCT_TRAITS_MEMBER(title)
50 IPC_STRUCT_TRAITS_MEMBER(mimetype) 52 IPC_STRUCT_TRAITS_MEMBER(mimetype)
51 IPC_STRUCT_TRAITS_MEMBER(doctype) 53 IPC_STRUCT_TRAITS_MEMBER(doctype)
(...skipping 11 matching lines...) Expand all
63 IPC_STRUCT_TRAITS_END() 65 IPC_STRUCT_TRAITS_END()
64 66
65 IPC_STRUCT_TRAITS_BEGIN(content::AXContentTreeUpdate) 67 IPC_STRUCT_TRAITS_BEGIN(content::AXContentTreeUpdate)
66 IPC_STRUCT_TRAITS_MEMBER(has_tree_data) 68 IPC_STRUCT_TRAITS_MEMBER(has_tree_data)
67 IPC_STRUCT_TRAITS_MEMBER(tree_data) 69 IPC_STRUCT_TRAITS_MEMBER(tree_data)
68 IPC_STRUCT_TRAITS_MEMBER(node_id_to_clear) 70 IPC_STRUCT_TRAITS_MEMBER(node_id_to_clear)
69 IPC_STRUCT_TRAITS_MEMBER(root_id) 71 IPC_STRUCT_TRAITS_MEMBER(root_id)
70 IPC_STRUCT_TRAITS_MEMBER(nodes) 72 IPC_STRUCT_TRAITS_MEMBER(nodes)
71 IPC_STRUCT_TRAITS_END() 73 IPC_STRUCT_TRAITS_END()
72 74
75 IPC_STRUCT_TRAITS_BEGIN(ui::AXRelativeBounds)
76 IPC_STRUCT_TRAITS_MEMBER(offset_container_id)
77 IPC_STRUCT_TRAITS_MEMBER(bounds)
78 IPC_STRUCT_TRAITS_MEMBER(transform)
79 IPC_STRUCT_TRAITS_END()
80
73 IPC_STRUCT_BEGIN(AccessibilityHostMsg_EventParams) 81 IPC_STRUCT_BEGIN(AccessibilityHostMsg_EventParams)
74 // The tree update. 82 // The tree update.
75 IPC_STRUCT_MEMBER(content::AXContentTreeUpdate, update) 83 IPC_STRUCT_MEMBER(content::AXContentTreeUpdate, update)
76 84
77 // Type of event. 85 // Type of event.
78 IPC_STRUCT_MEMBER(ui::AXEvent, event_type) 86 IPC_STRUCT_MEMBER(ui::AXEvent, event_type)
79 87
80 // ID of the node that the event applies to. 88 // ID of the node that the event applies to.
81 IPC_STRUCT_MEMBER(int, id) 89 IPC_STRUCT_MEMBER(int, id)
82 IPC_STRUCT_END() 90 IPC_STRUCT_END()
83 91
84 IPC_STRUCT_BEGIN(AccessibilityHostMsg_LocationChangeParams) 92 IPC_STRUCT_BEGIN(AccessibilityHostMsg_LocationChangeParams)
85 // ID of the object whose location is changing. 93 // ID of the object whose location is changing.
86 IPC_STRUCT_MEMBER(int, id) 94 IPC_STRUCT_MEMBER(int, id)
87 95
88 // The object's new location, in frame-relative coordinates (same 96 // The object's new location info.
89 // as the coordinates in AccessibilityNodeData). 97 IPC_STRUCT_MEMBER(ui::AXRelativeBounds, new_location)
90 IPC_STRUCT_MEMBER(gfx::RectF, new_location)
91 IPC_STRUCT_END() 98 IPC_STRUCT_END()
92 99
93 IPC_STRUCT_BEGIN(AccessibilityHostMsg_FindInPageResultParams) 100 IPC_STRUCT_BEGIN(AccessibilityHostMsg_FindInPageResultParams)
94 // The find in page request id. 101 // The find in page request id.
95 IPC_STRUCT_MEMBER(int, request_id) 102 IPC_STRUCT_MEMBER(int, request_id)
96 103
97 // The index of the result match. 104 // The index of the result match.
98 IPC_STRUCT_MEMBER(int, match_index) 105 IPC_STRUCT_MEMBER(int, match_index)
99 106
100 // The id of the accessibility object for the start of the match range. 107 // The id of the accessibility object for the start of the match range.
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 IPC_MESSAGE_ROUTED2(AccessibilityHostMsg_ChildFrameHitTestResult, 237 IPC_MESSAGE_ROUTED2(AccessibilityHostMsg_ChildFrameHitTestResult,
231 gfx::Point /* location tested */, 238 gfx::Point /* location tested */,
232 int /* node id of result */) 239 int /* node id of result */)
233 240
234 // Sent in response to AccessibilityMsg_SnapshotTree. The callback id that was 241 // Sent in response to AccessibilityMsg_SnapshotTree. The callback id that was
235 // passed to the request will be returned in |callback_id|, along with 242 // passed to the request will be returned in |callback_id|, along with
236 // a standalone snapshot of the accessibility tree. 243 // a standalone snapshot of the accessibility tree.
237 IPC_MESSAGE_ROUTED2(AccessibilityHostMsg_SnapshotResponse, 244 IPC_MESSAGE_ROUTED2(AccessibilityHostMsg_SnapshotResponse,
238 int /* callback_id */, 245 int /* callback_id */,
239 content::AXContentTreeUpdate) 246 content::AXContentTreeUpdate)
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_android.cc ('k') | content/renderer/accessibility/blink_ax_tree_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698