| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef ASH_COMMON_ACCELERATORS_DEBUG_COMMANDS_H_ | 5 #ifndef ASH_ACCELERATORS_DEBUG_COMMANDS_H_ |
| 6 #define ASH_COMMON_ACCELERATORS_DEBUG_COMMANDS_H_ | 6 #define ASH_ACCELERATORS_DEBUG_COMMANDS_H_ |
| 7 | 7 |
| 8 #include "ash/accelerators/accelerator_table.h" |
| 8 #include "ash/ash_export.h" | 9 #include "ash/ash_export.h" |
| 9 #include "ash/common/accelerators/accelerator_table.h" | |
| 10 | 10 |
| 11 // This file contains implementations of commands that are used only when | 11 // This file contains implementations of commands that are used only when |
| 12 // debugging. | 12 // debugging. |
| 13 // | 13 // |
| 14 // NOTE: these commands may be enabled in about:flags, so that they may be | 14 // NOTE: these commands may be enabled in about:flags, so that they may be |
| 15 // available at run time. | 15 // available at run time. |
| 16 namespace ash { | 16 namespace ash { |
| 17 namespace debug { | 17 namespace debug { |
| 18 | 18 |
| 19 // Print the views::View, ui::Layer and aura::Window hierarchies. This may be | 19 // Print the views::View, ui::Layer and aura::Window hierarchies. This may be |
| 20 // useful in debugging user reported bugs. | 20 // useful in debugging user reported bugs. |
| 21 ASH_EXPORT void PrintUIHierarchies(); | 21 ASH_EXPORT void PrintUIHierarchies(); |
| 22 | 22 |
| 23 // Returns true if debug accelerators are enabled. | 23 // Returns true if debug accelerators are enabled. |
| 24 ASH_EXPORT bool DebugAcceleratorsEnabled(); | 24 ASH_EXPORT bool DebugAcceleratorsEnabled(); |
| 25 | 25 |
| 26 // Returns true if developer accelerators are enabled. | 26 // Returns true if developer accelerators are enabled. |
| 27 ASH_EXPORT bool DeveloperAcceleratorsEnabled(); | 27 ASH_EXPORT bool DeveloperAcceleratorsEnabled(); |
| 28 | 28 |
| 29 // Performs |action| if |action| belongs to a debug-only accelerator and debug | 29 // Performs |action| if |action| belongs to a debug-only accelerator and debug |
| 30 // accelerators are enabled. | 30 // accelerators are enabled. |
| 31 ASH_EXPORT void PerformDebugActionIfEnabled(AcceleratorAction action); | 31 ASH_EXPORT void PerformDebugActionIfEnabled(AcceleratorAction action); |
| 32 | 32 |
| 33 } // namespace debug | 33 } // namespace debug |
| 34 } // namespace ash | 34 } // namespace ash |
| 35 | 35 |
| 36 #endif // ASH_COMMON_ACCELERATORS_DEBUG_COMMANDS_H_ | 36 #endif // ASH_ACCELERATORS_DEBUG_COMMANDS_H_ |
| OLD | NEW |