| 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/dump_accessibility_tree_helper.h" | 5 #include "content/browser/accessibility/dump_accessibility_tree_helper.h" |
| 6 | 6 |
| 7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
| 8 | 8 |
| 9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 Add(false, Format(node, "url='", @selector(url), "'")); | 105 Add(false, Format(node, "url='", @selector(url), "'")); |
| 106 Add(false, Format(node, "visibleCharacterRange='", | 106 Add(false, Format(node, "visibleCharacterRange='", |
| 107 @selector(visibleCharacterRange), "'")); | 107 @selector(visibleCharacterRange), "'")); |
| 108 Add(false, Format(node, "visited='", @selector(visited), "'")); | 108 Add(false, Format(node, "visited='", @selector(visited), "'")); |
| 109 Add(false, FormatPosition(node)); | 109 Add(false, FormatPosition(node)); |
| 110 Add(false, FormatSize(node)); | 110 Add(false, FormatSize(node)); |
| 111 | 111 |
| 112 return ASCIIToUTF16(prefix) + FinishLine() + ASCIIToUTF16("\n"); | 112 return ASCIIToUTF16(prefix) + FinishLine() + ASCIIToUTF16("\n"); |
| 113 } | 113 } |
| 114 | 114 |
| 115 // static |
| 115 const base::FilePath::StringType | 116 const base::FilePath::StringType |
| 116 DumpAccessibilityTreeHelper::GetActualFileSuffix() | 117 DumpAccessibilityTreeHelper::GetActualFileSuffix() { |
| 117 const { | |
| 118 return FILE_PATH_LITERAL("-actual-mac.txt"); | 118 return FILE_PATH_LITERAL("-actual-mac.txt"); |
| 119 } | 119 } |
| 120 | 120 |
| 121 // static |
| 121 const base::FilePath::StringType | 122 const base::FilePath::StringType |
| 122 DumpAccessibilityTreeHelper::GetExpectedFileSuffix() | 123 DumpAccessibilityTreeHelper::GetExpectedFileSuffix() { |
| 123 const { | |
| 124 return FILE_PATH_LITERAL("-expected-mac.txt"); | 124 return FILE_PATH_LITERAL("-expected-mac.txt"); |
| 125 } | 125 } |
| 126 | 126 |
| 127 const std::string DumpAccessibilityTreeHelper::GetAllowEmptyString() const { | 127 // static |
| 128 const std::string DumpAccessibilityTreeHelper::GetAllowEmptyString() { |
| 128 return "@MAC-ALLOW-EMPTY:"; | 129 return "@MAC-ALLOW-EMPTY:"; |
| 129 } | 130 } |
| 130 | 131 |
| 131 const std::string DumpAccessibilityTreeHelper::GetAllowString() const { | 132 // static |
| 133 const std::string DumpAccessibilityTreeHelper::GetAllowString() { |
| 132 return "@MAC-ALLOW:"; | 134 return "@MAC-ALLOW:"; |
| 133 } | 135 } |
| 134 | 136 |
| 135 const std::string DumpAccessibilityTreeHelper::GetDenyString() const { | 137 // static |
| 138 const std::string DumpAccessibilityTreeHelper::GetDenyString() { |
| 136 return "@MAC-DENY:"; | 139 return "@MAC-DENY:"; |
| 137 } | 140 } |
| 138 | 141 |
| 139 } // namespace content | 142 } // namespace content |
| OLD | NEW |