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

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

Issue 177863007: Replace WebDocument::clearfocusedNode to clearFocusedElement (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased with latest Created 6 years, 9 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/public/browser/render_view_host.h ('k') | content/renderer/render_view_browsertest.cc » ('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 #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 598 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 if (root.isDetached()) { 609 if (root.isDetached()) {
610 #ifndef NDEBUG 610 #ifndef NDEBUG
611 LOG(WARNING) << "OnSetAccessibilityFocus but root is invalid"; 611 LOG(WARNING) << "OnSetAccessibilityFocus but root is invalid";
612 #endif 612 #endif
613 return; 613 return;
614 } 614 }
615 615
616 // By convention, calling SetFocus on the root of the tree should clear the 616 // By convention, calling SetFocus on the root of the tree should clear the
617 // current focus. Otherwise set the focus to the new node. 617 // current focus. Otherwise set the focus to the new node.
618 if (acc_obj_id == root.axID()) 618 if (acc_obj_id == root.axID())
619 render_view()->GetWebView()->clearFocusedNode(); 619 render_view()->GetWebView()->clearFocusedElement();
620 else 620 else
621 obj.setFocused(true); 621 obj.setFocused(true);
622 } 622 }
623 623
624 void RendererAccessibilityComplete::OnFatalError() { 624 void RendererAccessibilityComplete::OnFatalError() {
625 CHECK(false) << "Invalid accessibility tree."; 625 CHECK(false) << "Invalid accessibility tree.";
626 } 626 }
627 627
628 } // namespace content 628 } // namespace content
OLDNEW
« no previous file with comments | « content/public/browser/render_view_host.h ('k') | content/renderer/render_view_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698