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

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

Issue 23651003: Use Blink accessibility enums in Chromium (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « content/common/DEPS ('k') | content/common/accessibility_node_data.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/accessibility_node_data.h" 9 #include "content/common/accessibility_node_data.h"
10 #include "content/common/accessibility_notification.h"
11 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
12 #include "content/common/view_message_enums.h" 11 #include "content/common/view_message_enums.h"
13 #include "content/public/common/common_param_traits.h" 12 #include "content/public/common/common_param_traits.h"
14 #include "ipc/ipc_message_macros.h" 13 #include "ipc/ipc_message_macros.h"
15 #include "ipc/ipc_message_utils.h" 14 #include "ipc/ipc_message_utils.h"
16 #include "ipc/ipc_param_traits.h" 15 #include "ipc/ipc_param_traits.h"
17 #include "ipc/param_traits_macros.h" 16 #include "ipc/param_traits_macros.h"
17 #include "third_party/WebKit/public/web/WebAXEnums.h"
18 18
19 #undef IPC_MESSAGE_EXPORT 19 #undef IPC_MESSAGE_EXPORT
20 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 20 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
21 21
22 #define IPC_MESSAGE_START AccessibilityMsgStart 22 #define IPC_MESSAGE_START AccessibilityMsgStart
23 23
24 IPC_ENUM_TRAITS(AccessibilityNotification) 24 IPC_ENUM_TRAITS(WebKit::WebAXEvent)
25 IPC_ENUM_TRAITS(WebKit::WebAXRole)
25 26
26 IPC_ENUM_TRAITS(content::AccessibilityNodeData::BoolAttribute) 27 IPC_ENUM_TRAITS(content::AccessibilityNodeData::BoolAttribute)
27 IPC_ENUM_TRAITS(content::AccessibilityNodeData::FloatAttribute) 28 IPC_ENUM_TRAITS(content::AccessibilityNodeData::FloatAttribute)
28 IPC_ENUM_TRAITS(content::AccessibilityNodeData::IntAttribute) 29 IPC_ENUM_TRAITS(content::AccessibilityNodeData::IntAttribute)
29 IPC_ENUM_TRAITS(content::AccessibilityNodeData::IntListAttribute) 30 IPC_ENUM_TRAITS(content::AccessibilityNodeData::IntListAttribute)
30 IPC_ENUM_TRAITS(content::AccessibilityNodeData::Role)
31 IPC_ENUM_TRAITS(content::AccessibilityNodeData::State)
32 IPC_ENUM_TRAITS(content::AccessibilityNodeData::StringAttribute) 31 IPC_ENUM_TRAITS(content::AccessibilityNodeData::StringAttribute)
33 32
34 IPC_STRUCT_TRAITS_BEGIN(content::AccessibilityNodeData) 33 IPC_STRUCT_TRAITS_BEGIN(content::AccessibilityNodeData)
35 IPC_STRUCT_TRAITS_MEMBER(id) 34 IPC_STRUCT_TRAITS_MEMBER(id)
36 IPC_STRUCT_TRAITS_MEMBER(role) 35 IPC_STRUCT_TRAITS_MEMBER(role)
37 IPC_STRUCT_TRAITS_MEMBER(state) 36 IPC_STRUCT_TRAITS_MEMBER(state)
38 IPC_STRUCT_TRAITS_MEMBER(location) 37 IPC_STRUCT_TRAITS_MEMBER(location)
39 IPC_STRUCT_TRAITS_MEMBER(string_attributes) 38 IPC_STRUCT_TRAITS_MEMBER(string_attributes)
40 IPC_STRUCT_TRAITS_MEMBER(int_attributes) 39 IPC_STRUCT_TRAITS_MEMBER(int_attributes)
41 IPC_STRUCT_TRAITS_MEMBER(float_attributes) 40 IPC_STRUCT_TRAITS_MEMBER(float_attributes)
42 IPC_STRUCT_TRAITS_MEMBER(bool_attributes) 41 IPC_STRUCT_TRAITS_MEMBER(bool_attributes)
43 IPC_STRUCT_TRAITS_MEMBER(intlist_attributes) 42 IPC_STRUCT_TRAITS_MEMBER(intlist_attributes)
44 IPC_STRUCT_TRAITS_MEMBER(html_attributes) 43 IPC_STRUCT_TRAITS_MEMBER(html_attributes)
45 IPC_STRUCT_TRAITS_MEMBER(child_ids) 44 IPC_STRUCT_TRAITS_MEMBER(child_ids)
46 IPC_STRUCT_TRAITS_END() 45 IPC_STRUCT_TRAITS_END()
47 46
48 IPC_STRUCT_BEGIN(AccessibilityHostMsg_NotificationParams) 47 IPC_STRUCT_BEGIN(AccessibilityHostMsg_EventParams)
49 // Vector of nodes in the tree that need to be updated before 48 // Vector of nodes in the tree that need to be updated before
50 // sending the notification. 49 // sending the event.
51 IPC_STRUCT_MEMBER(std::vector<content::AccessibilityNodeData>, nodes) 50 IPC_STRUCT_MEMBER(std::vector<content::AccessibilityNodeData>, nodes)
52 51
53 // Type of notification. 52 // Type of event.
54 IPC_STRUCT_MEMBER(AccessibilityNotification, notification_type) 53 IPC_STRUCT_MEMBER(WebKit::WebAXEvent, event_type)
55 54
56 // ID of the node that the notification applies to. 55 // ID of the node that the event applies to.
57 IPC_STRUCT_MEMBER(int, id) 56 IPC_STRUCT_MEMBER(int, id)
58 IPC_STRUCT_END() 57 IPC_STRUCT_END()
59 58
60 // Messages sent from the browser to the renderer. 59 // Messages sent from the browser to the renderer.
61 60
62 // Relay a request from assistive technology to set focus to a given node. 61 // Relay a request from assistive technology to set focus to a given node.
63 IPC_MESSAGE_ROUTED1(AccessibilityMsg_SetFocus, 62 IPC_MESSAGE_ROUTED1(AccessibilityMsg_SetFocus,
64 int /* object id */) 63 int /* object id */)
65 64
66 // Relay a request from assistive technology to perform the default action 65 // Relay a request from assistive technology to perform the default action
(...skipping 17 matching lines...) Expand all
84 int /* object id */, 83 int /* object id */,
85 gfx::Point /* new location */) 84 gfx::Point /* new location */)
86 85
87 // Relay a request from assistive technology to set the cursor or 86 // Relay a request from assistive technology to set the cursor or
88 // selection within an editable text element. 87 // selection within an editable text element.
89 IPC_MESSAGE_ROUTED3(AccessibilityMsg_SetTextSelection, 88 IPC_MESSAGE_ROUTED3(AccessibilityMsg_SetTextSelection,
90 int /* object id */, 89 int /* object id */,
91 int /* New start offset */, 90 int /* New start offset */,
92 int /* New end offset */) 91 int /* New end offset */)
93 92
94 // Tells the render view that a AccessibilityHostMsg_Notifications 93 // Tells the render view that a AccessibilityHostMsg_Events
95 // message was processed and it can send addition notifications. 94 // message was processed and it can send addition events.
96 IPC_MESSAGE_ROUTED0(AccessibilityMsg_Notifications_ACK) 95 IPC_MESSAGE_ROUTED0(AccessibilityMsg_Events_ACK)
97 96
98 97
99 // Kill the renderer because we got a fatal error in the accessibility tree. 98 // Kill the renderer because we got a fatal error in the accessibility tree.
100 IPC_MESSAGE_ROUTED0(AccessibilityMsg_FatalError) 99 IPC_MESSAGE_ROUTED0(AccessibilityMsg_FatalError)
101 100
102 // Messages sent from the renderer to the browser. 101 // Messages sent from the renderer to the browser.
103 102
104 // Sent to notify the browser about renderer accessibility notifications. 103 // Sent to notify the browser about renderer accessibility events.
105 // The browser responds with a AccessibilityMsg_Notifications_ACK. 104 // The browser responds with a AccessibilityMsg_Events_ACK.
106 IPC_MESSAGE_ROUTED1( 105 IPC_MESSAGE_ROUTED1(
107 AccessibilityHostMsg_Notifications, 106 AccessibilityHostMsg_Events,
108 std::vector<AccessibilityHostMsg_NotificationParams>) 107 std::vector<AccessibilityHostMsg_EventParams>)
OLDNEW
« no previous file with comments | « content/common/DEPS ('k') | content/common/accessibility_node_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698