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

Unified Diff: chrome/browser/resources/chromeos/chromevox/chromevox/background/background.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
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/chromeos/chromevox/chromevox/background/background.js
diff --git a/chrome/browser/resources/chromeos/chromevox/chromevox/background/background.js b/chrome/browser/resources/chromeos/chromevox/chromevox/background/background.js
index 21682f724433dccbc9109ebbb9d8c2a668c95314..daad1a489330bc8409ca584dbbbf5abb65dbaea3 100644
--- a/chrome/browser/resources/chromeos/chromevox/chromevox/background/background.js
+++ b/chrome/browser/resources/chromeos/chromevox/chromevox/background/background.js
@@ -381,14 +381,16 @@ cvox.ChromeVoxBackground.prototype.addBridgeListener = function() {
break;
case 'TTS':
if (msg['startCallbackId'] != undefined) {
- msg['properties']['startCallback'] = function() {
+ msg['properties']['startCallback'] = function(opt_cleanupOnly) {
port.postMessage({'message': 'TTS_CALLBACK',
+ 'cleanupOnly': opt_cleanupOnly,
'id': msg['startCallbackId']});
};
}
if (msg['endCallbackId'] != undefined) {
- msg['properties']['endCallback'] = function() {
+ msg['properties']['endCallback'] = function(opt_cleanupOnly) {
port.postMessage({'message': 'TTS_CALLBACK',
+ 'cleanupOnly': opt_cleanupOnly,
'id': msg['endCallbackId']});
};
}
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698