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

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

Issue 2658853003: Remove the deprecated Alt+Shift shortcut completely (Closed)
Patch Set: More 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
« no previous file with comments | « ash/ash_chromeos_strings.grdp ('k') | ash/common/accelerators/accelerator_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..8daadfe4c8f537cdb87db323a7c99519076d1149 100644
--- a/ash/common/accelerators/accelerator_controller.h
+++ b/ash/common/accelerators/accelerator_controller.h
@@ -165,6 +165,17 @@ class ASH_EXPORT AcceleratorController
AcceleratorProcessingRestriction GetAcceleratorProcessingRestriction(
int action);
+ // If |accelerator| is a deprecated accelerator, it performs the appropriate
+ // deprecated accelerator pre-handling.
+ // Returns PROCEED 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 STOP otherwise (if the accelerator is a
+ // disabled deprecated accelerator).
+ enum class AcceleratorProcessingStatus { PROCEED, STOP };
+ AcceleratorProcessingStatus MaybeDeprecatedAcceleratorPressed(
+ AcceleratorAction action,
+ const ui::Accelerator& accelerator) const;
+
AcceleratorControllerDelegate* delegate_;
std::unique_ptr<ui::AcceleratorManager> accelerator_manager_;
« no previous file with comments | « ash/ash_chromeos_strings.grdp ('k') | ash/common/accelerators/accelerator_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698