Chromium Code Reviews| Index: ash/common/accelerators/accelerator_controller.h |
| diff --git a/ash/common/accelerators/accelerator_controller.h b/ash/common/accelerators/accelerator_controller.h |
| index 38b9007edbebd90702c6fd39435788865b64e1ff..8261432e19b3b4058f8b317a093dc3ce9dae36ed 100644 |
| --- a/ash/common/accelerators/accelerator_controller.h |
| +++ b/ash/common/accelerators/accelerator_controller.h |
| @@ -165,6 +165,15 @@ class ASH_EXPORT AcceleratorController |
| AcceleratorProcessingRestriction GetAcceleratorProcessingRestriction( |
| int action); |
| + // If |accelerator| is a deprecated accelerator, It performs the appropriate |
|
James Cook
2017/01/27 16:40:30
super nit: It -> it
afakhry
2017/01/27 17:27:41
Done.
|
| + // deprecated accelerator pre-handling. |
| + // Returns true if the accelerator's action should be performed (i.e. if |
| + // |accelerator| is not a deprecated accelerator, or it's an enabled |
| + // deprecated accelerator), and false otherwise. |
| + bool MaybeDeprecatedAcceleratorPressed( |
| + AcceleratorAction action, |
| + const ui::Accelerator& accelerator) const; |
| + |
| AcceleratorControllerDelegate* delegate_; |
| std::unique_ptr<ui::AcceleratorManager> accelerator_manager_; |