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

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

Issue 1151523009: Forward accessibility events to the automation extension process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@step1
Patch Set: Handle case where RenderThread destroys AutomationMessageFilter first Created 5 years, 6 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 "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 12 matching lines...) Expand all
23 23
24 typedef std::map<int32, int> FrameIDMap; 24 typedef std::map<int32, int> FrameIDMap;
25 25
26 #endif // CONTENT_COMMON_ACCESSIBILITY_MESSAGES_H_ 26 #endif // CONTENT_COMMON_ACCESSIBILITY_MESSAGES_H_
27 27
28 #undef IPC_MESSAGE_EXPORT 28 #undef IPC_MESSAGE_EXPORT
29 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 29 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
30 30
31 #define IPC_MESSAGE_START AccessibilityMsgStart 31 #define IPC_MESSAGE_START AccessibilityMsgStart
32 32
33 IPC_ENUM_TRAITS_MAX_VALUE(ui::AXEvent, ui::AX_EVENT_LAST)
34 IPC_ENUM_TRAITS_MAX_VALUE(ui::AXRole, ui::AX_ROLE_LAST)
35
36 IPC_ENUM_TRAITS_MAX_VALUE(ui::AXBoolAttribute, ui::AX_BOOL_ATTRIBUTE_LAST)
37 IPC_ENUM_TRAITS_MAX_VALUE(ui::AXFloatAttribute, ui::AX_FLOAT_ATTRIBUTE_LAST)
38 IPC_ENUM_TRAITS_MAX_VALUE(ui::AXIntAttribute, ui::AX_INT_ATTRIBUTE_LAST)
39 IPC_ENUM_TRAITS_MAX_VALUE(ui::AXIntListAttribute,
40 ui::AX_INT_LIST_ATTRIBUTE_LAST)
41 IPC_ENUM_TRAITS_MAX_VALUE(ui::AXStringAttribute, ui::AX_STRING_ATTRIBUTE_LAST)
42
43 IPC_STRUCT_TRAITS_BEGIN(ui::AXNodeData)
44 IPC_STRUCT_TRAITS_MEMBER(id)
45 IPC_STRUCT_TRAITS_MEMBER(role)
46 IPC_STRUCT_TRAITS_MEMBER(state)
47 IPC_STRUCT_TRAITS_MEMBER(location)
48 IPC_STRUCT_TRAITS_MEMBER(string_attributes)
49 IPC_STRUCT_TRAITS_MEMBER(int_attributes)
50 IPC_STRUCT_TRAITS_MEMBER(float_attributes)
51 IPC_STRUCT_TRAITS_MEMBER(bool_attributes)
52 IPC_STRUCT_TRAITS_MEMBER(intlist_attributes)
53 IPC_STRUCT_TRAITS_MEMBER(html_attributes)
54 IPC_STRUCT_TRAITS_MEMBER(child_ids)
55 IPC_STRUCT_TRAITS_END()
56
57 IPC_STRUCT_TRAITS_BEGIN(ui::AXTreeUpdate)
58 IPC_STRUCT_TRAITS_MEMBER(node_id_to_clear)
59 IPC_STRUCT_TRAITS_MEMBER(nodes)
60 IPC_STRUCT_TRAITS_END()
61
62 IPC_STRUCT_BEGIN(AccessibilityHostMsg_EventParams) 33 IPC_STRUCT_BEGIN(AccessibilityHostMsg_EventParams)
63 // The tree update. 34 // The tree update.
64 IPC_STRUCT_MEMBER(ui::AXTreeUpdate, update) 35 IPC_STRUCT_MEMBER(ui::AXTreeUpdate, update)
65 36
66 // Mapping from node id to routing id of its child frame - either the 37 // Mapping from node id to routing id of its child frame - either the
67 // routing id of a RenderFrame or a RenderFrameProxy for an out-of-process 38 // routing id of a RenderFrame or a RenderFrameProxy for an out-of-process
68 // iframe. 39 // iframe.
69 IPC_STRUCT_MEMBER(FrameIDMap, node_to_frame_routing_id_map) 40 IPC_STRUCT_MEMBER(FrameIDMap, node_to_frame_routing_id_map)
70 41
71 // Mapping from node id to the browser plugin instance id of a child 42 // Mapping from node id to the browser plugin instance id of a child
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 IPC_MESSAGE_ROUTED1( 177 IPC_MESSAGE_ROUTED1(
207 AccessibilityHostMsg_FindInPageResult, 178 AccessibilityHostMsg_FindInPageResult,
208 AccessibilityHostMsg_FindInPageResultParams) 179 AccessibilityHostMsg_FindInPageResultParams)
209 180
210 // Sent in response to AccessibilityMsg_SnapshotTree. The callback id that was 181 // Sent in response to AccessibilityMsg_SnapshotTree. The callback id that was
211 // passed to the request will be returned in |callback_id|, along with 182 // passed to the request will be returned in |callback_id|, along with
212 // a standalone snapshot of the accessibility tree. 183 // a standalone snapshot of the accessibility tree.
213 IPC_MESSAGE_ROUTED2(AccessibilityHostMsg_SnapshotResponse, 184 IPC_MESSAGE_ROUTED2(AccessibilityHostMsg_SnapshotResponse,
214 int /* callback_id */, 185 int /* callback_id */,
215 ui::AXTreeUpdate) 186 ui::AXTreeUpdate)
OLDNEW
« no previous file with comments | « components/network_hints/common/BUILD.gn ('k') | content/public/common/common_param_traits_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698