OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/browser_accessibility_event.h" | 5 #include "content/browser/accessibility/browser_accessibility_event.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
10 #include "content/browser/accessibility/browser_accessibility.h" | 10 #include "content/browser/accessibility/browser_accessibility.h" |
11 #include "content/browser/accessibility/browser_accessibility_manager.h" | 11 #include "content/browser/accessibility/browser_accessibility_manager.h" |
| 12 #include "ui/accessibility/ax_enums.h" |
12 | 13 |
13 namespace content { | 14 namespace content { |
14 | 15 |
15 namespace { | 16 namespace { |
16 std::string ReplaceNewlines(std::string str) { | 17 std::string ReplaceNewlines(std::string str) { |
17 std::string result; | 18 std::string result; |
18 base::ReplaceChars(str, "\n", "\\n", &result); | 19 base::ReplaceChars(str, "\n", "\\n", &result); |
19 return result; | 20 return result; |
20 } | 21 } |
21 } // namespace | 22 } // namespace |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 << " " << event_name | 141 << " " << event_name |
141 << " result=" << result_str | 142 << " result=" << result_str |
142 << " source=" << source_str | 143 << " source=" << source_str |
143 << " unique_id=" << target_->unique_id() | 144 << " unique_id=" << target_->unique_id() |
144 << " target=[[" | 145 << " target=[[" |
145 << ReplaceNewlines(target_->GetData().ToString()) << "]]" | 146 << ReplaceNewlines(target_->GetData().ToString()) << "]]" |
146 << original_target_str; | 147 << original_target_str; |
147 } | 148 } |
148 | 149 |
149 } // namespace content | 150 } // namespace content |
OLD | NEW |