Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2390)

Unified Diff: ash/common/accelerators/accelerator_controller.h

Issue 2658853003: Remove the deprecated Alt+Shift shortcut completely (Closed)
Patch Set: James' comments Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_;

Powered by Google App Engine
This is Rietveld 408576698