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

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

Issue 2341503002: Fix race condition causing DCHECK(ack_pending_) to trip. (Closed)
Patch Set: Update test Created 4 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
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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 gfx::Point /* location to test */) 177 gfx::Point /* location to test */)
178 178
179 // Relay a request from assistive technology to set accessibility focus 179 // Relay a request from assistive technology to set accessibility focus
180 // to a given node. On platforms where this is used (currently Android), 180 // to a given node. On platforms where this is used (currently Android),
181 // inline text boxes are only computed for the node with accessibility focus, 181 // inline text boxes are only computed for the node with accessibility focus,
182 // rather than for the whole tree. 182 // rather than for the whole tree.
183 IPC_MESSAGE_ROUTED1(AccessibilityMsg_SetAccessibilityFocus, 183 IPC_MESSAGE_ROUTED1(AccessibilityMsg_SetAccessibilityFocus,
184 int /* object id */) 184 int /* object id */)
185 185
186 // Tells the render view that a AccessibilityHostMsg_Events 186 // Tells the render view that a AccessibilityHostMsg_Events
187 // message was processed and it can send addition events. 187 // message was processed and it can send additional events. The argument
188 IPC_MESSAGE_ROUTED0(AccessibilityMsg_Events_ACK) 188 // must be the same as the ack_token passed to AccessibilityHostMsg_Events.
189 IPC_MESSAGE_ROUTED1(AccessibilityMsg_Events_ACK,
190 int /* ack_token */)
189 191
190 // Tell the renderer to reset and send a new accessibility tree from 192 // Tell the renderer to reset and send a new accessibility tree from
191 // scratch because the browser is out of sync. It passes a sequential 193 // scratch because the browser is out of sync. It passes a sequential
192 // reset token. This should be rare, and if we need reset the same renderer 194 // reset token. This should be rare, and if we need reset the same renderer
193 // too many times we just kill it. After sending a reset, the browser ignores 195 // too many times we just kill it. After sending a reset, the browser ignores
194 // incoming accessibility IPCs until it receives one with the matching reset 196 // incoming accessibility IPCs until it receives one with the matching reset
195 // token. Conversely, it ignores IPCs with a reset token if it was not 197 // token. Conversely, it ignores IPCs with a reset token if it was not
196 // expecting a reset. 198 // expecting a reset.
197 IPC_MESSAGE_ROUTED1(AccessibilityMsg_Reset, 199 IPC_MESSAGE_ROUTED1(AccessibilityMsg_Reset,
198 int /* reset token */) 200 int /* reset token */)
199 201
200 // Kill the renderer because we got a fatal error in the accessibility tree 202 // Kill the renderer because we got a fatal error in the accessibility tree
201 // and we've already reset too many times. 203 // and we've already reset too many times.
202 IPC_MESSAGE_ROUTED0(AccessibilityMsg_FatalError) 204 IPC_MESSAGE_ROUTED0(AccessibilityMsg_FatalError)
203 205
204 // Request a one-time snapshot of the accessibility tree without 206 // Request a one-time snapshot of the accessibility tree without
205 // enabling accessibility if it wasn't already enabled. The passed id 207 // enabling accessibility if it wasn't already enabled. The passed id
206 // will be returned in the AccessibilityHostMsg_SnapshotResponse message. 208 // will be returned in the AccessibilityHostMsg_SnapshotResponse message.
207 IPC_MESSAGE_ROUTED1(AccessibilityMsg_SnapshotTree, 209 IPC_MESSAGE_ROUTED1(AccessibilityMsg_SnapshotTree,
208 int /* callback id */) 210 int /* callback id */)
209 211
210 // Messages sent from the renderer to the browser. 212 // Messages sent from the renderer to the browser.
211 213
212 // Sent to notify the browser about renderer accessibility events. 214 // Sent to notify the browser about renderer accessibility events.
213 // The browser responds with a AccessibilityMsg_Events_ACK. 215 // The browser responds with a AccessibilityMsg_Events_ACK with the same
216 // ack_token.
214 // The second parameter, reset_token, is set if this IPC was sent in response 217 // The second parameter, reset_token, is set if this IPC was sent in response
215 // to a reset request from the browser. When the browser requests a reset, 218 // to a reset request from the browser. When the browser requests a reset,
216 // it ignores incoming IPCs until it sees one with the correct reset token. 219 // it ignores incoming IPCs until it sees one with the correct reset token.
217 // Any other time, it ignores IPCs with a reset token. 220 // Any other time, it ignores IPCs with a reset token.
218 IPC_MESSAGE_ROUTED2( 221 IPC_MESSAGE_ROUTED3(
219 AccessibilityHostMsg_Events, 222 AccessibilityHostMsg_Events,
220 std::vector<AccessibilityHostMsg_EventParams> /* events */, 223 std::vector<AccessibilityHostMsg_EventParams> /* events */,
221 int /* reset_token */) 224 int /* reset_token */,
225 int /* ack_token */)
222 226
223 // Sent to update the browser of the location of accessibility objects. 227 // Sent to update the browser of the location of accessibility objects.
224 IPC_MESSAGE_ROUTED1( 228 IPC_MESSAGE_ROUTED1(
225 AccessibilityHostMsg_LocationChanges, 229 AccessibilityHostMsg_LocationChanges,
226 std::vector<AccessibilityHostMsg_LocationChangeParams>) 230 std::vector<AccessibilityHostMsg_LocationChangeParams>)
227 231
228 // Sent to update the browser of Find In Page results. 232 // Sent to update the browser of Find In Page results.
229 IPC_MESSAGE_ROUTED1( 233 IPC_MESSAGE_ROUTED1(
230 AccessibilityHostMsg_FindInPageResult, 234 AccessibilityHostMsg_FindInPageResult,
231 AccessibilityHostMsg_FindInPageResultParams) 235 AccessibilityHostMsg_FindInPageResultParams)
232 236
233 // Sent in response to AccessibilityMsg_HitTest. 237 // Sent in response to AccessibilityMsg_HitTest.
234 IPC_MESSAGE_ROUTED2(AccessibilityHostMsg_ChildFrameHitTestResult, 238 IPC_MESSAGE_ROUTED2(AccessibilityHostMsg_ChildFrameHitTestResult,
235 gfx::Point /* location tested */, 239 gfx::Point /* location tested */,
236 int /* node id of result */) 240 int /* node id of result */)
237 241
238 // Sent in response to AccessibilityMsg_SnapshotTree. The callback id that was 242 // Sent in response to AccessibilityMsg_SnapshotTree. The callback id that was
239 // passed to the request will be returned in |callback_id|, along with 243 // passed to the request will be returned in |callback_id|, along with
240 // a standalone snapshot of the accessibility tree. 244 // a standalone snapshot of the accessibility tree.
241 IPC_MESSAGE_ROUTED2(AccessibilityHostMsg_SnapshotResponse, 245 IPC_MESSAGE_ROUTED2(AccessibilityHostMsg_SnapshotResponse,
242 int /* callback_id */, 246 int /* callback_id */,
243 content::AXContentTreeUpdate) 247 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