Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Side by Side Diff: ash/accelerators/debug_commands.h

Issue 2168733002: Splits debug_commands into aura and non-aura parts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moar Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_ACCELERATORS_DEBUG_COMMANDS_H_ 5 #ifndef ASH_ACCELERATORS_DEBUG_COMMANDS_H_
6 #define ASH_ACCELERATORS_DEBUG_COMMANDS_H_ 6 #define ASH_ACCELERATORS_DEBUG_COMMANDS_H_
7 7
8 #include "ash/accelerators/accelerator_table.h" 8 #include "ash/accelerators/accelerator_table.h"
9 #include "ash/ash_export.h" 9 #include "ash/ash_export.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 //
14 // NOTE: these commands may be enabled in about:flags, so that they may be
15 // available at run time.
13 namespace ash { 16 namespace ash {
14 namespace debug { 17 namespace debug {
15 18
16 // 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
17 // useful in debugging user reported bugs. 20 // useful in debugging user reported bugs.
18 ASH_EXPORT void PrintUIHierarchies(); 21 ASH_EXPORT void PrintUIHierarchies();
19 22
20 // Returns true if debug accelerators are enabled. 23 // Returns true if debug accelerators are enabled.
21 ASH_EXPORT bool DebugAcceleratorsEnabled(); 24 ASH_EXPORT bool DebugAcceleratorsEnabled();
22 25
23 // Performs |action| if |action| belongs to a debug-only accelerator and debug 26 // Performs |action| if |action| belongs to a debug-only accelerator and debug
24 // accelerators are enabled. 27 // accelerators are enabled.
25 ASH_EXPORT void PerformDebugActionIfEnabled(AcceleratorAction action); 28 ASH_EXPORT void PerformDebugActionIfEnabled(AcceleratorAction action);
26 29
27 } // namespace debug 30 } // namespace debug
28 } // namespace ash 31 } // namespace ash
29 32
30 #endif // ASH_ACCELERATORS_DEBUG_COMMANDS_H_ 33 #endif // ASH_ACCELERATORS_DEBUG_COMMANDS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698