| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "ash/ash_export.h" | 9 #include "ash/ash_export.h" |
| 10 #include "ui/aura/event.h" | 10 #include "ui/aura/event.h" |
| 11 | 11 |
| 12 namespace ash { | 12 namespace ash { |
| 13 | 13 |
| 14 // Please put if/def sections at the end of the bare section and keep the list | 14 // Please put if/def sections at the end of the bare section and keep the list |
| 15 // within each section in alphabetical order. | 15 // within each section in alphabetical order. |
| 16 enum AcceleratorAction { | 16 enum AcceleratorAction { |
| 17 BRIGHTNESS_DOWN, | 17 BRIGHTNESS_DOWN, |
| 18 BRIGHTNESS_UP, | 18 BRIGHTNESS_UP, |
| 19 CYCLE_BACKWARD_LINEAR, | 19 CYCLE_BACKWARD_LINEAR, |
| 20 CYCLE_BACKWARD_MRU, | 20 CYCLE_BACKWARD_MRU, |
| 21 CYCLE_FORWARD_LINEAR, | 21 CYCLE_FORWARD_LINEAR, |
| 22 CYCLE_FORWARD_MRU, | 22 CYCLE_FORWARD_MRU, |
| 23 EXIT, | 23 EXIT, |
| 24 FOCUS_LAUNCHER, | 24 FOCUS_LAUNCHER, |
| 25 FOCUS_TRAY, | 25 FOCUS_TRAY, |
| 26 NEW_INCOGNITO_WINDOW, | 26 NEW_INCOGNITO_WINDOW, |
| 27 NEW_TAB, |
| 27 NEW_WINDOW, | 28 NEW_WINDOW, |
| 28 NEXT_IME, | 29 NEXT_IME, |
| 29 PREVIOUS_IME, | 30 PREVIOUS_IME, |
| 31 RESTORE_TAB, |
| 30 ROTATE_WINDOWS, | 32 ROTATE_WINDOWS, |
| 31 SEARCH_KEY, | 33 SEARCH_KEY, |
| 32 SELECT_LAST_WIN, | 34 SELECT_LAST_WIN, |
| 33 SELECT_WIN_0, | 35 SELECT_WIN_0, |
| 34 SELECT_WIN_1, | 36 SELECT_WIN_1, |
| 35 SELECT_WIN_2, | 37 SELECT_WIN_2, |
| 36 SELECT_WIN_3, | 38 SELECT_WIN_3, |
| 37 SELECT_WIN_4, | 39 SELECT_WIN_4, |
| 38 SELECT_WIN_5, | 40 SELECT_WIN_5, |
| 39 SELECT_WIN_6, | 41 SELECT_WIN_6, |
| 40 SELECT_WIN_7, | 42 SELECT_WIN_7, |
| 41 SHOW_KEYBOARD_OVERLAY, | 43 SHOW_KEYBOARD_OVERLAY, |
| 42 SHOW_OAK, | 44 SHOW_OAK, |
| 45 SHOW_TASK_MANAGER, |
| 43 SWITCH_IME, // Switch to another IME depending on the accelerator. | 46 SWITCH_IME, // Switch to another IME depending on the accelerator. |
| 44 TAKE_PARTIAL_SCREENSHOT, | 47 TAKE_PARTIAL_SCREENSHOT, |
| 45 TAKE_SCREENSHOT, | 48 TAKE_SCREENSHOT, |
| 46 TOGGLE_APP_LIST, | 49 TOGGLE_APP_LIST, |
| 47 TOGGLE_CAPS_LOCK, | 50 TOGGLE_CAPS_LOCK, |
| 48 TOGGLE_SPOKEN_FEEDBACK, | 51 TOGGLE_SPOKEN_FEEDBACK, |
| 49 VOLUME_DOWN, | 52 VOLUME_DOWN, |
| 50 VOLUME_MUTE, | 53 VOLUME_MUTE, |
| 51 VOLUME_UP, | 54 VOLUME_UP, |
| 52 WINDOW_MAXIMIZE_RESTORE, | 55 WINDOW_MAXIMIZE_RESTORE, |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 // Actions allowed while screen is locked (in addition to | 96 // Actions allowed while screen is locked (in addition to |
| 94 // kActionsAllowedAtLoginOrLockScreen). | 97 // kActionsAllowedAtLoginOrLockScreen). |
| 95 ASH_EXPORT extern const AcceleratorAction kActionsAllowedAtLockScreen[]; | 98 ASH_EXPORT extern const AcceleratorAction kActionsAllowedAtLockScreen[]; |
| 96 | 99 |
| 97 // The number of elements in kActionsAllowedAtLockScreen. | 100 // The number of elements in kActionsAllowedAtLockScreen. |
| 98 ASH_EXPORT extern const size_t kActionsAllowedAtLockScreenLength; | 101 ASH_EXPORT extern const size_t kActionsAllowedAtLockScreenLength; |
| 99 | 102 |
| 100 } // namespace ash | 103 } // namespace ash |
| 101 | 104 |
| 102 #endif // ASH_ACCELERATORS_ACCELERATOR_TABLE_H_ | 105 #endif // ASH_ACCELERATORS_ACCELERATOR_TABLE_H_ |
| OLD | NEW |