| 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/file_path.h" | 9 #include "base/file_path.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 string16 DumpAccessibilityTreeHelper::ToString(BrowserAccessibility* node, | 31 string16 DumpAccessibilityTreeHelper::ToString(BrowserAccessibility* node, |
| 32 char* prefix) { | 32 char* prefix) { |
| 33 StartLine(); | 33 StartLine(); |
| 34 Add(true, Format(node, "", @selector(role), "")); | 34 Add(true, Format(node, "", @selector(role), "")); |
| 35 Add(false, Format(node, "subrole=", @selector(subrole), "")); | 35 Add(false, Format(node, "subrole=", @selector(subrole), "")); |
| 36 Add(false, Format(node, "roleDescription='", | 36 Add(false, Format(node, "roleDescription='", |
| 37 @selector(roleDescription), | 37 @selector(roleDescription), |
| 38 "'")); | 38 "'")); |
| 39 Add(true, Format(node, "title='", @selector(title), "'")); | 39 Add(true, Format(node, "title='", @selector(title), "'")); |
| 40 Add(true, Format(node, "value='", @selector(value), "'")); | 40 Add(true, Format(node, "value='", @selector(value), "'")); |
| 41 Add(false, Format(node, "minValue='", @selector(minValue), "'")); |
| 42 Add(false, Format(node, "maxValue='", @selector(maxValue), "'")); |
| 43 Add(false, Format(node, "valueDescription='", @selector(valueDescription), |
| 44 "'")); |
| 41 Add(false, Format(node, "description='", @selector(description), "'")); | 45 Add(false, Format(node, "description='", @selector(description), "'")); |
| 42 Add(false, Format(node, "help='", @selector(help), "'")); | 46 Add(false, Format(node, "help='", @selector(help), "'")); |
| 47 Add(false, Format(node, "invalid='", @selector(invalid), "'")); |
| 43 return ASCIIToUTF16(prefix) + FinishLine() + ASCIIToUTF16("\n"); | 48 return ASCIIToUTF16(prefix) + FinishLine() + ASCIIToUTF16("\n"); |
| 44 } | 49 } |
| 45 | 50 |
| 46 const FilePath::StringType DumpAccessibilityTreeHelper::GetActualFileSuffix() | 51 const FilePath::StringType DumpAccessibilityTreeHelper::GetActualFileSuffix() |
| 47 const { | 52 const { |
| 48 return FILE_PATH_LITERAL("-actual-mac.txt"); | 53 return FILE_PATH_LITERAL("-actual-mac.txt"); |
| 49 } | 54 } |
| 50 | 55 |
| 51 const FilePath::StringType DumpAccessibilityTreeHelper::GetExpectedFileSuffix() | 56 const FilePath::StringType DumpAccessibilityTreeHelper::GetExpectedFileSuffix() |
| 52 const { | 57 const { |
| 53 return FILE_PATH_LITERAL("-expected-mac.txt"); | 58 return FILE_PATH_LITERAL("-expected-mac.txt"); |
| 54 } | 59 } |
| 55 | 60 |
| 56 const std::string DumpAccessibilityTreeHelper::GetAllowString() const { | 61 const std::string DumpAccessibilityTreeHelper::GetAllowString() const { |
| 57 return "@MAC-ALLOW:"; | 62 return "@MAC-ALLOW:"; |
| 58 } | 63 } |
| 59 | 64 |
| 60 const std::string DumpAccessibilityTreeHelper::GetDenyString() const { | 65 const std::string DumpAccessibilityTreeHelper::GetDenyString() const { |
| 61 return "@MAC-DENY:"; | 66 return "@MAC-DENY:"; |
| 62 } | 67 } |
| 63 | 68 |
| 64 } // namespace content | 69 } // namespace content |
| OLD | NEW |