| Index: chrome/browser/resources/chromeos/chromevox/host/interface/abstract_earcons.js
|
| diff --git a/chrome/browser/resources/chromeos/chromevox/host/interface/abstract_earcons.js b/chrome/browser/resources/chromeos/chromevox/host/interface/abstract_earcons.js
|
| index 1dabd1ad6d461aea3f81f0a732af57caf8869229..c1c5dd19c9dadd518d5c2ef5844b3b0fb504e3d9 100644
|
| --- a/chrome/browser/resources/chromeos/chromevox/host/interface/abstract_earcons.js
|
| +++ b/chrome/browser/resources/chromeos/chromevox/host/interface/abstract_earcons.js
|
| @@ -37,10 +37,12 @@ cvox.Earcon = {
|
| OBJECT_SELECT: 'object_select',
|
| PAGE_FINISH_LOADING: 'page_finish_loading',
|
| PAGE_START_LOADING: 'page_start_loading',
|
| + POP_UP_BUTTON: 'pop_up_button',
|
| RECOVER_FOCUS: 'recover_focus',
|
| SELECTION: 'selection',
|
| SELECTION_REVERSE: 'selection_reverse',
|
| SKIP: 'skip',
|
| + SLIDER: 'slider',
|
| WRAP: 'wrap',
|
| WRAP_EDGE: 'wrap_edge',
|
| };
|
| @@ -50,16 +52,18 @@ cvox.Earcon = {
|
| * @constructor
|
| */
|
| cvox.AbstractEarcons = function() {
|
| - /**
|
| - * Public flag set to enable or disable earcons. Callers should prefer
|
| - * toggle(); however, this member is public for initialization.
|
| - * @type {boolean}
|
| - */
|
| - this.enabled = true;
|
| };
|
|
|
|
|
| /**
|
| + * Public static flag set to enable or disable earcons. Callers should prefer
|
| + * toggle(); however, this member is public for initialization.
|
| + * @type {boolean}
|
| + */
|
| +cvox.AbstractEarcons.enabled = true;
|
| +
|
| +
|
| +/**
|
| * Plays the specified earcon sound.
|
| * @param {cvox.Earcon} earcon An earcon identifier.
|
| */
|
| @@ -81,6 +85,6 @@ cvox.AbstractEarcons.prototype.earconsAvailable = function() {
|
| * @return {boolean} True if earcons are now enabled; false otherwise.
|
| */
|
| cvox.AbstractEarcons.prototype.toggle = function() {
|
| - this.enabled = !this.enabled;
|
| - return this.enabled;
|
| + cvox.AbstractEarcons.enabled = !cvox.AbstractEarcons.enabled;
|
| + return cvox.AbstractEarcons.enabled;
|
| };
|
|
|