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/accessibility_tree_formatter.h" | 5 #include "content/browser/accessibility/accessibility_tree_formatter.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/string_util.h" | |
10 #include "base/stringprintf.h" | |
11 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
| 10 #include "base/strings/string_util.h" |
| 11 #include "base/strings/stringprintf.h" |
12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
13 #include "content/browser/accessibility/browser_accessibility_manager.h" | 13 #include "content/browser/accessibility/browser_accessibility_manager.h" |
14 #include "content/port/browser/render_widget_host_view_port.h" | 14 #include "content/port/browser/render_widget_host_view_port.h" |
15 #include "content/public/browser/render_view_host.h" | 15 #include "content/public/browser/render_view_host.h" |
16 #include "content/public/browser/web_contents.h" | 16 #include "content/public/browser/web_contents.h" |
17 | 17 |
18 namespace content { | 18 namespace content { |
19 namespace { | 19 namespace { |
20 const int kIndentSpaces = 4; | 20 const int kIndentSpaces = 4; |
21 const char* kSkipString = "@NO_DUMP"; | 21 const char* kSkipString = "@NO_DUMP"; |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 if (attr.empty()) | 176 if (attr.empty()) |
177 return; | 177 return; |
178 if (!MatchesFilters(attr, include_by_default)) | 178 if (!MatchesFilters(attr, include_by_default)) |
179 return; | 179 return; |
180 if (!line->empty()) | 180 if (!line->empty()) |
181 *line += ASCIIToUTF16(" "); | 181 *line += ASCIIToUTF16(" "); |
182 *line += attr; | 182 *line += attr; |
183 } | 183 } |
184 | 184 |
185 } // namespace content | 185 } // namespace content |
OLD | NEW |