OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/browser_accessibility_manager_win.h" | 5 #include "chrome/browser/browser_accessibility_manager_win.h" |
6 | 6 |
7 #include "base/scoped_comptr_win.h" | |
8 #include "chrome/browser/browser_accessibility_win.h" | 7 #include "chrome/browser/browser_accessibility_win.h" |
9 #include "chrome/browser/renderer_host/render_process_host.h" | 8 #include "chrome/browser/renderer_host/render_process_host.h" |
10 #include "chrome/browser/renderer_host/render_view_host.h" | 9 #include "chrome/browser/renderer_host/render_view_host.h" |
11 #include "chrome/common/render_messages.h" | 10 #include "chrome/common/render_messages.h" |
12 | 11 |
13 using webkit_glue::WebAccessibility; | 12 using webkit_glue::WebAccessibility; |
14 | 13 |
15 // Factory method to create an instance of BrowserAccessibility | 14 // Factory method to create an instance of BrowserAccessibility |
16 BrowserAccessibility* BrowserAccessibilityFactory::Create() { | 15 BrowserAccessibility* BrowserAccessibilityFactory::Create() { |
17 CComObject<BrowserAccessibility>* instance; | 16 CComObject<BrowserAccessibility>* instance; |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 if ((src.state >> WebAccessibility::STATE_FOCUSED) & 1) | 141 if ((src.state >> WebAccessibility::STATE_FOCUSED) & 1) |
143 focus_ = instance; | 142 focus_ = instance; |
144 for (int i = 0; i < static_cast<int>(src.children.size()); ++i) { | 143 for (int i = 0; i < static_cast<int>(src.children.size()); ++i) { |
145 BrowserAccessibility* child = CreateAccessibilityTree( | 144 BrowserAccessibility* child = CreateAccessibilityTree( |
146 instance, src.children[i], i); | 145 instance, src.children[i], i); |
147 instance->AddChild(child); | 146 instance->AddChild(child); |
148 } | 147 } |
149 | 148 |
150 return instance; | 149 return instance; |
151 } | 150 } |
OLD | NEW |