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

Unified Diff: chrome/browser/resources/chromeos/chromevox/chromevox/injected/initial_speech.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/initial_speech.js
diff --git a/chrome/browser/resources/chromeos/chromevox/chromevox/injected/initial_speech.js b/chrome/browser/resources/chromeos/chromevox/chromevox/injected/initial_speech.js
index 654769aa154bd293be2c55aaca576ab1a9f1a006..3e13f57f4fc26924525accb82a321d2ed773bb94 100644
--- a/chrome/browser/resources/chromeos/chromevox/chromevox/injected/initial_speech.js
+++ b/chrome/browser/resources/chromeos/chromevox/chromevox/injected/initial_speech.js
@@ -49,14 +49,14 @@ cvox.InitialSpeech.speak = function() {
if (title && !disableSpeak) {
cvox.ChromeVox.tts.speak(
- title, cvox.AbstractTts.QUEUE_MODE_FLUSH);
+ title, cvox.QueueMode.FLUSH);
}
cvox.BrailleOverlayWidget.getInstance().init();
}
// Initialize live regions and speak alerts.
cvox.LiveRegions.init(
- new Date(), cvox.AbstractTts.QUEUE_MODE_QUEUE, disableSpeak);
+ new Date(), cvox.QueueMode.QUEUE, disableSpeak);
// If our activeElement is on body, try to sync to the first element. This
// actually happens inside of NavigationManager.reset, which doesn't get
@@ -78,7 +78,7 @@ cvox.InitialSpeech.speak = function() {
if (!disableSpeak) {
cvox.ChromeVoxEventSuspender.withSuspendedEvents(function() {
cvox.ChromeVox.navigationManager.finishNavCommand(
- '', true, cvox.AbstractTts.QUEUE_MODE_QUEUE);
+ '', true, cvox.QueueMode.QUEUE);
})();
}
}

Powered by Google App Engine
This is Rietveld 408576698