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

Side by Side Diff: ash/common/accelerators/accelerator_table.h

Issue 2323863002: Separate debugging and developer accelerators (Closed)
Patch Set: Created 4 years, 3 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 (c) 2012 The Chromium Authors. All rights reserved. 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 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_ACCELERATOR_TABLE_H_ 5 #ifndef ASH_COMMON_ACCELERATORS_ACCELERATOR_TABLE_H_
6 #define ASH_COMMON_ACCELERATORS_ACCELERATOR_TABLE_H_ 6 #define ASH_COMMON_ACCELERATORS_ACCELERATOR_TABLE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 CYCLE_BACKWARD_MRU, 55 CYCLE_BACKWARD_MRU,
56 CYCLE_FORWARD_MRU, 56 CYCLE_FORWARD_MRU,
57 DEBUG_PRINT_LAYER_HIERARCHY, 57 DEBUG_PRINT_LAYER_HIERARCHY,
58 DEBUG_PRINT_VIEW_HIERARCHY, 58 DEBUG_PRINT_VIEW_HIERARCHY,
59 DEBUG_PRINT_WINDOW_HIERARCHY, 59 DEBUG_PRINT_WINDOW_HIERARCHY,
60 DEBUG_TOGGLE_ROOT_WINDOW_FULL_SCREEN, 60 DEBUG_TOGGLE_ROOT_WINDOW_FULL_SCREEN,
61 DEBUG_TOGGLE_DEVICE_SCALE_FACTOR, 61 DEBUG_TOGGLE_DEVICE_SCALE_FACTOR,
62 DEBUG_TOGGLE_SHOW_DEBUG_BORDERS, 62 DEBUG_TOGGLE_SHOW_DEBUG_BORDERS,
63 DEBUG_TOGGLE_SHOW_FPS_COUNTER, 63 DEBUG_TOGGLE_SHOW_FPS_COUNTER,
64 DEBUG_TOGGLE_SHOW_PAINT_RECTS, 64 DEBUG_TOGGLE_SHOW_PAINT_RECTS,
65 DEBUG_TOGGLE_WALLPAPER_MODE, 65 DEBUG_TOGGLE_WALLPAPER_MODE,
oshima 2016/09/14 16:34:10 can you rename dev specific actions to DEV_?
afakhry 2016/09/15 20:26:51 Done.
66 EXIT, 66 EXIT,
67 FOCUS_NEXT_PANE, 67 FOCUS_NEXT_PANE,
68 FOCUS_PREVIOUS_PANE, 68 FOCUS_PREVIOUS_PANE,
69 FOCUS_SHELF, 69 FOCUS_SHELF,
70 LAUNCH_APP_0, 70 LAUNCH_APP_0,
71 LAUNCH_APP_1, 71 LAUNCH_APP_1,
72 LAUNCH_APP_2, 72 LAUNCH_APP_2,
73 LAUNCH_APP_3, 73 LAUNCH_APP_3,
74 LAUNCH_APP_4, 74 LAUNCH_APP_4,
75 LAUNCH_APP_5, 75 LAUNCH_APP_5,
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 ASH_EXPORT extern const DeprecatedAcceleratorData kDeprecatedAcceleratorsData[]; 206 ASH_EXPORT extern const DeprecatedAcceleratorData kDeprecatedAcceleratorsData[];
207 ASH_EXPORT extern const size_t kDeprecatedAcceleratorsDataLength; 207 ASH_EXPORT extern const size_t kDeprecatedAcceleratorsDataLength;
208 #endif // defined(OS_CHROMEOS) 208 #endif // defined(OS_CHROMEOS)
209 209
210 // Debug accelerators. Debug accelerators are only enabled when the "Debugging 210 // Debug accelerators. Debug accelerators are only enabled when the "Debugging
211 // keyboard shortcuts" flag (--ash-debug-shortcuts) is enabled. Debug actions 211 // keyboard shortcuts" flag (--ash-debug-shortcuts) is enabled. Debug actions
212 // are always run (similar to reserved actions). 212 // are always run (similar to reserved actions).
213 ASH_EXPORT extern const AcceleratorData kDebugAcceleratorData[]; 213 ASH_EXPORT extern const AcceleratorData kDebugAcceleratorData[];
214 ASH_EXPORT extern const size_t kDebugAcceleratorDataLength; 214 ASH_EXPORT extern const size_t kDebugAcceleratorDataLength;
215 215
216 // Developer accelerators that are enabled only with the command-line switch
217 // --ash-developer-shortcuts. They are always run similar to reserved actions.
218 ASH_EXPORT extern const AcceleratorData kDeveloperAcceleratorData[];
219 ASH_EXPORT extern const size_t kDeveloperAcceleratorDataLength;
220
216 // Actions that should be handled very early in Ash unless the current target 221 // Actions that should be handled very early in Ash unless the current target
217 // window is full-screen. 222 // window is full-screen.
218 ASH_EXPORT extern const AcceleratorAction kPreferredActions[]; 223 ASH_EXPORT extern const AcceleratorAction kPreferredActions[];
219 ASH_EXPORT extern const size_t kPreferredActionsLength; 224 ASH_EXPORT extern const size_t kPreferredActionsLength;
220 225
221 // Actions that are always handled in Ash. 226 // Actions that are always handled in Ash.
222 ASH_EXPORT extern const AcceleratorAction kReservedActions[]; 227 ASH_EXPORT extern const AcceleratorAction kReservedActions[];
223 ASH_EXPORT extern const size_t kReservedActionsLength; 228 ASH_EXPORT extern const size_t kReservedActionsLength;
224 229
225 // Actions allowed while user is not signed in or screen is locked. 230 // Actions allowed while user is not signed in or screen is locked.
(...skipping 28 matching lines...) Expand all
254 ASH_EXPORT extern const AcceleratorAction kActionsNeedingWindow[]; 259 ASH_EXPORT extern const AcceleratorAction kActionsNeedingWindow[];
255 ASH_EXPORT extern const size_t kActionsNeedingWindowLength; 260 ASH_EXPORT extern const size_t kActionsNeedingWindowLength;
256 261
257 // Actions that can be performed while keeping the menu open. 262 // Actions that can be performed while keeping the menu open.
258 ASH_EXPORT extern const AcceleratorAction kActionsKeepingMenuOpen[]; 263 ASH_EXPORT extern const AcceleratorAction kActionsKeepingMenuOpen[];
259 ASH_EXPORT extern const size_t kActionsKeepingMenuOpenLength; 264 ASH_EXPORT extern const size_t kActionsKeepingMenuOpenLength;
260 265
261 } // namespace ash 266 } // namespace ash
262 267
263 #endif // ASH_COMMON_ACCELERATORS_ACCELERATOR_TABLE_H_ 268 #endif // ASH_COMMON_ACCELERATORS_ACCELERATOR_TABLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698