| 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 ac6e6371b2ce2708feebd9b0907d6eaca7d486ef..dd887f861047c899920619df7fc0602862ec097d 100644
|
| --- a/chrome/browser/ui/ash/chrome_shell_delegate.cc
|
| +++ b/chrome/browser/ui/ash/chrome_shell_delegate.cc
|
| @@ -340,6 +340,44 @@ bool ChromeShellDelegate::IsSpokenFeedbackEnabled() const {
|
| #endif
|
| }
|
|
|
| +bool ChromeShellDelegate::IsHighContrastEnabled() const {
|
| +#if defined(OS_CHROMEOS)
|
| + return chromeos::accessibility::IsHighContrastEnabled();
|
| +#else
|
| + return false;
|
| +#endif
|
| +}
|
| +
|
| +void ChromeShellDelegate::ToggleHighContrast() {
|
| +#if defined(OS_CHROMEOS)
|
| + bool enabled = chromeos::accessibility::IsHighContrastEnabled();
|
| + chromeos::accessibility::EnableHighContrast(!enabled);
|
| +#endif
|
| +}
|
| +
|
| +ash::MagnifierType ChromeShellDelegate::GetMagnifierType() const {
|
| +#if defined(OS_CHROMEOS)
|
| + return chromeos::accessibility::GetMagnifierType();
|
| +#else
|
| + return ash::MAGNIFIER_NONE;
|
| +#endif
|
| +}
|
| +
|
| +void ChromeShellDelegate::SetScreenMagnifier(ash::MagnifierType type) {
|
| +#if defined(OS_CHROMEOS)
|
| + chromeos::accessibility::SetScreenMagnifier(type);
|
| +#endif
|
| +}
|
| +
|
| +bool ChromeShellDelegate::ShouldAlwaysShowAccessibilityMenu() const {
|
| +#if defined(OS_CHROMEOS)
|
| + // TODO(yoshiki): Add the checkbox on chrome://settings. crbug.com/158287
|
| + return false;
|
| +#else
|
| + return false;
|
| +#endif
|
| +}
|
| +
|
| app_list::AppListViewDelegate*
|
| ChromeShellDelegate::CreateAppListViewDelegate() {
|
| DCHECK(ash::Shell::HasInstance());
|
|
|