Safebrowsing aura linux_redux compile fixes.
[chromium-blink-merge.git] / ash / default_accessibility_delegate.cc
blobbfc6b5099c6f2d7839b3c2d1bb819b1c9e5e1978
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
3 // found in the LICENSE file.
5 #include "ash/default_accessibility_delegate.h"
7 #include <limits>
9 namespace ash {
10 namespace internal {
12 DefaultAccessibilityDelegate::DefaultAccessibilityDelegate()
13 : spoken_feedback_enabled_(false),
14 high_contrast_enabled_(false),
15 screen_magnifier_enabled_(false),
16 screen_magnifier_type_(kDefaultMagnifierType),
17 large_cursor_enabled_(false),
18 autoclick_enabled_(false) {
21 DefaultAccessibilityDelegate::~DefaultAccessibilityDelegate() {}
23 bool DefaultAccessibilityDelegate::IsSpokenFeedbackEnabled() const {
24 return spoken_feedback_enabled_;
27 void DefaultAccessibilityDelegate::ToggleHighContrast() {
28 high_contrast_enabled_ = !high_contrast_enabled_;
31 bool DefaultAccessibilityDelegate::IsHighContrastEnabled() const {
32 return high_contrast_enabled_;
35 void DefaultAccessibilityDelegate::SetMagnifierEnabled(bool enabled) {
36 screen_magnifier_enabled_ = enabled;
39 void DefaultAccessibilityDelegate::SetMagnifierType(MagnifierType type) {
40 screen_magnifier_type_ = type;
43 bool DefaultAccessibilityDelegate::IsMagnifierEnabled() const {
44 return screen_magnifier_enabled_;
47 MagnifierType DefaultAccessibilityDelegate::GetMagnifierType() const {
48 return screen_magnifier_type_;
51 void DefaultAccessibilityDelegate::SetLargeCursorEnabled(bool enabled) {
52 large_cursor_enabled_ = enabled;
55 bool DefaultAccessibilityDelegate::IsLargeCursorEnabled() const {
56 return large_cursor_enabled_;
59 void DefaultAccessibilityDelegate::SetAutoclickEnabled(bool enabled) {
60 autoclick_enabled_ = enabled;
63 bool DefaultAccessibilityDelegate::IsAutoclickEnabled() const {
64 return autoclick_enabled_;
67 bool DefaultAccessibilityDelegate::ShouldAlwaysShowAccessibilityMenu() const {
68 return false;
71 void DefaultAccessibilityDelegate::SilenceSpokenFeedback() const {
74 void DefaultAccessibilityDelegate::ToggleSpokenFeedback(
75 AccessibilityNotificationVisibility notify) {
76 spoken_feedback_enabled_ = !spoken_feedback_enabled_;
79 void DefaultAccessibilityDelegate::SaveScreenMagnifierScale(double scale) {
82 double DefaultAccessibilityDelegate::GetSavedScreenMagnifierScale() {
83 return std::numeric_limits<double>::min();
86 } // namespace internal
87 } // namespace ash