diff options
Diffstat (limited to 'chromium/chrome/browser/resources/chromeos/chromevox/host/chrome/earcons.js')
-rw-r--r-- | chromium/chrome/browser/resources/chromeos/chromevox/host/chrome/earcons.js | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/chromium/chrome/browser/resources/chromeos/chromevox/host/chrome/earcons.js b/chromium/chrome/browser/resources/chromeos/chromevox/host/chrome/earcons.js deleted file mode 100644 index c250e8c3967..00000000000 --- a/chromium/chrome/browser/resources/chromeos/chromevox/host/chrome/earcons.js +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright 2014 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -/** - * @fileoverview Bridge that sends earcon messages from content scripts or - * other pages to the main background page. - * - */ - - -goog.provide('cvox.ChromeEarcons'); - -goog.require('cvox.AbstractEarcons'); -goog.require('cvox.ExtensionBridge'); -goog.require('cvox.HostFactory'); - - -/** - * @constructor - * @extends {cvox.AbstractEarcons} - */ -cvox.ChromeEarcons = function() { - goog.base(this); -}; -goog.inherits(cvox.ChromeEarcons, cvox.AbstractEarcons); - - -/** - * @override - */ -cvox.ChromeEarcons.prototype.playEarcon = function(earcon) { - goog.base(this, 'playEarcon', earcon); - if (!this.enabled) { - return; - } - - cvox.ExtensionBridge.send({ - 'target': 'EARCON', - 'action': 'play', - 'earcon': earcon}); -}; - - -/** - * @override - */ -cvox.ChromeEarcons.prototype.toggle = function() { - goog.base(this, 'toggle'); - cvox.ChromeVox.host.sendToBackgroundPage({ - 'target': 'Prefs', - 'action': 'setPref', - 'pref': 'earcons', - 'value': this.enabled - }); - if (!this.enabled) { - cvox.ChromeVox.host.sendToBackgroundPage({ - 'target': 'Prefs', - 'action': 'setPref', - 'pref': 'useVerboseMode', - 'value': true - }); - } - return this.enabled; -}; - - -cvox.HostFactory.earconsConstructor = cvox.ChromeEarcons; |