OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 <string> | 7 #include <string> |
8 | 8 |
9 #include "base/android/jni_android.h" | 9 #include "base/android/jni_android.h" |
10 #include "base/android/jni_string.h" | 10 #include "base/android/jni_string.h" |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 WriteAttribute(true, | 172 WriteAttribute(true, |
173 StringPrintf("%s=%d", attribute_name, value), | 173 StringPrintf("%s=%d", attribute_name, value), |
174 &line); | 174 &line); |
175 } | 175 } |
176 | 176 |
177 return line; | 177 return line; |
178 } | 178 } |
179 | 179 |
180 // static | 180 // static |
181 const base::FilePath::StringType | 181 const base::FilePath::StringType |
182 AccessibilityTreeFormatter::GetActualFileSuffix() { | |
183 return FILE_PATH_LITERAL("-actual-android.txt"); | |
184 } | |
185 | |
186 // static | |
187 const base::FilePath::StringType | |
188 AccessibilityTreeFormatter::GetExpectedFileSuffix() { | 182 AccessibilityTreeFormatter::GetExpectedFileSuffix() { |
189 return FILE_PATH_LITERAL("-expected-android.txt"); | 183 return FILE_PATH_LITERAL("-expected-android.txt"); |
190 } | 184 } |
191 | 185 |
192 // static | 186 // static |
193 const std::string AccessibilityTreeFormatter::GetAllowEmptyString() { | 187 const std::string AccessibilityTreeFormatter::GetAllowEmptyString() { |
194 return "@ANDROID-ALLOW-EMPTY:"; | 188 return "@ANDROID-ALLOW-EMPTY:"; |
195 } | 189 } |
196 | 190 |
197 // static | 191 // static |
198 const std::string AccessibilityTreeFormatter::GetAllowString() { | 192 const std::string AccessibilityTreeFormatter::GetAllowString() { |
199 return "@ANDROID-ALLOW:"; | 193 return "@ANDROID-ALLOW:"; |
200 } | 194 } |
201 | 195 |
202 // static | 196 // static |
203 const std::string AccessibilityTreeFormatter::GetDenyString() { | 197 const std::string AccessibilityTreeFormatter::GetDenyString() { |
204 return "@ANDROID-DENY:"; | 198 return "@ANDROID-DENY:"; |
205 } | 199 } |
206 | 200 |
207 } // namespace content | 201 } // namespace content |
OLD | NEW |