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

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

Issue 10544099: Refactor all accessibility code out of webkit/glue. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More Mac compile errors Created 8 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 | Annotate | Revision Log
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/content_export.h" 10 #include "content/common/content_export.h"
10 #include "content/common/view_message_enums.h" 11 #include "content/common/view_message_enums.h"
11 #include "content/public/common/common_param_traits.h" 12 #include "content/public/common/common_param_traits.h"
12 #include "ipc/ipc_message_macros.h" 13 #include "ipc/ipc_message_macros.h"
13 #include "ipc/ipc_message_utils.h" 14 #include "ipc/ipc_message_utils.h"
14 #include "ipc/ipc_param_traits.h" 15 #include "ipc/ipc_param_traits.h"
15 #include "ipc/param_traits_macros.h" 16 #include "ipc/param_traits_macros.h"
16 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebPoint.h" 17 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebPoint.h"
17 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebRect.h" 18 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebRect.h"
18 #include "webkit/glue/webaccessibility.h"
19 19
20 #undef IPC_MESSAGE_EXPORT 20 #undef IPC_MESSAGE_EXPORT
21 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 21 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
22 22
23 #define IPC_MESSAGE_START AccessibilityMsgStart 23 #define IPC_MESSAGE_START AccessibilityMsgStart
24 24
25 #ifndef CONTENT_COMMON_ACCESSIBILITY_MESSAGES_H_ 25 #ifndef CONTENT_COMMON_ACCESSIBILITY_MESSAGES_H_
26 #define CONTENT_COMMON_ACCESSIBILITY_MESSAGES_H_ 26 #define CONTENT_COMMON_ACCESSIBILITY_MESSAGES_H_
27 27
28 enum AccessibilityNotification { 28 enum AccessibilityNotification {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 AccessibilityNotificationTextRemoved, 90 AccessibilityNotificationTextRemoved,
91 91
92 // The node value has changed. 92 // The node value has changed.
93 AccessibilityNotificationValueChanged, 93 AccessibilityNotificationValueChanged,
94 }; 94 };
95 95
96 #endif // CONTENT_COMMON_ACCESSIBILITY_MESSAGES_H_ 96 #endif // CONTENT_COMMON_ACCESSIBILITY_MESSAGES_H_
97 97
98 IPC_ENUM_TRAITS(AccessibilityNotification) 98 IPC_ENUM_TRAITS(AccessibilityNotification)
99 99
100 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::BoolAttribute) 100 IPC_ENUM_TRAITS(content::AccessibilityNodeData::BoolAttribute)
101 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::FloatAttribute) 101 IPC_ENUM_TRAITS(content::AccessibilityNodeData::FloatAttribute)
102 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::IntAttribute) 102 IPC_ENUM_TRAITS(content::AccessibilityNodeData::IntAttribute)
103 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::Role) 103 IPC_ENUM_TRAITS(content::AccessibilityNodeData::Role)
104 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::State) 104 IPC_ENUM_TRAITS(content::AccessibilityNodeData::State)
105 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::StringAttribute) 105 IPC_ENUM_TRAITS(content::AccessibilityNodeData::StringAttribute)
106 106
107 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::WebAccessibility) 107 IPC_STRUCT_TRAITS_BEGIN(content::AccessibilityNodeData)
108 IPC_STRUCT_TRAITS_MEMBER(id) 108 IPC_STRUCT_TRAITS_MEMBER(id)
109 IPC_STRUCT_TRAITS_MEMBER(name) 109 IPC_STRUCT_TRAITS_MEMBER(name)
110 IPC_STRUCT_TRAITS_MEMBER(value) 110 IPC_STRUCT_TRAITS_MEMBER(value)
111 IPC_STRUCT_TRAITS_MEMBER(role) 111 IPC_STRUCT_TRAITS_MEMBER(role)
112 IPC_STRUCT_TRAITS_MEMBER(state) 112 IPC_STRUCT_TRAITS_MEMBER(state)
113 IPC_STRUCT_TRAITS_MEMBER(location) 113 IPC_STRUCT_TRAITS_MEMBER(location)
114 IPC_STRUCT_TRAITS_MEMBER(string_attributes) 114 IPC_STRUCT_TRAITS_MEMBER(string_attributes)
115 IPC_STRUCT_TRAITS_MEMBER(int_attributes) 115 IPC_STRUCT_TRAITS_MEMBER(int_attributes)
116 IPC_STRUCT_TRAITS_MEMBER(float_attributes) 116 IPC_STRUCT_TRAITS_MEMBER(float_attributes)
117 IPC_STRUCT_TRAITS_MEMBER(bool_attributes) 117 IPC_STRUCT_TRAITS_MEMBER(bool_attributes)
118 IPC_STRUCT_TRAITS_MEMBER(children) 118 IPC_STRUCT_TRAITS_MEMBER(children)
119 IPC_STRUCT_TRAITS_MEMBER(indirect_child_ids) 119 IPC_STRUCT_TRAITS_MEMBER(indirect_child_ids)
120 IPC_STRUCT_TRAITS_MEMBER(html_attributes) 120 IPC_STRUCT_TRAITS_MEMBER(html_attributes)
121 IPC_STRUCT_TRAITS_MEMBER(line_breaks) 121 IPC_STRUCT_TRAITS_MEMBER(line_breaks)
122 IPC_STRUCT_TRAITS_MEMBER(cell_ids) 122 IPC_STRUCT_TRAITS_MEMBER(cell_ids)
123 IPC_STRUCT_TRAITS_MEMBER(unique_cell_ids) 123 IPC_STRUCT_TRAITS_MEMBER(unique_cell_ids)
124 IPC_STRUCT_TRAITS_END() 124 IPC_STRUCT_TRAITS_END()
125 125
126 IPC_STRUCT_BEGIN(AccessibilityHostMsg_NotificationParams) 126 IPC_STRUCT_BEGIN(AccessibilityHostMsg_NotificationParams)
127 // Type of notification. 127 // Type of notification.
128 IPC_STRUCT_MEMBER(AccessibilityNotification, notification_type) 128 IPC_STRUCT_MEMBER(AccessibilityNotification, notification_type)
129 129
130 // ID of the node that the notification applies to. 130 // ID of the node that the notification applies to.
131 IPC_STRUCT_MEMBER(int, id) 131 IPC_STRUCT_MEMBER(int, id)
132 132
133 // The accessibility node tree. 133 // The accessibility node tree.
134 IPC_STRUCT_MEMBER(webkit_glue::WebAccessibility, acc_tree) 134 IPC_STRUCT_MEMBER(content::AccessibilityNodeData, acc_tree)
135 135
136 // Whether children are included in this tree, otherwise it's just an 136 // Whether children are included in this tree, otherwise it's just an
137 // update to this one node and existing children are left in place. 137 // update to this one node and existing children are left in place.
138 IPC_STRUCT_MEMBER(bool, includes_children) 138 IPC_STRUCT_MEMBER(bool, includes_children)
139 IPC_STRUCT_END() 139 IPC_STRUCT_END()
140 140
141 // Messages sent from the browser to the renderer. 141 // Messages sent from the browser to the renderer.
142 142
143 // Relay a request from assistive technology to set focus to a given node. 143 // Relay a request from assistive technology to set focus to a given node.
144 IPC_MESSAGE_ROUTED1(AccessibilityMsg_SetFocus, 144 IPC_MESSAGE_ROUTED1(AccessibilityMsg_SetFocus,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 // message was processed and it can send addition notifications. 176 // message was processed and it can send addition notifications.
177 IPC_MESSAGE_ROUTED0(AccessibilityMsg_Notifications_ACK) 177 IPC_MESSAGE_ROUTED0(AccessibilityMsg_Notifications_ACK)
178 178
179 // Messages sent from the renderer to the browser. 179 // Messages sent from the renderer to the browser.
180 180
181 // Sent to notify the browser about renderer accessibility notifications. 181 // Sent to notify the browser about renderer accessibility notifications.
182 // The browser responds with a AccessibilityMsg_Notifications_ACK. 182 // The browser responds with a AccessibilityMsg_Notifications_ACK.
183 IPC_MESSAGE_ROUTED1( 183 IPC_MESSAGE_ROUTED1(
184 AccessibilityHostMsg_Notifications, 184 AccessibilityHostMsg_Notifications,
185 std::vector<AccessibilityHostMsg_NotificationParams>) 185 std::vector<AccessibilityHostMsg_NotificationParams>)
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_win.cc ('k') | content/common/accessibility_node_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698