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

Unified Diff: chrome/browser/resources/chromeos/chromevox/host/chrome/tts.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/host/chrome/tts.js
diff --git a/chrome/browser/resources/chromeos/chromevox/host/chrome/tts.js b/chrome/browser/resources/chromeos/chromevox/host/chrome/tts.js
index 508938b9ac826b3b3645a1980470be772faa1dc9..6d466a5288534ae56b106ecc61a8a90fc72b31bf 100644
--- a/chrome/browser/resources/chromeos/chromevox/host/chrome/tts.js
+++ b/chrome/browser/resources/chromeos/chromevox/host/chrome/tts.js
@@ -107,8 +107,7 @@ cvox.ChromeTts.prototype.addBridgeListener = function() {
/**
* Creates a message suitable for sending as a speak action to background tts.
* @param {string} textString The string of text to be spoken.
- * @param {number=} queueMode The queue mode: cvox.AbstractTts.QUEUE_MODE_FLUSH,
- * for flush, cvox.AbstractTts.QUEUE_MODE_QUEUE for adding to queue.
+ * @param {cvox.QueueMode} queueMode The queue mode.
* @param {Object=} properties Speech properties to use for this utterance.
* @return {Object} A message.
* @private
@@ -132,6 +131,7 @@ cvox.ChromeTts.prototype.createMessageForProperties_ =
message['endCallbackId'] = cvox.ChromeTts.callId++;
}
return message;
- };
+};
+/** @override */
cvox.HostFactory.ttsConstructor = cvox.ChromeTts;

Powered by Google App Engine
This is Rietveld 408576698