| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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 <atk/atk.h> | 7 #include <atk/atk.h> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 WriteAttribute(false, base::StringPrintf("id=%d", id_value), &line); | 72 WriteAttribute(false, base::StringPrintf("id=%d", id_value), &line); |
| 73 | 73 |
| 74 return line + base::ASCIIToUTF16("\n"); | 74 return line + base::ASCIIToUTF16("\n"); |
| 75 } | 75 } |
| 76 | 76 |
| 77 void AccessibilityTreeFormatter::Initialize() { | 77 void AccessibilityTreeFormatter::Initialize() { |
| 78 } | 78 } |
| 79 | 79 |
| 80 // static | 80 // static |
| 81 const base::FilePath::StringType | 81 const base::FilePath::StringType |
| 82 AccessibilityTreeFormatter::GetActualFileSuffix() { | |
| 83 return FILE_PATH_LITERAL("-actual-auralinux.txt"); | |
| 84 } | |
| 85 | |
| 86 // static | |
| 87 const base::FilePath::StringType | |
| 88 AccessibilityTreeFormatter::GetExpectedFileSuffix() { | 82 AccessibilityTreeFormatter::GetExpectedFileSuffix() { |
| 89 return FILE_PATH_LITERAL("-expected-auralinux.txt"); | 83 return FILE_PATH_LITERAL("-expected-auralinux.txt"); |
| 90 } | 84 } |
| 91 | 85 |
| 92 // static | 86 // static |
| 93 const std::string AccessibilityTreeFormatter::GetAllowEmptyString() { | 87 const std::string AccessibilityTreeFormatter::GetAllowEmptyString() { |
| 94 return "@AURALINUX-ALLOW-EMPTY:"; | 88 return "@AURALINUX-ALLOW-EMPTY:"; |
| 95 } | 89 } |
| 96 | 90 |
| 97 // static | 91 // static |
| 98 const std::string AccessibilityTreeFormatter::GetAllowString() { | 92 const std::string AccessibilityTreeFormatter::GetAllowString() { |
| 99 return "@AURALINUX-ALLOW:"; | 93 return "@AURALINUX-ALLOW:"; |
| 100 } | 94 } |
| 101 | 95 |
| 102 // static | 96 // static |
| 103 const std::string AccessibilityTreeFormatter::GetDenyString() { | 97 const std::string AccessibilityTreeFormatter::GetDenyString() { |
| 104 return "@AURALINUX-DENY:"; | 98 return "@AURALINUX-DENY:"; |
| 105 } | 99 } |
| 106 } | 100 } |
| OLD | NEW |