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

Side by Side Diff: content/renderer/renderer_accessibility.cc

Issue 8351010: Pass the right notification enum to WebAccessibility::DebugString. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "base/command_line.h" 5 #include "base/command_line.h"
6 #include "content/common/view_messages.h" 6 #include "content/common/view_messages.h"
7 #include "content/public/common/content_switches.h" 7 #include "content/public/common/content_switches.h"
8 #include "content/renderer/render_view_impl.h" 8 #include "content/renderer/render_view_impl.h"
9 #include "content/renderer/renderer_accessibility.h" 9 #include "content/renderer/renderer_accessibility.h"
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAccessibilityObjec t.h" 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAccessibilityObjec t.h"
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 notifications.push_back(param); 276 notifications.push_back(param);
277 277
278 if (includes_children) 278 if (includes_children)
279 UpdateBrowserTree(param.acc_tree); 279 UpdateBrowserTree(param.acc_tree);
280 280
281 #ifndef NDEBUG 281 #ifndef NDEBUG
282 if (logging_) { 282 if (logging_) {
283 LOG(INFO) << "Accessibility update: " 283 LOG(INFO) << "Accessibility update: "
284 << param.acc_tree.DebugString(true, 284 << param.acc_tree.DebugString(true,
285 routing_id(), 285 routing_id(),
286 param.notification_type); 286 notification.type);
287 } 287 }
288 #endif 288 #endif
289 } 289 }
290 pending_notifications_.clear(); 290 pending_notifications_.clear();
291 Send(new ViewHostMsg_AccessibilityNotifications(routing_id(), notifications)); 291 Send(new ViewHostMsg_AccessibilityNotifications(routing_id(), notifications));
292 ack_pending_ = true; 292 ack_pending_ = true;
293 } 293 }
294 294
295 void RendererAccessibility::UpdateBrowserTree( 295 void RendererAccessibility::UpdateBrowserTree(
296 const webkit_glue::WebAccessibility& renderer_node) { 296 const webkit_glue::WebAccessibility& renderer_node) {
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 425
426 WebDocument RendererAccessibility::GetMainDocument() { 426 WebDocument RendererAccessibility::GetMainDocument() {
427 WebView* view = render_view()->GetWebView(); 427 WebView* view = render_view()->GetWebView();
428 WebFrame* main_frame = view ? view->mainFrame() : NULL; 428 WebFrame* main_frame = view ? view->mainFrame() : NULL;
429 429
430 if (main_frame) 430 if (main_frame)
431 return main_frame->document(); 431 return main_frame->document();
432 else 432 else
433 return WebDocument(); 433 return WebDocument();
434 } 434 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698