| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 if (document.isNull()) | 85 if (document.isNull()) |
| 86 return; | 86 return; |
| 87 | 87 |
| 88 if (node.isNull()) { | 88 if (node.isNull()) { |
| 89 // When focus is cleared, implicitly focus the document. | 89 // When focus is cleared, implicitly focus the document. |
| 90 // TODO(dmazzoni): Make Blink send this notification instead. | 90 // TODO(dmazzoni): Make Blink send this notification instead. |
| 91 HandleAXEvent(document.accessibilityObject(), ui::AX_EVENT_BLUR); | 91 HandleAXEvent(document.accessibilityObject(), ui::AX_EVENT_BLUR); |
| 92 } | 92 } |
| 93 } | 93 } |
| 94 | 94 |
| 95 void RendererAccessibilityComplete::DidFinishLoad(blink::WebFrame* frame) { | 95 void RendererAccessibilityComplete::DidFinishLoad(blink::WebLocalFrame* frame) { |
| 96 const WebDocument& document = GetMainDocument(); | 96 const WebDocument& document = GetMainDocument(); |
| 97 if (document.isNull()) | 97 if (document.isNull()) |
| 98 return; | 98 return; |
| 99 } | 99 } |
| 100 | 100 |
| 101 | 101 |
| 102 void RendererAccessibilityComplete::HandleWebAccessibilityEvent( | 102 void RendererAccessibilityComplete::HandleWebAccessibilityEvent( |
| 103 const blink::WebAXObject& obj, blink::WebAXEvent event) { | 103 const blink::WebAXObject& obj, blink::WebAXEvent event) { |
| 104 HandleAXEvent(obj, AXEventFromBlink(event)); | 104 HandleAXEvent(obj, AXEventFromBlink(event)); |
| 105 } | 105 } |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 render_view()->GetWebView()->clearFocusedElement(); | 382 render_view()->GetWebView()->clearFocusedElement(); |
| 383 else | 383 else |
| 384 obj.setFocused(true); | 384 obj.setFocused(true); |
| 385 } | 385 } |
| 386 | 386 |
| 387 void RendererAccessibilityComplete::OnFatalError() { | 387 void RendererAccessibilityComplete::OnFatalError() { |
| 388 CHECK(false) << "Invalid accessibility tree."; | 388 CHECK(false) << "Invalid accessibility tree."; |
| 389 } | 389 } |
| 390 | 390 |
| 391 } // namespace content | 391 } // namespace content |
| OLD | NEW |