| 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 4b1ef2fe82f206670db4c9b1912a307c335bc1da..ad04cb9ab57a2b74898f217c8e1110aea1eff0a9 100644
|
| --- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js
|
| +++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js
|
| @@ -41,9 +41,12 @@ var Dir = AutomationUtil.Dir;
|
| * @param {!cursors.Range} range
|
| * @param {cursors.Range} prevRange
|
| * @param {chrome.automation.EventType|Output.EventType} type
|
| + * @param {{braille: (boolean|undefined), speech: (boolean|undefined)}=}
|
| + * opt_options
|
| * @constructor
|
| */
|
| -Output = function(range, prevRange, type) {
|
| +Output = function(range, prevRange, type, opt_options) {
|
| + opt_options = opt_options || {braille: true, speech: true};
|
| // TODO(dtseng): Include braille specific rules.
|
| /** @type {!cvox.Spannable} */
|
| this.buffer_ = new cvox.Spannable();
|
| @@ -59,8 +62,10 @@ Output = function(range, prevRange, type) {
|
| this.formatOptions_ = {speech: true, braille: false, location: true};
|
|
|
| this.render_(range, prevRange, type);
|
| - this.handleSpeech();
|
| - this.handleBraille();
|
| + if (opt_options.speech)
|
| + this.handleSpeech();
|
| + if (opt_options.braille)
|
| + this.handleBraille();
|
| this.handleDisplay();
|
| };
|
|
|
|
|