| 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 <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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 if ((*it)->GetAsString(&state_value)) | 67 if ((*it)->GetAsString(&state_value)) |
| 68 WriteAttribute(true, state_value, &line); | 68 WriteAttribute(true, state_value, &line); |
| 69 } | 69 } |
| 70 | 70 |
| 71 int id_value; | 71 int id_value; |
| 72 node.GetInteger("id", &id_value); | 72 node.GetInteger("id", &id_value); |
| 73 WriteAttribute(false, | 73 WriteAttribute(false, |
| 74 base::StringPrintf("id=%d", id_value), | 74 base::StringPrintf("id=%d", id_value), |
| 75 &line); | 75 &line); |
| 76 | 76 |
| 77 return indent + line + ASCIIToUTF16("\n"); | 77 return indent + line + base::ASCIIToUTF16("\n"); |
| 78 } | 78 } |
| 79 | 79 |
| 80 void AccessibilityTreeFormatter::Initialize() {} | 80 void AccessibilityTreeFormatter::Initialize() {} |
| 81 | 81 |
| 82 // static | 82 // static |
| 83 const base::FilePath::StringType | 83 const base::FilePath::StringType |
| 84 AccessibilityTreeFormatter::GetActualFileSuffix() { | 84 AccessibilityTreeFormatter::GetActualFileSuffix() { |
| 85 return FILE_PATH_LITERAL("-actual-gtk.txt"); | 85 return FILE_PATH_LITERAL("-actual-gtk.txt"); |
| 86 } | 86 } |
| 87 | 87 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 100 const std::string AccessibilityTreeFormatter::GetAllowString() { | 100 const std::string AccessibilityTreeFormatter::GetAllowString() { |
| 101 return "@GTK-ALLOW:"; | 101 return "@GTK-ALLOW:"; |
| 102 } | 102 } |
| 103 | 103 |
| 104 // static | 104 // static |
| 105 const std::string AccessibilityTreeFormatter::GetDenyString() { | 105 const std::string AccessibilityTreeFormatter::GetDenyString() { |
| 106 return "@GTK-DENY:"; | 106 return "@GTK-DENY:"; |
| 107 } | 107 } |
| 108 | 108 |
| 109 } | 109 } |
| OLD | NEW |