| Index: chrome/browser/resources/chromeos/chromevox/host/chrome/tts_background.js
|
| diff --git a/chrome/browser/resources/chromeos/chromevox/host/chrome/tts_background.js b/chrome/browser/resources/chromeos/chromevox/host/chrome/tts_background.js
|
| index 94376942a4745dbc7a8f5d386bfe57119d2cd52c..b742b90d4b8179bace01e54b008797068643f4f0 100644
|
| --- a/chrome/browser/resources/chromeos/chromevox/host/chrome/tts_background.js
|
| +++ b/chrome/browser/resources/chromeos/chromevox/host/chrome/tts_background.js
|
| @@ -538,6 +538,17 @@ cvox.TtsBackground.prototype.onError_ = function(errorMessage) {
|
| };
|
|
|
| /**
|
| + * Converts an engine property value to a percentage from 0.00 to 1.00.
|
| + * @param {string} property The property to convert.
|
| + * @return {?number} The percentage of the property.
|
| + */
|
| +cvox.TtsBackground.prototype.propertyToPercentage = function(property) {
|
| + return (this.ttsProperties[property] - this.propertyMin[property]) /
|
| + Math.abs(this.propertyMax[property] - this.propertyMin[property]);
|
| +};
|
| +
|
| +
|
| +/**
|
| * @override
|
| */
|
| cvox.TtsBackground.prototype.preprocess = function(text, properties) {
|
|
|