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

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

Issue 14200048: Introduce AcccessibilityManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 7 months 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 7f5879c67cb009fff9e23726bcd10799268a4d2a..dd0abbc7d457a1278604abb44becc387637d59fb 100644
--- a/chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc
+++ b/chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc
@@ -4,8 +4,9 @@
#include "chrome/browser/ui/webui/chromeos/login/core_oobe_handler.h"
+#include "ash/magnifier/magnifier_constants.h"
#include "base/memory/scoped_ptr.h"
-#include "chrome/browser/chromeos/accessibility/accessibility_util.h"
+#include "chrome/browser/chromeos/accessibility/accessibility_manager.h"
#include "chrome/browser/chromeos/accessibility/magnification_manager.h"
#include "chrome/browser/chromeos/login/wizard_controller.h"
#include "chrome/browser/chromeos/system/statistics_provider.h"
@@ -113,7 +114,7 @@ void CoreOobeHandler::HandleUpdateCurrentScreen(const std::string& screen) {
}
void CoreOobeHandler::HandleEnableHighContrast(bool enabled) {
- accessibility::EnableHighContrast(enabled);
+ AccessibilityManager::Get()->EnableHighContrast(enabled);
}
void CoreOobeHandler::HandleEnableScreenMagnifier(bool enabled) {
@@ -125,7 +126,8 @@ void CoreOobeHandler::HandleEnableScreenMagnifier(bool enabled) {
void CoreOobeHandler::HandleEnableSpokenFeedback() {
// Checkbox is initialized on page init and updates when spoken feedback
// setting is changed so just toggle spoken feedback here.
- accessibility::ToggleSpokenFeedback(web_ui(), ash::A11Y_NOTIFICATION_NONE);
+ AccessibilityManager::Get()->ToggleSpokenFeedback(
+ web_ui(), ash::A11Y_NOTIFICATION_NONE);
}
void CoreOobeHandler::ShowOobeUI(bool show) {
@@ -142,9 +144,9 @@ void CoreOobeHandler::UpdateA11yState() {
DCHECK(MagnificationManager::Get());
base::DictionaryValue a11y_info;
a11y_info.SetBoolean("highContrastEnabled",
- accessibility::IsHighContrastEnabled());
+ AccessibilityManager::Get()->IsHighContrastEnabled());
a11y_info.SetBoolean("spokenFeedbackEnabled",
- accessibility::IsSpokenFeedbackEnabled());
+ AccessibilityManager::Get()->IsSpokenFeedbackEnabled());
a11y_info.SetBoolean("screenMagnifierEnabled",
MagnificationManager::Get()->IsMagnifierEnabled());
CallJS("cr.ui.Oobe.refreshA11yInfo", a11y_info);
« no previous file with comments | « chrome/browser/ui/ash/chrome_shell_delegate_chromeos.cc ('k') | chrome/browser/ui/webui/options/browser_options_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698