| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |