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

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

Issue 629413002: Revert of Reset accessibility if it gets out of sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | content/content_tests.gypi » ('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/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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 124
125 // Determine the accessibility object under a given point and reply with 125 // Determine the accessibility object under a given point and reply with
126 // a AccessibilityHostMsg_HitTestResult with the same id. 126 // a AccessibilityHostMsg_HitTestResult with the same id.
127 IPC_MESSAGE_ROUTED1(AccessibilityMsg_HitTest, 127 IPC_MESSAGE_ROUTED1(AccessibilityMsg_HitTest,
128 gfx::Point /* location to test */) 128 gfx::Point /* location to test */)
129 129
130 // Tells the render view that a AccessibilityHostMsg_Events 130 // Tells the render view that a AccessibilityHostMsg_Events
131 // message was processed and it can send addition events. 131 // message was processed and it can send addition events.
132 IPC_MESSAGE_ROUTED0(AccessibilityMsg_Events_ACK) 132 IPC_MESSAGE_ROUTED0(AccessibilityMsg_Events_ACK)
133 133
134 // Tell the renderer to reset and send a new accessibility tree from 134 // Kill the renderer because we got a fatal error in the accessibility tree.
135 // scratch because the browser is out of sync. It passes a sequential
136 // reset token. This should be rare, and if we need reset the same renderer
137 // too many times we just kill it. After sending a reset, the browser ignores
138 // incoming accessibility IPCs until it receives one with the matching reset
139 // token. Conversely, it ignores IPCs with a reset token if it was not
140 // expecting a reset.
141 IPC_MESSAGE_ROUTED1(AccessibilityMsg_Reset,
142 int /* reset token */);
143
144 // Kill the renderer because we got a fatal error in the accessibility tree
145 // and we've already reset too many times.
146 IPC_MESSAGE_ROUTED0(AccessibilityMsg_FatalError) 135 IPC_MESSAGE_ROUTED0(AccessibilityMsg_FatalError)
147 136
148 // Messages sent from the renderer to the browser. 137 // Messages sent from the renderer to the browser.
149 138
150 // Sent to notify the browser about renderer accessibility events. 139 // Sent to notify the browser about renderer accessibility events.
151 // The browser responds with a AccessibilityMsg_Events_ACK. 140 // The browser responds with a AccessibilityMsg_Events_ACK.
152 // The second parameter, reset_token, is set if this IPC was sent in response 141 IPC_MESSAGE_ROUTED1(
153 // to a reset request from the browser. When the browser requests a reset,
154 // it ignores incoming IPCs until it sees one with the correct reset token.
155 // Any other time, it ignores IPCs with a reset token.
156 IPC_MESSAGE_ROUTED2(
157 AccessibilityHostMsg_Events, 142 AccessibilityHostMsg_Events,
158 std::vector<AccessibilityHostMsg_EventParams> /* events */, 143 std::vector<AccessibilityHostMsg_EventParams>)
159 int /* reset_token */)
160 144
161 // Sent to update the browser of the location of accessibility objects. 145 // Sent to update the browser of the location of accessibility objects.
162 IPC_MESSAGE_ROUTED1( 146 IPC_MESSAGE_ROUTED1(
163 AccessibilityHostMsg_LocationChanges, 147 AccessibilityHostMsg_LocationChanges,
164 std::vector<AccessibilityHostMsg_LocationChangeParams>) 148 std::vector<AccessibilityHostMsg_LocationChangeParams>)
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | content/content_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698