| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_CONTROLLER_DELEGATE_H_ | 5 #ifndef ASH_COMMON_ACCELERATORS_ACCELERATOR_CONTROLLER_DELEGATE_H_ |
| 6 #define ASH_COMMON_ACCELERATORS_ACCELERATOR_CONTROLLER_DELEGATE_H_ | 6 #define ASH_COMMON_ACCELERATORS_ACCELERATOR_CONTROLLER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "ash/common/accelerators/accelerator_table.h" | 9 #include "ash/common/accelerators/accelerator_table.h" |
| 10 | 10 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 // invoked if HandlesAction() returns true. | 27 // invoked if HandlesAction() returns true. |
| 28 virtual bool CanPerformAction( | 28 virtual bool CanPerformAction( |
| 29 AcceleratorAction action, | 29 AcceleratorAction action, |
| 30 const ui::Accelerator& accelerator, | 30 const ui::Accelerator& accelerator, |
| 31 const ui::Accelerator& previous_accelerator) = 0; | 31 const ui::Accelerator& previous_accelerator) = 0; |
| 32 | 32 |
| 33 // Performs the specified action. | 33 // Performs the specified action. |
| 34 virtual void PerformAction(AcceleratorAction action, | 34 virtual void PerformAction(AcceleratorAction action, |
| 35 const ui::Accelerator& accelerator) = 0; | 35 const ui::Accelerator& accelerator) = 0; |
| 36 | 36 |
| 37 // Shows a warning the user is using a deprecated accelerator. | |
| 38 virtual void ShowDeprecatedAcceleratorNotification( | |
| 39 const char* const notification_id, | |
| 40 int message_id, | |
| 41 int old_shortcut_id, | |
| 42 int new_shortcut_id) = 0; | |
| 43 | |
| 44 protected: | 37 protected: |
| 45 virtual ~AcceleratorControllerDelegate() {} | 38 virtual ~AcceleratorControllerDelegate() {} |
| 46 }; | 39 }; |
| 47 | 40 |
| 48 } // namespace ash | 41 } // namespace ash |
| 49 | 42 |
| 50 #endif // ASH_COMMON_ACCELERATORS_ACCELERATOR_CONTROLLER_DELEGATE_H_ | 43 #endif // ASH_COMMON_ACCELERATORS_ACCELERATOR_CONTROLLER_DELEGATE_H_ |
| OLD | NEW |