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

Unified Diff: chrome/browser/chromeos/login/wizard_accessibility_helper.cc

Issue 7781004: Move Speak() in accessibility_utils, speak enable and disable strings when (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unused headers Created 9 years, 4 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
« no previous file with comments | « chrome/browser/chromeos/login/wizard_accessibility_handler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/wizard_accessibility_helper.cc
diff --git a/chrome/browser/chromeos/login/wizard_accessibility_helper.cc b/chrome/browser/chromeos/login/wizard_accessibility_helper.cc
index 83533230842f6307b663e9d349065fa7acc9d23e..aec9062d059bea4f86f3293401ab92a316d24cff 100644
--- a/chrome/browser/chromeos/login/wizard_accessibility_helper.cc
+++ b/chrome/browser/chromeos/login/wizard_accessibility_helper.cc
@@ -92,7 +92,7 @@ bool WizardAccessibilityHelper::IsAccessibilityEnabled() {
void WizardAccessibilityHelper::MaybeSpeak(const char* str, bool queue,
bool interruptible) {
if (IsAccessibilityEnabled()) {
- accessibility_handler_->Speak(str, queue, interruptible);
+ accessibility::Speak(str, queue, interruptible);
}
}
@@ -110,14 +110,7 @@ void WizardAccessibilityHelper::ToggleAccessibility() {
}
void WizardAccessibilityHelper::SetAccessibilityEnabled(bool enabled) {
- bool doSpeak = (IsAccessibilityEnabled() != enabled);
accessibility::EnableAccessibility(enabled, NULL);
- if (doSpeak) {
- accessibility_handler_->Speak(enabled ?
- l10n_util::GetStringUTF8(IDS_CHROMEOS_ACC_ACCESS_ENABLED).c_str() :
- l10n_util::GetStringUTF8(IDS_CHROMEOS_ACC_ACCESS_DISABLED).c_str(),
- false, true);
- }
}
} // namespace chromeos
« no previous file with comments | « chrome/browser/chromeos/login/wizard_accessibility_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698