| 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 "ui/aura/event.h" | 9 #include "ui/aura/event.h" |
| 10 | 10 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 OPEN_FILE_MANAGER_TAB, | 69 OPEN_FILE_MANAGER_TAB, |
| 70 #endif | 70 #endif |
| 71 DISPLAY_ADD_REMOVE, | 71 DISPLAY_ADD_REMOVE, |
| 72 DISPLAY_CYCLE, | 72 DISPLAY_CYCLE, |
| 73 DISPLAY_TOGGLE_SCALE, | 73 DISPLAY_TOGGLE_SCALE, |
| 74 ROTATE_SCREEN, | 74 ROTATE_SCREEN, |
| 75 TOGGLE_DESKTOP_BACKGROUND_MODE, | 75 TOGGLE_DESKTOP_BACKGROUND_MODE, |
| 76 TOGGLE_ROOT_WINDOW_FULL_SCREEN, | 76 TOGGLE_ROOT_WINDOW_FULL_SCREEN, |
| 77 #if !defined(NDEBUG) | 77 #if !defined(NDEBUG) |
| 78 PRINT_LAYER_HIERARCHY, | 78 PRINT_LAYER_HIERARCHY, |
| 79 PRINT_VIEW_HIERARCHY, |
| 79 PRINT_WINDOW_HIERARCHY, | 80 PRINT_WINDOW_HIERARCHY, |
| 80 #endif | 81 #endif |
| 81 }; | 82 }; |
| 82 | 83 |
| 83 struct AcceleratorData { | 84 struct AcceleratorData { |
| 84 bool trigger_on_press; | 85 bool trigger_on_press; |
| 85 ui::KeyboardCode keycode; | 86 ui::KeyboardCode keycode; |
| 86 int modifiers; | 87 int modifiers; |
| 87 AcceleratorAction action; | 88 AcceleratorAction action; |
| 88 }; | 89 }; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 109 // Actions allowed while screen is locked (in addition to | 110 // Actions allowed while screen is locked (in addition to |
| 110 // kActionsAllowedAtLoginOrLockScreen). | 111 // kActionsAllowedAtLoginOrLockScreen). |
| 111 ASH_EXPORT extern const AcceleratorAction kActionsAllowedAtLockScreen[]; | 112 ASH_EXPORT extern const AcceleratorAction kActionsAllowedAtLockScreen[]; |
| 112 | 113 |
| 113 // The number of elements in kActionsAllowedAtLockScreen. | 114 // The number of elements in kActionsAllowedAtLockScreen. |
| 114 ASH_EXPORT extern const size_t kActionsAllowedAtLockScreenLength; | 115 ASH_EXPORT extern const size_t kActionsAllowedAtLockScreenLength; |
| 115 | 116 |
| 116 } // namespace ash | 117 } // namespace ash |
| 117 | 118 |
| 118 #endif // ASH_ACCELERATORS_ACCELERATOR_TABLE_H_ | 119 #endif // ASH_ACCELERATORS_ACCELERATOR_TABLE_H_ |
| OLD | NEW |