OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "views/debug_utils.h" | 5 #include "views/debug_utils.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 #include "views/view.h" | 9 #include "views/view.h" |
10 | 10 |
11 #ifndef NDEBUG | 11 #ifndef NDEBUG |
12 #include <iostream> | 12 #include <ostream> |
13 #endif | 13 #endif |
14 | 14 |
15 namespace views { | 15 namespace views { |
16 | 16 |
17 #ifndef NDEBUG | 17 #ifndef NDEBUG |
18 | 18 |
19 namespace { | 19 namespace { |
20 void PrintViewHierarchyImp(const View* view, int indent) { | 20 void PrintViewHierarchyImp(const View* view, int indent) { |
21 std::wostringstream buf; | 21 std::wostringstream buf; |
22 int ind = indent; | 22 int ind = indent; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 PrintViewHierarchyImp(view, 0); | 67 PrintViewHierarchyImp(view, 0); |
68 } | 68 } |
69 | 69 |
70 void PrintFocusHierarchy(const View* view) { | 70 void PrintFocusHierarchy(const View* view) { |
71 PrintFocusHierarchyImp(view, 0); | 71 PrintFocusHierarchyImp(view, 0); |
72 } | 72 } |
73 | 73 |
74 } // namespace views | 74 } // namespace views |
75 | 75 |
76 #endif // NDEBUG | 76 #endif // NDEBUG |
OLD | NEW |