| Index: chrome/browser/resources/chromeos/chromevox/host/chrome/classic_earcons.js
|
| diff --git a/chrome/browser/resources/chromeos/chromevox/host/chrome/earcons_background.js b/chrome/browser/resources/chromeos/chromevox/host/chrome/classic_earcons.js
|
| similarity index 71%
|
| rename from chrome/browser/resources/chromeos/chromevox/host/chrome/earcons_background.js
|
| rename to chrome/browser/resources/chromeos/chromevox/host/chrome/classic_earcons.js
|
| index 500da1a1e4825b75a2782ed54ac0ad4690b922e8..98773dd871d36dd69563c2c0c559971486012a37 100644
|
| --- a/chrome/browser/resources/chromeos/chromevox/host/chrome/earcons_background.js
|
| +++ b/chrome/browser/resources/chromeos/chromevox/host/chrome/classic_earcons.js
|
| @@ -9,7 +9,7 @@
|
| */
|
|
|
|
|
| -goog.provide('cvox.EarconsBackground');
|
| +goog.provide('cvox.ClassicEarcons');
|
|
|
| goog.require('cvox.AbstractEarcons');
|
|
|
| @@ -18,7 +18,7 @@ goog.require('cvox.AbstractEarcons');
|
| * @constructor
|
| * @extends {cvox.AbstractEarcons}
|
| */
|
| -cvox.EarconsBackground = function() {
|
| +cvox.ClassicEarcons = function() {
|
| goog.base(this);
|
|
|
| this.audioMap = new Object();
|
| @@ -26,13 +26,13 @@ cvox.EarconsBackground = function() {
|
| this.enabled = false;
|
| }
|
| };
|
| -goog.inherits(cvox.EarconsBackground, cvox.AbstractEarcons);
|
| +goog.inherits(cvox.ClassicEarcons, cvox.AbstractEarcons);
|
|
|
|
|
| /**
|
| * @return {string} The human-readable name of the earcon set.
|
| */
|
| -cvox.EarconsBackground.prototype.getName = function() {
|
| +cvox.ClassicEarcons.prototype.getName = function() {
|
| return 'ChromeVox earcons';
|
| };
|
|
|
| @@ -40,22 +40,20 @@ cvox.EarconsBackground.prototype.getName = function() {
|
| /**
|
| * @return {string} The base URL for loading earcons.
|
| */
|
| -cvox.EarconsBackground.prototype.getBaseUrl = function() {
|
| - return cvox.EarconsBackground.BASE_URL;
|
| +cvox.ClassicEarcons.prototype.getBaseUrl = function() {
|
| + return cvox.ClassicEarcons.BASE_URL;
|
| };
|
|
|
|
|
| /**
|
| * @override
|
| */
|
| -cvox.EarconsBackground.prototype.playEarcon = function(earcon) {
|
| +cvox.ClassicEarcons.prototype.playEarcon = function(earcon) {
|
| goog.base(this, 'playEarcon', earcon);
|
| if (!this.enabled) {
|
| return;
|
| }
|
| - if (window['console']) {
|
| - window['console']['log']('Earcon ' + earcon);
|
| - }
|
| + console.log('Earcon ' + earcon);
|
|
|
| this.currentAudio = this.audioMap[earcon];
|
| if (!this.currentAudio) {
|
| @@ -78,4 +76,4 @@ cvox.EarconsBackground.prototype.playEarcon = function(earcon) {
|
| * The base URL for loading eracons.
|
| * @type {string}
|
| */
|
| -cvox.EarconsBackground.BASE_URL = 'chromevox/background/earcons/';
|
| +cvox.ClassicEarcons.BASE_URL = 'chromevox/background/earcons/';
|
|
|