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 #include "content/browser/accessibility/accessibility_tree_formatter.h" | 5 #include "content/browser/accessibility/accessibility_tree_formatter.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/strings/pattern.h" | 9 #include "base/strings/pattern.h" |
10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 const base::DictionaryValue& node) { | 108 const base::DictionaryValue& node) { |
109 int id_value; | 109 int id_value; |
110 node.GetInteger("id", &id_value); | 110 node.GetInteger("id", &id_value); |
111 return base::IntToString16(id_value); | 111 return base::IntToString16(id_value); |
112 } | 112 } |
113 | 113 |
114 void AccessibilityTreeFormatter::Initialize() {} | 114 void AccessibilityTreeFormatter::Initialize() {} |
115 | 115 |
116 // static | 116 // static |
117 const base::FilePath::StringType | 117 const base::FilePath::StringType |
118 AccessibilityTreeFormatter::GetActualFileSuffix() { | |
119 return base::FilePath::StringType(); | |
120 } | |
121 | |
122 // static | |
123 const base::FilePath::StringType | |
124 AccessibilityTreeFormatter::GetExpectedFileSuffix() { | 118 AccessibilityTreeFormatter::GetExpectedFileSuffix() { |
125 return base::FilePath::StringType(); | 119 return base::FilePath::StringType(); |
126 } | 120 } |
127 | 121 |
128 // static | 122 // static |
129 const std::string AccessibilityTreeFormatter::GetAllowEmptyString() { | 123 const std::string AccessibilityTreeFormatter::GetAllowEmptyString() { |
130 return std::string(); | 124 return std::string(); |
131 } | 125 } |
132 | 126 |
133 // static | 127 // static |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 if (attr.empty()) | 186 if (attr.empty()) |
193 return; | 187 return; |
194 if (!MatchesFilters(attr, include_by_default)) | 188 if (!MatchesFilters(attr, include_by_default)) |
195 return; | 189 return; |
196 if (!line->empty()) | 190 if (!line->empty()) |
197 *line += base::ASCIIToUTF16(" "); | 191 *line += base::ASCIIToUTF16(" "); |
198 *line += attr; | 192 *line += attr; |
199 } | 193 } |
200 | 194 |
201 } // namespace content | 195 } // namespace content |
OLD | NEW |