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_ACCELERATORS_ACCELERATOR_TABLE_H_ | 5 #ifndef ASH_ACCELERATORS_ACCELERATOR_TABLE_H_ |
6 #define ASH_ACCELERATORS_ACCELERATOR_TABLE_H_ | 6 #define ASH_ACCELERATORS_ACCELERATOR_TABLE_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "ui/base/events/event_constants.h" | 10 #include "ui/base/events/event_constants.h" |
11 #include "ui/base/keycodes/keyboard_codes.h" | 11 #include "ui/base/keycodes/keyboard_codes.h" |
12 | 12 |
13 namespace ash { | 13 namespace ash { |
14 | 14 |
15 // Please put if/def sections at the end of the bare section and keep the list | 15 // Please put if/def sections at the end of the bare section and keep the list |
16 // within each section in alphabetical order. | 16 // within each section in alphabetical order. |
17 enum AcceleratorAction { | 17 enum AcceleratorAction { |
| 18 ACCESSIBLE_FOCUS_NEXT, |
| 19 ACCESSIBLE_FOCUS_PREVIOUS, |
18 BRIGHTNESS_DOWN, | 20 BRIGHTNESS_DOWN, |
19 BRIGHTNESS_UP, | 21 BRIGHTNESS_UP, |
20 CYCLE_BACKWARD_LINEAR, | 22 CYCLE_BACKWARD_LINEAR, |
21 CYCLE_BACKWARD_MRU, | 23 CYCLE_BACKWARD_MRU, |
22 CYCLE_FORWARD_LINEAR, | 24 CYCLE_FORWARD_LINEAR, |
23 CYCLE_FORWARD_MRU, | 25 CYCLE_FORWARD_MRU, |
24 DEBUG_TOGGLE_DEVICE_SCALE_FACTOR, | 26 DEBUG_TOGGLE_DEVICE_SCALE_FACTOR, |
25 DEBUG_TOGGLE_SHOW_DEBUG_BORDERS, | 27 DEBUG_TOGGLE_SHOW_DEBUG_BORDERS, |
26 DEBUG_TOGGLE_SHOW_FPS_COUNTER, | 28 DEBUG_TOGGLE_SHOW_FPS_COUNTER, |
27 DEBUG_TOGGLE_SHOW_PAINT_RECTS, | 29 DEBUG_TOGGLE_SHOW_PAINT_RECTS, |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 SELECT_WIN_3, | 66 SELECT_WIN_3, |
65 SELECT_WIN_4, | 67 SELECT_WIN_4, |
66 SELECT_WIN_5, | 68 SELECT_WIN_5, |
67 SELECT_WIN_6, | 69 SELECT_WIN_6, |
68 SELECT_WIN_7, | 70 SELECT_WIN_7, |
69 SHOW_KEYBOARD_OVERLAY, | 71 SHOW_KEYBOARD_OVERLAY, |
70 SHOW_MESSAGE_CENTER_BUBBLE, | 72 SHOW_MESSAGE_CENTER_BUBBLE, |
71 SHOW_OAK, | 73 SHOW_OAK, |
72 SHOW_SYSTEM_TRAY_BUBBLE, | 74 SHOW_SYSTEM_TRAY_BUBBLE, |
73 SHOW_TASK_MANAGER, | 75 SHOW_TASK_MANAGER, |
| 76 SILENCE_SPOKEN_FEEDBACK, |
74 SWAP_PRIMARY_DISPLAY, | 77 SWAP_PRIMARY_DISPLAY, |
75 SWITCH_IME, // Switch to another IME depending on the accelerator. | 78 SWITCH_IME, // Switch to another IME depending on the accelerator. |
76 TAKE_PARTIAL_SCREENSHOT, | 79 TAKE_PARTIAL_SCREENSHOT, |
77 TAKE_SCREENSHOT, | 80 TAKE_SCREENSHOT, |
78 TOGGLE_APP_LIST, | 81 TOGGLE_APP_LIST, |
79 TOGGLE_CAPS_LOCK, | 82 TOGGLE_CAPS_LOCK, |
80 TOGGLE_CAPS_LOCK_BY_ALT_LWIN, | 83 TOGGLE_CAPS_LOCK_BY_ALT_LWIN, |
81 TOGGLE_DESKTOP_BACKGROUND_MODE, | 84 TOGGLE_DESKTOP_BACKGROUND_MODE, |
82 TOGGLE_FULLSCREEN, | 85 TOGGLE_FULLSCREEN, |
83 TOGGLE_MAXIMIZED, | 86 TOGGLE_MAXIMIZED, |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 | 168 |
166 // Actions allowed in app mode. | 169 // Actions allowed in app mode. |
167 ASH_EXPORT extern const AcceleratorAction kActionsAllowedInAppMode[]; | 170 ASH_EXPORT extern const AcceleratorAction kActionsAllowedInAppMode[]; |
168 | 171 |
169 // The number of elements in kActionsAllowedInAppMode. | 172 // The number of elements in kActionsAllowedInAppMode. |
170 ASH_EXPORT extern const size_t kActionsAllowedInAppModeLength; | 173 ASH_EXPORT extern const size_t kActionsAllowedInAppModeLength; |
171 | 174 |
172 } // namespace ash | 175 } // namespace ash |
173 | 176 |
174 #endif // ASH_ACCELERATORS_ACCELERATOR_TABLE_H_ | 177 #endif // ASH_ACCELERATORS_ACCELERATOR_TABLE_H_ |
OLD | NEW |