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

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

Issue 222973003: Conversion of content_shell target to use WebLocalFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed rebase Created 6 years, 8 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
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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698