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 #ifndef CONTENT_BROWSER_ACCESSIBILITY_ACCESSIBILITY_TREE_FORMATTER_H_ | 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_ACCESSIBILITY_TREE_FORMATTER_H_ |
6 #define CONTENT_BROWSER_ACCESSIBILITY_ACCESSIBILITY_TREE_FORMATTER_H_ | 6 #define CONTENT_BROWSER_ACCESSIBILITY_ACCESSIBILITY_TREE_FORMATTER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 // "children": [ { /* list of children created recursively */ | 66 // "children": [ { /* list of children created recursively */ |
67 // "AXName": "child node 1", | 67 // "AXName": "child node 1", |
68 // /* ... more attributes */ | 68 // /* ... more attributes */ |
69 // "children": [ ] | 69 // "children": [ ] |
70 // }, { | 70 // }, { |
71 // "AXName": "child name 2", | 71 // "AXName": "child name 2", |
72 // /* ... more attributes */ | 72 // /* ... more attributes */ |
73 // "children": [ ] | 73 // "children": [ ] |
74 // } ] | 74 // } ] |
75 // } | 75 // } |
76 scoped_ptr<base::DictionaryValue> BuildAccessibilityTree( | 76 std::unique_ptr<base::DictionaryValue> BuildAccessibilityTree( |
77 BrowserAccessibility* root); | 77 BrowserAccessibility* root); |
78 | 78 |
79 // Dumps a BrowserAccessibility tree into a string. | 79 // Dumps a BrowserAccessibility tree into a string. |
80 void FormatAccessibilityTree( | 80 void FormatAccessibilityTree( |
81 BrowserAccessibility* root, base::string16* contents); | 81 BrowserAccessibility* root, base::string16* contents); |
82 | 82 |
83 // Set regular expression filters that apply to each component of every | 83 // Set regular expression filters that apply to each component of every |
84 // line before it's output. | 84 // line before it's output. |
85 void SetFilters(const std::vector<Filter>& filters); | 85 void SetFilters(const std::vector<Filter>& filters); |
86 | 86 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 | 165 |
166 // Whether or not node ids should be included in the dump. | 166 // Whether or not node ids should be included in the dump. |
167 bool show_ids_; | 167 bool show_ids_; |
168 | 168 |
169 DISALLOW_COPY_AND_ASSIGN(AccessibilityTreeFormatter); | 169 DISALLOW_COPY_AND_ASSIGN(AccessibilityTreeFormatter); |
170 }; | 170 }; |
171 | 171 |
172 } // namespace content | 172 } // namespace content |
173 | 173 |
174 #endif // CONTENT_BROWSER_ACCESSIBILITY_ACCESSIBILITY_TREE_FORMATTER_H_ | 174 #endif // CONTENT_BROWSER_ACCESSIBILITY_ACCESSIBILITY_TREE_FORMATTER_H_ |
OLD | NEW |