summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/ash/chrome_shell_delegate.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/ash/chrome_shell_delegate.cc')
-rw-r--r--chrome/browser/ui/ash/chrome_shell_delegate.cc22
1 files changed, 19 insertions, 3 deletions
diff --git a/chrome/browser/ui/ash/chrome_shell_delegate.cc b/chrome/browser/ui/ash/chrome_shell_delegate.cc
index 5354516..b784036 100644
--- a/chrome/browser/ui/ash/chrome_shell_delegate.cc
+++ b/chrome/browser/ui/ash/chrome_shell_delegate.cc
@@ -355,19 +355,35 @@ void ChromeShellDelegate::ToggleHighContrast() {
#endif
}
+bool ChromeShellDelegate::IsMagnifierEnabled() const {
+#if defined(OS_CHROMEOS)
+ DCHECK(chromeos::MagnificationManager::Get());
+ return chromeos::MagnificationManager::Get()->IsMagnifierEnabled();
+#else
+ return false;
+#endif
+}
+
ash::MagnifierType ChromeShellDelegate::GetMagnifierType() const {
#if defined(OS_CHROMEOS)
DCHECK(chromeos::MagnificationManager::Get());
return chromeos::MagnificationManager::Get()->GetMagnifierType();
#else
- return ash::MAGNIFIER_OFF;
+ return ash::kDefaultMagnifierType;
+#endif
+}
+
+void ChromeShellDelegate::SetMagnifierEnabled(bool enabled) {
+#if defined(OS_CHROMEOS)
+ DCHECK(chromeos::MagnificationManager::Get());
+ return chromeos::MagnificationManager::Get()->SetMagnifierEnabled(enabled);
#endif
}
-void ChromeShellDelegate::SetMagnifier(ash::MagnifierType type) {
+void ChromeShellDelegate::SetMagnifierType(ash::MagnifierType type) {
#if defined(OS_CHROMEOS)
DCHECK(chromeos::MagnificationManager::Get());
- return chromeos::MagnificationManager::Get()->SetMagnifier(type);
+ return chromeos::MagnificationManager::Get()->SetMagnifierType(type);
#endif
}