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

Side by Side Diff: content/browser/accessibility/accessibility_tree_formatter.h

Issue 1874893002: Convert //content/browser from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | content/browser/accessibility/accessibility_tree_formatter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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
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
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_
OLDNEW
« no previous file with comments | « no previous file | content/browser/accessibility/accessibility_tree_formatter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698