Fix hanging get requests
[chromium-blink-merge.git] / ash / accelerators / debug_commands.h
blob0bf7960267e02f2a07ed15a3d1738b34a251aa5e
1 // Copyright 2013 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.
5 #ifndef ASH_ACCELERATORS_DEBUG_COMMANDS_H_
6 #define ASH_ACCELERATORS_DEBUG_COMMANDS_H_
8 #include "ash/accelerators/accelerator_table.h"
9 #include "ash/ash_export.h"
11 // This file contains implementations of commands that are used only when
12 // debugging.
13 namespace ash {
14 namespace debug {
16 // Print the views::View, ui::Layer and aura::Window hierarchies. This may be
17 // useful in debugging user reported bugs.
18 ASH_EXPORT void PrintUIHierarchies();
20 // Returns true if debug accelerators are enabled.
21 ASH_EXPORT bool DebugAcceleratorsEnabled();
23 // Performs |action| if |action| belongs to a debug-only accelerator and debug
24 // accelerators are enabled.
25 ASH_EXPORT void PerformDebugActionIfEnabled(AcceleratorAction action);
27 } // namespace debug
28 } // namespace ash
30 #endif // ASH_ACCELERATORS_DEBUG_COMMANDS_H_