OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/ui/aura/accessibility/ax_tree_source_aura.h" | 5 #include "chrome/browser/ui/aura/accessibility/ax_tree_source_aura.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "chrome/browser/ui/aura/accessibility/automation_manager_aura.h" | 11 #include "chrome/browser/ui/aura/accessibility/automation_manager_aura.h" |
12 #include "content/public/browser/render_frame_host.h" | 12 #include "content/public/browser/render_frame_host.h" |
13 #include "content/public/browser/render_process_host.h" | 13 #include "content/public/browser/render_process_host.h" |
14 #include "content/public/browser/web_contents.h" | 14 #include "content/public/browser/web_contents.h" |
15 #include "ui/views/accessibility/ax_aura_obj_cache.h" | 15 #include "ui/views/accessibility/ax_aura_obj_cache.h" |
16 #include "ui/views/accessibility/ax_aura_obj_wrapper.h" | 16 #include "ui/views/accessibility/ax_aura_obj_wrapper.h" |
17 #include "ui/views/accessibility/ax_view_obj_wrapper.h" | 17 #include "ui/views/accessibility/ax_view_obj_wrapper.h" |
18 #include "ui/views/controls/webview/webview.h" | 18 |
| 19 #if defined(TOOLKIT_VIEWS) |
| 20 #include "ui/views/controls/webview/webview.h" // nogncheck |
| 21 #endif |
19 | 22 |
20 using views::AXAuraObjCache; | 23 using views::AXAuraObjCache; |
21 using views::AXAuraObjWrapper; | 24 using views::AXAuraObjWrapper; |
22 | 25 |
23 AXTreeSourceAura::AXTreeSourceAura() { | 26 AXTreeSourceAura::AXTreeSourceAura() { |
24 root_.reset(new AXRootObjWrapper(AXAuraObjCache::GetInstance()->GetNextID())); | 27 root_.reset(new AXRootObjWrapper(AXAuraObjCache::GetInstance()->GetNextID())); |
25 } | 28 } |
26 | 29 |
27 AXTreeSourceAura::~AXTreeSourceAura() { | 30 AXTreeSourceAura::~AXTreeSourceAura() { |
28 root_.reset(); | 31 root_.reset(); |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 | 138 |
136 std::vector<AXAuraObjWrapper*> children; | 139 std::vector<AXAuraObjWrapper*> children; |
137 root->GetChildren(&children); | 140 root->GetChildren(&children); |
138 | 141 |
139 prefix += prefix[0]; | 142 prefix += prefix[0]; |
140 for (size_t i = 0; i < children.size(); ++i) | 143 for (size_t i = 0; i < children.size(); ++i) |
141 output += ToString(children[i], prefix); | 144 output += ToString(children[i], prefix); |
142 | 145 |
143 return output; | 146 return output; |
144 } | 147 } |
OLD | NEW |