Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1188)

Unified Diff: chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc

Issue 11415025: A11y: Introduce High Contrast Mode and Screen Magnifier to ubar tray. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase @170134 Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc
diff --git a/chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc b/chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc
index 6a9c3255903aca0e990eb4b6c995118bfd8e40db..3aa63650fc138f58b642a9bbbb665a9e41facea7 100644
--- a/chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc
+++ b/chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc
@@ -74,8 +74,8 @@ void CoreOobeHandler::GetLocalizedStrings(
localized_strings->SetString("highContrastEnabled", "on");
if (chromeos::accessibility::IsSpokenFeedbackEnabled())
localized_strings->SetString("spokenFeedbackEnabled", "on");
- if (chromeos::accessibility::GetScreenMagnifierType() !=
- chromeos::accessibility::MAGNIFIER_OFF) {
+ if (chromeos::accessibility::GetMagnifierType() !=
+ ash::MAGNIFIER_OFF) {
localized_strings->SetString("screenMagnifierEnabled", "on");
}
}
@@ -146,10 +146,9 @@ void CoreOobeHandler::HandleEnableScreenMagnifier(const base::ListValue* args) {
return;
}
// TODO(nkostylev): Add support for partial screen magnifier.
- chromeos::accessibility::ScreenMagnifierType type = enabled ?
- chromeos::accessibility::MAGNIFIER_FULL :
- chromeos::accessibility::MAGNIFIER_OFF;
- chromeos::accessibility::SetScreenMagnifier(type);
+ ash::MagnifierType type = enabled ? ash::MAGNIFIER_FULL :
+ ash::MAGNIFIER_OFF;
+ chromeos::accessibility::SetMagnifier(type);
}
void CoreOobeHandler::HandleEnableSpokenFeedback(const base::ListValue* args) {
« no previous file with comments | « chrome/browser/ui/ash/chrome_shell_delegate.cc ('k') | chrome/browser/ui/webui/options/browser_options_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698