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

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

Issue 729993002: Alphabetise AcceleratorController::PerformAction() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@nested_dispatch0
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « ash/accelerators/accelerator_table.cc ('k') | ash/accelerators/debug_commands.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/ash_export.h" 9 #include "ash/ash_export.h"
9 10
10 // This file contains implementations of commands that are used only 11 // This file contains implementations of commands that are used only
11 // when running on desktop for debugging. 12 // when running on desktop for debugging.
12 namespace ash { 13 namespace ash {
13 namespace debug { 14 namespace debug {
14 15
15 // Print the views::View, ui::Layer and aura::Window hierarchies. This may be 16 // Print the views::View, ui::Layer and aura::Window hierarchies. This may be
16 // useful in debugging user reported bugs. 17 // useful in debugging user reported bugs.
17 ASH_EXPORT void PrintUIHierarchies(); 18 ASH_EXPORT void PrintUIHierarchies();
18 19
19 // Returns true if debug accelerators are enabled. 20 // Returns true if debug accelerators are enabled.
20 ASH_EXPORT bool DebugAcceleratorsEnabled(); 21 ASH_EXPORT bool DebugAcceleratorsEnabled();
21 22
22 // Performs |action| and returns true if |action| belongs to a 23 // Performs |action| and returns true if |action| belongs to a
23 // debug-only accelerator and debug accelerators are enabled. 24 // debug-only accelerator and debug accelerators are enabled.
24 ASH_EXPORT bool PerformDebugAction(int action); 25 ASH_EXPORT bool PerformDebugAction(AcceleratorAction action);
25 26
26 } // namespace debug 27 } // namespace debug
27 } // namespace ash 28 } // namespace ash
28 29
29 #endif // ASH_ACCELERATORS_DEBUG_COMMANDS_H_ 30 #endif // ASH_ACCELERATORS_DEBUG_COMMANDS_H_
OLDNEW
« no previous file with comments | « ash/accelerators/accelerator_table.cc ('k') | ash/accelerators/debug_commands.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698