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

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

Issue 5839003: Fix to enable toggling accessibility using Ctrl+Alt+Z (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years 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/chromeos/login/wizard_accessibility_handler.cc
===================================================================
--- chrome/browser/chromeos/login/wizard_accessibility_handler.cc (revision 69334)
+++ chrome/browser/chromeos/login/wizard_accessibility_handler.cc (working copy)
@@ -13,7 +13,6 @@
#include "base/string_number_conversions.h"
#include "chrome/browser/accessibility_events.h"
#include "chrome/browser/chromeos/cros/cros_library.h"
-#include "chrome/browser/chromeos/cros/speech_synthesis_library.h"
#include "chrome/browser/extensions/extension_accessibility_api.h"
#include "chrome/browser/extensions/extension_accessibility_api_constants.h"
#include "chrome/browser/profiles/profile_manager.h"
@@ -109,8 +108,18 @@
EarconType earcon = NO_EARCON;
DescribeAccessibilityEvent(type, control_info, &description, &earcon);
Speak(description.c_str(), false, true);
+ if (earcon != NO_EARCON) {
+ PlayEarcon(earcon);
+ }
xiyuan 2010/12/15 23:07:20 nit: you don't need wrap one-liner in "{}"
}
+void WizardAccessibilityHandler::PlayEarcon(EarconType earcon_type) {
+ if (chromeos::CrosLibrary::Get()->EnsureLoaded()) {
+ chromeos::CrosLibrary::Get()->GetSpeechSynthesisLibrary()->
+ PlayEarcon(earcon_type);
+ }
+}
+
void WizardAccessibilityHandler::Speak(const char* speak_str,
bool queue,
bool interruptible) {

Powered by Google App Engine
This is Rietveld 408576698