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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/default_accessibility_delegate.h" 5 #include "ash/default_accessibility_delegate.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 namespace ash { 9 namespace ash {
10 namespace internal { 10 namespace internal {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 } 58 }
59 59
60 void DefaultAccessibilityDelegate::SetAutoclickEnabled(bool enabled) { 60 void DefaultAccessibilityDelegate::SetAutoclickEnabled(bool enabled) {
61 autoclick_enabled_ = enabled; 61 autoclick_enabled_ = enabled;
62 } 62 }
63 63
64 bool DefaultAccessibilityDelegate::IsAutoclickEnabled() const { 64 bool DefaultAccessibilityDelegate::IsAutoclickEnabled() const {
65 return autoclick_enabled_; 65 return autoclick_enabled_;
66 } 66 }
67 67
68 bool DefaultAccessibilityDelegate::ShouldAlwaysShowAccessibilityMenu() const { 68 bool DefaultAccessibilityDelegate::ShouldShowAccessibilityMenu() const {
69 return false; 69 return spoken_feedback_enabled_ ||
70 high_contrast_enabled_ ||
71 screen_magnifier_enabled_ ||
72 large_cursor_enabled_ ||
73 autoclick_enabled_;
70 } 74 }
71 75
72 void DefaultAccessibilityDelegate::SilenceSpokenFeedback() const { 76 void DefaultAccessibilityDelegate::SilenceSpokenFeedback() const {
73 } 77 }
74 78
75 void DefaultAccessibilityDelegate::ToggleSpokenFeedback( 79 void DefaultAccessibilityDelegate::ToggleSpokenFeedback(
76 AccessibilityNotificationVisibility notify) { 80 AccessibilityNotificationVisibility notify) {
77 spoken_feedback_enabled_ = !spoken_feedback_enabled_; 81 spoken_feedback_enabled_ = !spoken_feedback_enabled_;
78 } 82 }
79 83
(...skipping 12 matching lines...) Expand all
92 AccessibilityAlert DefaultAccessibilityDelegate::GetLastAccessibilityAlert() { 96 AccessibilityAlert DefaultAccessibilityDelegate::GetLastAccessibilityAlert() {
93 return accessibility_alert_; 97 return accessibility_alert_;
94 } 98 }
95 99
96 base::TimeDelta DefaultAccessibilityDelegate::PlayShutdownSound() const { 100 base::TimeDelta DefaultAccessibilityDelegate::PlayShutdownSound() const {
97 return base::TimeDelta(); 101 return base::TimeDelta();
98 } 102 }
99 103
100 } // namespace internal 104 } // namespace internal
101 } // namespace ash 105 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698