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

Unified Diff: chrome/browser/resources/chromeos/chromevox/chromevox/injected/ui/search_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/chromevox/injected/ui/search_widget.js
diff --git a/chrome/browser/resources/chromeos/chromevox/chromevox/injected/ui/search_widget.js b/chrome/browser/resources/chromeos/chromevox/chromevox/injected/ui/search_widget.js
index fec7fb1f88f44299e350fcd22d1483e1aa5e9747..410813aaed03f9533c1ec4a4fa7eb7466cf00300 100644
--- a/chrome/browser/resources/chromeos/chromevox/chromevox/injected/ui/search_widget.js
+++ b/chrome/browser/resources/chromeos/chromevox/chromevox/injected/ui/search_widget.js
@@ -323,12 +323,12 @@ cvox.SearchWidget.prototype.toggleCaseSensitivity_ = function() {
if (this.caseSensitive_) {
cvox.SearchWidget.caseSensitive_ = false;
cvox.ChromeVox.tts.speak(
- cvox.ChromeVox.msgs.getMsg('ignoring_case'),
+ Msgs.getMsg('ignoring_case'),
cvox.QueueMode.FLUSH, null);
} else {
this.caseSensitive_ = true;
cvox.ChromeVox.tts.speak(
- cvox.ChromeVox.msgs.getMsg('case_sensitive'),
+ Msgs.getMsg('case_sensitive'),
cvox.QueueMode.FLUSH, null);
}
};
@@ -462,7 +462,7 @@ cvox.SearchWidget.prototype.outputSearchResult_ = function(result, searchStr) {
null,
cvox.AbstractTts.PERSONALITY_ANNOUNCEMENT);
- cvox.ChromeVox.tts.speak(cvox.ChromeVox.msgs.getMsg('search_help_item'),
+ cvox.ChromeVox.tts.speak(Msgs.getMsg('search_help_item'),
cvox.QueueMode.QUEUE,
cvox.AbstractTts.PERSONALITY_ANNOTATION);
@@ -499,7 +499,7 @@ cvox.SearchWidget.prototype.outputSearchResultToBraille_ = function(searchStr) {
// Mark the string as a search result by adding a prefix
// and adjust the targetIndex accordingly.
var oldLength = text.length;
- text = cvox.ChromeVox.msgs.getMsg('mark_as_search_result_brl', [text]);
+ text = Msgs.getMsg('mark_as_search_result_brl', [text]);
var newLength = text.length;
targetIndex += (newLength - oldLength);

Powered by Google App Engine
This is Rietveld 408576698