| Index: chrome/browser/ui/ash/chrome_shell_delegate.cc
|
| diff --git a/chrome/browser/ui/ash/chrome_shell_delegate.cc b/chrome/browser/ui/ash/chrome_shell_delegate.cc
|
| index 9b22a5697f6a5b7fd078baeb435a0fc3c9cb7c0d..4972f379b24710efa31cb6b3429027f239df1a14 100644
|
| --- a/chrome/browser/ui/ash/chrome_shell_delegate.cc
|
| +++ b/chrome/browser/ui/ash/chrome_shell_delegate.cc
|
| @@ -354,6 +354,15 @@ 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());
|
| @@ -363,10 +372,17 @@ ash::MagnifierType ChromeShellDelegate::GetMagnifierType() const {
|
| #endif
|
| }
|
|
|
| -void ChromeShellDelegate::SetMagnifier(ash::MagnifierType type) {
|
| +void ChromeShellDelegate::SetMagnifierEnabled(bool enabled) {
|
| +#if defined(OS_CHROMEOS)
|
| + DCHECK(chromeos::MagnificationManager::Get());
|
| + return chromeos::MagnificationManager::Get()->SetMagnifierEnabled(enabled);
|
| +#endif
|
| +}
|
| +
|
| +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
|
| }
|
|
|
|
|