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

Unified Diff: chrome/browser/resources/chromeos/chromevox/host/chrome/tts.js

Issue 955643006: Allows endCallbacks in tts to queue up speech in the speech queue and simplify speech output logic. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 c23038d38c1cb7c5fcbb99d30b4f238fd91dfcd9..77e257f6b973a2ecadaabe64087d297f11b70c8b 100644
--- a/chrome/browser/resources/chromeos/chromevox/host/chrome/tts.js
+++ b/chrome/browser/resources/chromeos/chromevox/host/chrome/tts.js
@@ -97,7 +97,9 @@ cvox.ChromeTts.prototype.addBridgeListener = function() {
var id = msg['id'];
var func = cvox.ChromeTts.functionMap[id];
if (func != undefined) {
- func();
+ if (!msg['cleanupOnly']) {
+ func();
+ }
delete cvox.ChromeTts.functionMap[id];
}
}

Powered by Google App Engine
This is Rietveld 408576698