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

Unified Diff: chrome/browser/resources/chromeos/chromevox/common/time_widget.js

Issue 1362223003: Improve braille related message descriptions and clean up message handling in Chromevox. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@inputtypeexception
Patch Set: Move another braille message to Msgs.Untranslated Created 5 years, 3 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/resources/chromeos/chromevox/common/time_widget.js
diff --git a/chrome/browser/resources/chromeos/chromevox/common/time_widget.js b/chrome/browser/resources/chromeos/chromevox/common/time_widget.js
index 869189d6db4b34c4968c98cd5f3ac3af6742245b..8691d63fb85b67c14e6bd6f905951e48d8e8f15a 100644
--- a/chrome/browser/resources/chromeos/chromevox/common/time_widget.js
+++ b/chrome/browser/resources/chromeos/chromevox/common/time_widget.js
@@ -136,7 +136,7 @@ cvox.ChromeVoxHTMLTimeWidget.prototype.update_ = function(shouldSpeakLabel) {
var minutes = -1;
var seconds = 0;
var milliseconds = 0;
- var ampm = cvox.ChromeVox.msgs.getMsg('timewidget_am');
+ var ampm = Msgs.getMsg('timewidget_am');
if (splitTime.length > 1) {
minutes = splitTime[1];
}
@@ -149,14 +149,14 @@ cvox.ChromeVoxHTMLTimeWidget.prototype.update_ = function(shouldSpeakLabel) {
}
if (hours > 12) {
hours = hours - 12;
- ampm = cvox.ChromeVox.msgs.getMsg('timewidget_pm');
+ ampm = Msgs.getMsg('timewidget_pm');
}
if (hours == 12) {
- ampm = cvox.ChromeVox.msgs.getMsg('timewidget_pm');
+ ampm = Msgs.getMsg('timewidget_pm');
}
if (hours == 0) {
hours = 12;
- ampm = cvox.ChromeVox.msgs.getMsg('timewidget_am');
+ ampm = Msgs.getMsg('timewidget_am');
}
var changeMessage = '';
@@ -167,25 +167,25 @@ cvox.ChromeVoxHTMLTimeWidget.prototype.update_ = function(shouldSpeakLabel) {
if (hours != this.pHours_) {
changeMessage = changeMessage + hours + ' ' +
- cvox.ChromeVox.msgs.getMsg('timewidget_hours') + '\n';
+ Msgs.getMsg('timewidget_hours') + '\n';
this.pHours_ = hours;
}
if (minutes != this.pMinutes_) {
changeMessage = changeMessage + minutes + ' ' +
- cvox.ChromeVox.msgs.getMsg('timewidget_minutes') + '\n';
+ Msgs.getMsg('timewidget_minutes') + '\n';
this.pMinutes_ = minutes;
}
if (seconds != this.pSeconds_) {
changeMessage = changeMessage + seconds + ' ' +
- cvox.ChromeVox.msgs.getMsg('timewidget_seconds') + '\n';
+ Msgs.getMsg('timewidget_seconds') + '\n';
this.pSeconds_ = seconds;
}
if (milliseconds != this.pMilliseconds_) {
changeMessage = changeMessage + milliseconds + ' ' +
- cvox.ChromeVox.msgs.getMsg('timewidget_milliseconds') + '\n';
+ Msgs.getMsg('timewidget_milliseconds') + '\n';
this.pMilliseconds_ = milliseconds;
}

Powered by Google App Engine
This is Rietveld 408576698