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

Unified Diff: ash/default_accessibility_delegate.cc

Issue 102483006: Getting rid of GetDefaultProfile & fixing multi user issues with accessibility (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed Created 7 years 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/default_accessibility_delegate.cc
diff --git a/ash/default_accessibility_delegate.cc b/ash/default_accessibility_delegate.cc
index 1976a89a80c18612932cf916c061fc122143a24a..99540d726b819b20f4b314c8d051dce2620edb70 100644
--- a/ash/default_accessibility_delegate.cc
+++ b/ash/default_accessibility_delegate.cc
@@ -65,8 +65,12 @@ bool DefaultAccessibilityDelegate::IsAutoclickEnabled() const {
return autoclick_enabled_;
}
-bool DefaultAccessibilityDelegate::ShouldAlwaysShowAccessibilityMenu() const {
- return false;
+bool DefaultAccessibilityDelegate::ShouldShowAccessibilityMenu() const {
+ return spoken_feedback_enabled_ ||
+ high_contrast_enabled_ ||
+ screen_magnifier_enabled_ ||
+ large_cursor_enabled_ ||
+ autoclick_enabled_;
}
void DefaultAccessibilityDelegate::SilenceSpokenFeedback() const {

Powered by Google App Engine
This is Rietveld 408576698