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

Unified Diff: ash/accelerators/accelerator_controller.cc

Issue 2154523002: Move AccessibilityDelegate ownership to ash::WmShell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@setmediadelegate
Patch Set: fix mash_unittests Created 4 years, 5 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 | « no previous file | ash/accelerators/accelerator_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/accelerators/accelerator_controller.cc
diff --git a/ash/accelerators/accelerator_controller.cc b/ash/accelerators/accelerator_controller.cc
index e7743ffba4540821e8864da1284e9caf2352287e..99b9d9272dda1cf8bad23f92eb38147811a4b0ea 100644
--- a/ash/accelerators/accelerator_controller.cc
+++ b/ash/accelerators/accelerator_controller.cc
@@ -484,7 +484,7 @@ bool CanHandleToggleAppList(const ui::Accelerator& accelerator,
// When spoken feedback is enabled, we should neither toggle the list nor
// consume the key since Search+Shift is one of the shortcuts the a11y
// feature uses. crbug.com/132296
- if (WmShell::Get()->GetAccessibilityDelegate()->IsSpokenFeedbackEnabled())
+ if (WmShell::Get()->accessibility_delegate()->IsSpokenFeedbackEnabled())
return false;
}
return true;
@@ -666,7 +666,7 @@ void HandleToggleMirrorMode() {
void HandleToggleSpokenFeedback() {
base::RecordAction(UserMetricsAction("Accel_Toggle_Spoken_Feedback"));
- WmShell::Get()->GetAccessibilityDelegate()->ToggleSpokenFeedback(
+ WmShell::Get()->accessibility_delegate()->ToggleSpokenFeedback(
A11Y_NOTIFICATION_SHOW);
}
@@ -1407,7 +1407,7 @@ AcceleratorController::GetAcceleratorProcessingRestriction(int action) {
}
if (wm_shell->mru_window_tracker()->BuildMruWindowList().empty() &&
actions_needing_window_.find(action) != actions_needing_window_.end()) {
- wm_shell->GetAccessibilityDelegate()->TriggerAccessibilityAlert(
+ wm_shell->accessibility_delegate()->TriggerAccessibilityAlert(
A11Y_ALERT_WINDOW_NEEDED);
return RESTRICTION_PREVENT_PROCESSING_AND_PROPAGATION;
}
« no previous file with comments | « no previous file | ash/accelerators/accelerator_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698