OLD | NEW |
---|---|
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
50 // various kActionsAllowed* below. | 50 // various kActionsAllowed* below. |
51 // | 51 // |
52 // Please put if/def sections at the end of the bare section and keep the list | 52 // Please put if/def sections at the end of the bare section and keep the list |
53 // within each section in alphabetical order. | 53 // within each section in alphabetical order. |
54 enum AcceleratorAction { | 54 enum AcceleratorAction { |
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 DEV_TOGGLE_ROOT_WINDOW_FULL_SCREEN, |
oshima
2016/09/15 20:55:53
sort
afakhry
2016/09/15 21:57:40
Done.
| |
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, |
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, |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
107 TOGGLE_MAXIMIZED, | 107 TOGGLE_MAXIMIZED, |
108 TOGGLE_OVERVIEW, | 108 TOGGLE_OVERVIEW, |
109 UNPIN, | 109 UNPIN, |
110 WINDOW_MINIMIZE, | 110 WINDOW_MINIMIZE, |
111 WINDOW_POSITION_CENTER, | 111 WINDOW_POSITION_CENTER, |
112 WINDOW_CYCLE_SNAP_DOCK_LEFT, | 112 WINDOW_CYCLE_SNAP_DOCK_LEFT, |
113 WINDOW_CYCLE_SNAP_DOCK_RIGHT, | 113 WINDOW_CYCLE_SNAP_DOCK_RIGHT, |
114 #if defined(OS_CHROMEOS) | 114 #if defined(OS_CHROMEOS) |
115 BRIGHTNESS_DOWN, | 115 BRIGHTNESS_DOWN, |
116 BRIGHTNESS_UP, | 116 BRIGHTNESS_UP, |
117 DEBUG_ADD_REMOVE_DISPLAY, | 117 DEV_ADD_REMOVE_DISPLAY, |
118 DEBUG_SHOW_TOAST, | 118 DEBUG_SHOW_TOAST, |
119 DEBUG_TOGGLE_TOUCH_PAD, | 119 DEBUG_TOGGLE_TOUCH_PAD, |
120 DEBUG_TOGGLE_TOUCH_SCREEN, | 120 DEBUG_TOGGLE_TOUCH_SCREEN, |
121 DEBUG_TOGGLE_TOUCH_VIEW, | 121 DEV_TOGGLE_TOUCH_VIEW, |
122 DEBUG_TOGGLE_UNIFIED_DESKTOP, | 122 DEV_TOGGLE_UNIFIED_DESKTOP, |
123 DISABLE_CAPS_LOCK, | 123 DISABLE_CAPS_LOCK, |
124 DISABLE_GPU_WATCHDOG, | 124 DISABLE_GPU_WATCHDOG, |
125 KEYBOARD_BRIGHTNESS_DOWN, | 125 KEYBOARD_BRIGHTNESS_DOWN, |
126 KEYBOARD_BRIGHTNESS_UP, | 126 KEYBOARD_BRIGHTNESS_UP, |
127 LOCK_PRESSED, | 127 LOCK_PRESSED, |
128 LOCK_RELEASED, | 128 LOCK_RELEASED, |
129 LOCK_SCREEN, | 129 LOCK_SCREEN, |
130 OPEN_CROSH, | 130 OPEN_CROSH, |
131 OPEN_FILE_MANAGER, | 131 OPEN_FILE_MANAGER, |
132 OPEN_GET_HELP, | 132 OPEN_GET_HELP, |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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. | |
oshima
2016/09/15 20:55:53
-dev-
afakhry
2016/09/15 21:57:40
Done.
| |
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 Loading... | |
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_ |
OLD | NEW |