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

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

Issue 268543008: Cross-process iframe accessibility. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 189
190 // When we get a "selected children changed" event, Blink 190 // When we get a "selected children changed" event, Blink
191 // doesn't also send us events for each child that changed 191 // doesn't also send us events for each child that changed
192 // selection state, so make sure we re-send that whole subtree. 192 // selection state, so make sure we re-send that whole subtree.
193 if (event.event_type == 193 if (event.event_type ==
194 ui::AX_EVENT_SELECTED_CHILDREN_CHANGED) { 194 ui::AX_EVENT_SELECTED_CHILDREN_CHANGED) {
195 serializer_.DeleteClientSubtree(obj); 195 serializer_.DeleteClientSubtree(obj);
196 } 196 }
197 197
198 AccessibilityHostMsg_EventParams event_msg; 198 AccessibilityHostMsg_EventParams event_msg;
199 tree_source_.CollectChildFrameIdMapping(
ncarter (slow) 2014/05/02 19:10:02 When the method SendPendingAccessibilityEvents ret
200 &event_msg.guest_instance_ids,
201 &event_msg.frame_routing_ids);
199 event_msg.event_type = event.event_type; 202 event_msg.event_type = event.event_type;
200 event_msg.id = event.id; 203 event_msg.id = event.id;
201 serializer_.SerializeChanges(obj, &event_msg.update); 204 serializer_.SerializeChanges(obj, &event_msg.update);
202 event_msgs.push_back(event_msg); 205 event_msgs.push_back(event_msg);
203 206
204 #ifndef NDEBUG 207 #ifndef NDEBUG
205 VLOG(0) << "Accessibility update: \n" 208 VLOG(0) << "Accessibility update: \n"
206 << "routing id=" << routing_id() 209 << "routing id=" << routing_id()
207 << " event=" 210 << " event="
208 << AccessibilityEventToString(event.event_type) 211 << AccessibilityEventToString(event.event_type)
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 render_view()->GetWebView()->clearFocusedElement(); 378 render_view()->GetWebView()->clearFocusedElement();
376 else 379 else
377 obj.setFocused(true); 380 obj.setFocused(true);
378 } 381 }
379 382
380 void RendererAccessibilityComplete::OnFatalError() { 383 void RendererAccessibilityComplete::OnFatalError() {
381 CHECK(false) << "Invalid accessibility tree."; 384 CHECK(false) << "Invalid accessibility tree.";
382 } 385 }
383 386
384 } // namespace content 387 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698