debug_utils.h revision 5821806d5e7f356e8fa4b058a389a808ea183019
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 3// found in the LICENSE file. 4 5#ifndef UI_VIEWS_DEBUG_UTILS_H_ 6#define UI_VIEWS_DEBUG_UTILS_H_ 7 8#include "ui/views/views_export.h" 9 10namespace views { 11 12class View; 13 14#ifndef NDEBUG 15 16// Log the view hierarchy. 17VIEWS_EXPORT void PrintViewHierarchy(const View* view); 18 19// Log the focus traversal hierarchy. 20VIEWS_EXPORT void PrintFocusHierarchy(const View* view); 21 22#endif // NDEBUG 23 24} // namespace views 25 26#endif // UI_VIEWS_DEBUG_UTILS_H_ 27