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

Side by Side Diff: content/renderer/accessibility/renderer_accessibility_complete.cc

Issue 558943002: Revert of Cross-process iframe accessibility. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
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 #include "content/renderer/accessibility/renderer_accessibility_complete.h" 5 #include "content/renderer/accessibility/renderer_accessibility_complete.h"
6 6
7 #include <queue> 7 #include <queue>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 200
201 // When we get a "selected children changed" event, Blink 201 // When we get a "selected children changed" event, Blink
202 // doesn't also send us events for each child that changed 202 // doesn't also send us events for each child that changed
203 // selection state, so make sure we re-send that whole subtree. 203 // selection state, so make sure we re-send that whole subtree.
204 if (event.event_type == 204 if (event.event_type ==
205 ui::AX_EVENT_SELECTED_CHILDREN_CHANGED) { 205 ui::AX_EVENT_SELECTED_CHILDREN_CHANGED) {
206 serializer_.DeleteClientSubtree(obj); 206 serializer_.DeleteClientSubtree(obj);
207 } 207 }
208 208
209 AccessibilityHostMsg_EventParams event_msg; 209 AccessibilityHostMsg_EventParams event_msg;
210 tree_source_.CollectChildFrameIdMapping(
211 &event_msg.node_to_frame_routing_id_map);
212 event_msg.event_type = event.event_type; 210 event_msg.event_type = event.event_type;
213 event_msg.id = event.id; 211 event_msg.id = event.id;
214 serializer_.SerializeChanges(obj, &event_msg.update); 212 serializer_.SerializeChanges(obj, &event_msg.update);
215 event_msgs.push_back(event_msg); 213 event_msgs.push_back(event_msg);
216 214
217 // For each node in the update, set the location in our map from 215 // For each node in the update, set the location in our map from
218 // ids to locations. 216 // ids to locations.
219 for (size_t i = 0; i < event_msg.update.nodes.size(); ++i) { 217 for (size_t i = 0; i < event_msg.update.nodes.size(); ++i) {
220 locations_[event_msg.update.nodes[i].id] = 218 locations_[event_msg.update.nodes[i].id] =
221 event_msg.update.nodes[i].location; 219 event_msg.update.nodes[i].location;
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 render_frame_->GetRenderView()->GetWebView()->clearFocusedElement(); 409 render_frame_->GetRenderView()->GetWebView()->clearFocusedElement();
412 else 410 else
413 obj.setFocused(true); 411 obj.setFocused(true);
414 } 412 }
415 413
416 void RendererAccessibilityComplete::OnFatalError() { 414 void RendererAccessibilityComplete::OnFatalError() {
417 CHECK(false) << "Invalid accessibility tree."; 415 CHECK(false) << "Invalid accessibility tree.";
418 } 416 }
419 417
420 } // namespace content 418 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/accessibility/renderer_accessibility.cc ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698