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

Unified Diff: chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js

Issue 1138813002: Fix continuous read in ChromeVox Next. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: check opt_cleanupOnly Created 5 years, 7 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/cvox2/background/output.js
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js
index e54e2d1c9d3de8b8b577f7c6e67e2691040be9b3..3be31387ffb3b7cb16a2a2ecb9f57c6eea95bcb7 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js
@@ -52,7 +52,7 @@ Output = function() {
this.brailleBuffer_ = [];
/** @type {!Array<Object>} */
this.locations_ = [];
- /** @type {function()} */
+ /** @type {function(?)} */
this.speechEndCallback_;
/**
@@ -614,7 +614,10 @@ Output.prototype = {
* @param {function()} callback
*/
onSpeechEnd: function(callback) {
- this.speechEndCallback_ = callback;
+ this.speechEndCallback_ = function(opt_cleanupOnly) {
+ if (!opt_cleanupOnly)
+ callback();
+ }.bind(this);
return this;
},

Powered by Google App Engine
This is Rietveld 408576698