OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 /** |
| 6 * @fileoverview This is the base class responsible for earcons management. |
| 7 */ |
| 8 |
| 9 goog.provide('cvox.AbstractEarconsManager'); |
| 10 |
| 11 goog.require('cvox.AbstractEarcons'); |
| 12 |
| 13 /** |
| 14 * @constructor |
| 15 * @extends {cvox.AbstractEarcons} |
| 16 */ |
| 17 cvox.AbstractEarconsManager = function() { |
| 18 //Inherit AbstractEarcons |
| 19 cvox.AbstractEarcons.call(this); |
| 20 }; |
| 21 goog.inherits(cvox.AbstractEarconsManager, cvox.AbstractEarcons); |
| 22 |
| 23 /** |
| 24 * Switch to the next earcon set and optionally announce its name. |
| 25 * If no earcon sets have been specified this function is a NOOP. |
| 26 * @param {boolean} announce If true, will announce the name of the |
| 27 * new earcon set. |
| 28 */ |
| 29 cvox.AbstractEarconsManager.prototype.nextEarcons = function(announce) { |
| 30 // TODO(svetoslavganov): Figure out if the user should be able to switch |
| 31 // earcons and if not remove this method. |
| 32 if (this.logEnabled()) { |
| 33 this.log('[' + this.getName() + '] nextEarcons(' + announce + ')'); |
| 34 } |
| 35 }; |
OLD | NEW |