| Index: chrome/browser/resources/chromeos/chromevox/host/interface/abstract_tts.js
|
| diff --git a/chrome/browser/resources/chromeos/chromevox/host/interface/abstract_tts.js b/chrome/browser/resources/chromeos/chromevox/host/interface/abstract_tts.js
|
| index 5e31345c5b6ced3d668fbdbf7d3710310848ae4d..226ab9a0f7a4e57b0027fd7882cf668fb338887d 100644
|
| --- a/chrome/browser/resources/chromeos/chromevox/host/interface/abstract_tts.js
|
| +++ b/chrome/browser/resources/chromeos/chromevox/host/interface/abstract_tts.js
|
| @@ -143,6 +143,15 @@ cvox.AbstractTts.prototype.increaseOrDecreaseProperty =
|
| this.ttsProperties[propertyName] = Math.max(Math.min(current, max), min);
|
| };
|
|
|
| +/**
|
| + * 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.AbstractTts.prototype.propertyToPercentage = function(property) {
|
| + return (this.ttsProperties[property] - this.propertyMin[property]) /
|
| + Math.abs(this.propertyMax[property] - this.propertyMin[property]);
|
| +};
|
|
|
| /**
|
| * Merges the given properties with the default ones. Always returns a
|
|
|