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

Unified Diff: chrome/browser/resources/chromeos/chromevox/chromevox/injected/ui/search_widget.js

Issue 604423002: Use an enum for ChromeVox queue mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 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 7f50592c4707efbfea9de84710362e966e507179..479adbcd54b69004b6d9c43befa7e826b942fbe1 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
@@ -131,7 +131,7 @@ cvox.SearchWidget.prototype.hide = function(opt_noSync) {
cvox.ChromeVox.navigationManager))(true);
cvox.ChromeVox.navigationManager.speakDescriptionArray(
cvox.ChromeVox.navigationManager.getDescription(),
- cvox.AbstractTts.QUEUE_MODE_QUEUE,
+ cvox.QueueMode.QUEUE,
null,
cvox.AbstractTts.PERSONALITY_ANNOUNCEMENT);
@@ -321,10 +321,14 @@ cvox.SearchWidget.prototype.createTextAreaNode_ = function() {
cvox.SearchWidget.prototype.toggleCaseSensitivity_ = function() {
if (this.caseSensitive_) {
cvox.SearchWidget.caseSensitive_ = false;
- cvox.ChromeVox.tts.speak('Ignoring case.', 0, null);
+ cvox.ChromeVox.tts.speak(
+ cvox.ChromeVox.msgs.getMsg('ignoring_case'),
+ cvox.QueueMode.FLUSH, null);
} else {
this.caseSensitive_ = true;
- cvox.ChromeVox.tts.speak('Case sensitive.', 0, null);
+ cvox.ChromeVox.tts.speak(
+ cvox.ChromeVox.msgs.getMsg('case_sensitive'),
+ cvox.QueueMode.FLUSH, null);
}
};
@@ -453,12 +457,12 @@ cvox.SearchWidget.prototype.outputSearchResult_ = function(result, searchStr) {
cvox.ChromeVox.navigationManager.speakDescriptionArray(
result,
- cvox.AbstractTts.QUEUE_MODE_FLUSH,
+ cvox.QueueMode.FLUSH,
null,
cvox.AbstractTts.PERSONALITY_ANNOUNCEMENT);
cvox.ChromeVox.tts.speak(cvox.ChromeVox.msgs.getMsg('search_help_item'),
- cvox.AbstractTts.QUEUE_MODE_QUEUE,
+ cvox.QueueMode.QUEUE,
cvox.AbstractTts.PERSONALITY_ANNOTATION);
// Output to Braille.

Powered by Google App Engine
This is Rietveld 408576698