Index: ash/shell/shell_delegate_impl.cc |
diff --git a/ash/shell/shell_delegate_impl.cc b/ash/shell/shell_delegate_impl.cc |
index fde2bd1608146b0b0165328f7e71e464f0409d2d..681dfb5ed14c3f969abfdced8e7408fcc35a42e1 100644 |
--- a/ash/shell/shell_delegate_impl.cc |
+++ b/ash/shell/shell_delegate_impl.cc |
@@ -25,7 +25,8 @@ ShellDelegateImpl::ShellDelegateImpl() |
locked_(false), |
spoken_feedback_enabled_(false), |
high_contrast_enabled_(false), |
- screen_magnifier_type_(MAGNIFIER_OFF) { |
+ screen_magnifier_enabled_(false), |
+ screen_magnifier_type_(kDefaultMagnifierType) { |
} |
ShellDelegateImpl::~ShellDelegateImpl() { |
@@ -134,10 +135,18 @@ bool ShellDelegateImpl::IsHighContrastEnabled() const { |
return high_contrast_enabled_; |
} |
-void ShellDelegateImpl::SetMagnifier(MagnifierType type) { |
+void ShellDelegateImpl::SetMagnifierEnabled(bool enabled) { |
+ screen_magnifier_enabled_ = enabled; |
+} |
+ |
+void ShellDelegateImpl::SetMagnifierType(MagnifierType type) { |
screen_magnifier_type_ = type; |
} |
+bool ShellDelegateImpl::IsMagnifierEnabled() const { |
+ return screen_magnifier_enabled_; |
+} |
+ |
MagnifierType ShellDelegateImpl::GetMagnifierType() const { |
return screen_magnifier_type_; |
} |