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

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

Issue 284203005: Get rid of enable-accessibility-logging switch. (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
« no previous file with comments | « content/renderer/accessibility/renderer_accessibility.cc ('k') | no next file » | 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 #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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 event_msg.event_type = event.event_type; 199 event_msg.event_type = event.event_type;
200 event_msg.id = event.id; 200 event_msg.id = event.id;
201 serializer_.SerializeChanges(obj, &event_msg.update); 201 serializer_.SerializeChanges(obj, &event_msg.update);
202 event_msgs.push_back(event_msg); 202 event_msgs.push_back(event_msg);
203 203
204 #ifndef NDEBUG 204 VLOG(0) << "Accessibility event: " << ui::ToString(event.event_type)
205 VLOG(0) << "Accessibility update: \n" 205 << " on node id " << event_msg.id
206 << "routing id=" << routing_id()
207 << " event="
208 << AccessibilityEventToString(event.event_type)
209 << "\n" << event_msg.update.ToString(); 206 << "\n" << event_msg.update.ToString();
210 #endif
211 } 207 }
212 208
213 Send(new AccessibilityHostMsg_Events(routing_id(), event_msgs)); 209 Send(new AccessibilityHostMsg_Events(routing_id(), event_msgs));
214 210
215 SendLocationChanges(); 211 SendLocationChanges();
216 } 212 }
217 213
218 void RendererAccessibilityComplete::SendLocationChanges() { 214 void RendererAccessibilityComplete::SendLocationChanges() {
219 std::vector<AccessibilityHostMsg_LocationChangeParams> messages; 215 std::vector<AccessibilityHostMsg_LocationChangeParams> messages;
220 216
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 render_view()->GetWebView()->clearFocusedElement(); 371 render_view()->GetWebView()->clearFocusedElement();
376 else 372 else
377 obj.setFocused(true); 373 obj.setFocused(true);
378 } 374 }
379 375
380 void RendererAccessibilityComplete::OnFatalError() { 376 void RendererAccessibilityComplete::OnFatalError() {
381 CHECK(false) << "Invalid accessibility tree."; 377 CHECK(false) << "Invalid accessibility tree.";
382 } 378 }
383 379
384 } // namespace content 380 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/accessibility/renderer_accessibility.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698