[email protected] | 2083860 | 2011-02-09 04:50:21 | [diff] [blame] | 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 |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef VIEWS_DEBUG_UTILS_H_ |
| 6 | #define VIEWS_DEBUG_UTILS_H_ |
| 7 | |
| 8 | namespace views { |
| 9 | |
| 10 | class View; |
| 11 | |
| 12 | #ifndef NDEBUG |
| 13 | |
| 14 | // Log the view hierarchy. |
| 15 | void PrintViewHierarchy(const View* view); |
| 16 | |
| 17 | // Log the focus traversal hierarchy. |
| 18 | void PrintFocusHierarchy(const View* view); |
| 19 | |
| 20 | #endif // NDEBUG |
| 21 | |
| 22 | } // namespace views |
| 23 | |
| 24 | #endif // VIEWS_DEBUG_UTILS_H_ |