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

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

Issue 7606021: Fix to make OOBE update screen speak (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/update_view.cc
diff --git a/chrome/browser/chromeos/login/update_view.cc b/chrome/browser/chromeos/login/update_view.cc
index 541dee7ea7fc2d8670a824fa91e9b72b6471c5d3..6e192cfa0fad73c2a6e5809e43d46865f149e92d 100644
--- a/chrome/browser/chromeos/login/update_view.cc
+++ b/chrome/browser/chromeos/login/update_view.cc
@@ -6,6 +6,7 @@
#include <string>
+#include "base/logging.h"
#include "base/utf_string_conversions.h"
#include "chrome/browser/chromeos/login/helper.h"
#include "chrome/browser/chromeos/login/rounded_rect_painter.h"
@@ -240,6 +241,24 @@ void UpdateView::UpdateVisibility() {
} else {
throbber_->Stop();
}
+
+ // Speak the shown label when accessibility is enabled.
+ const Label* label_spoken(NULL);
+ if (checking_label_->IsVisible()) {
+ label_spoken = checking_label_;
+ } else if (manual_reboot_label_->IsVisible()) {
+ label_spoken = manual_reboot_label_;
+ } else if (preparing_updates_label_->IsVisible()) {
+ label_spoken = preparing_updates_label_;
+ } else if (installing_updates_label_->IsVisible()) {
+ label_spoken = installing_updates_label_;
+ } else {
+ NOTREACHED();
+ }
+ const std::string text =
+ label_spoken ? WideToUTF8(label_spoken->GetText()) : std::string();
+ WizardAccessibilityHelper::GetInstance()->MaybeSpeak(text.c_str(), false,
+ true);
}
} // namespace chromeos
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698