OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 /** | 5 /** |
6 * @fileoverview Base class for implementing earcons. | 6 * @fileoverview Base class for implementing earcons. |
7 * | 7 * |
8 * When adding earcons, please add them to getEarconName and getEarconId. | 8 * When adding earcons, please add them to getEarconName and getEarconId. |
9 * | 9 * |
10 */ | 10 */ |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 | 65 |
66 /** | 66 /** |
67 * Plays the specified earcon sound. | 67 * Plays the specified earcon sound. |
68 * @param {cvox.Earcon} earcon An earcon identifier. | 68 * @param {cvox.Earcon} earcon An earcon identifier. |
69 */ | 69 */ |
70 cvox.AbstractEarcons.prototype.playEarcon = function(earcon) { | 70 cvox.AbstractEarcons.prototype.playEarcon = function(earcon) { |
71 }; | 71 }; |
72 | 72 |
73 | 73 |
74 /** | 74 /** |
| 75 * Cancels the specified earcon sound. |
| 76 * @param {cvox.Earcon} earcon An earcon identifier. |
| 77 */ |
| 78 cvox.AbstractEarcons.prototype.cancelEarcon = function(earcon) { |
| 79 }; |
| 80 |
| 81 |
| 82 /** |
75 * Whether or not earcons are available. | 83 * Whether or not earcons are available. |
76 * @return {boolean} True if earcons are available. | 84 * @return {boolean} True if earcons are available. |
77 */ | 85 */ |
78 cvox.AbstractEarcons.prototype.earconsAvailable = function() { | 86 cvox.AbstractEarcons.prototype.earconsAvailable = function() { |
79 return true; | 87 return true; |
80 }; | 88 }; |
81 | 89 |
82 | 90 |
83 /** | 91 /** |
84 * Toggles earcons on or off. | 92 * Toggles earcons on or off. |
85 * @return {boolean} True if earcons are now enabled; false otherwise. | 93 * @return {boolean} True if earcons are now enabled; false otherwise. |
86 */ | 94 */ |
87 cvox.AbstractEarcons.prototype.toggle = function() { | 95 cvox.AbstractEarcons.prototype.toggle = function() { |
88 cvox.AbstractEarcons.enabled = !cvox.AbstractEarcons.enabled; | 96 cvox.AbstractEarcons.enabled = !cvox.AbstractEarcons.enabled; |
89 return cvox.AbstractEarcons.enabled; | 97 return cvox.AbstractEarcons.enabled; |
90 }; | 98 }; |
OLD | NEW |