Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Side by Side Diff: chrome/browser/resources/chromeos/chromevox/host/interface/tts_interface.js

Issue 2563013003: Support audio ducking and suspension in ChromeVox (Closed)
Patch Set: Fix compile. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 Defines a Tts interface. 6 * @fileoverview Defines a Tts interface.
7 * 7 *
8 * All TTS engines in ChromeVox conform to the this interface. 8 * All TTS engines in ChromeVox conform to the this interface.
9 * 9 *
10 */ 10 */
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 /** 57 /**
58 * Called when any utterance starts. 58 * Called when any utterance starts.
59 */ 59 */
60 cvox.TtsCapturingEventListener.prototype.onTtsStart = function() { }; 60 cvox.TtsCapturingEventListener.prototype.onTtsStart = function() { };
61 61
62 /** 62 /**
63 * Called when any utterance ends. 63 * Called when any utterance ends.
64 */ 64 */
65 cvox.TtsCapturingEventListener.prototype.onTtsEnd = function() { }; 65 cvox.TtsCapturingEventListener.prototype.onTtsEnd = function() { };
66 66
67 /**
68 * Called when any utterance gets interrupted.
69 */
70 cvox.TtsCapturingEventListener.prototype.onTtsInterrupted = function() { };
67 71
68 /** 72 /**
69 * @interface 73 * @interface
70 */ 74 */
71 cvox.TtsInterface = function() { }; 75 cvox.TtsInterface = function() { };
72 76
73 /** 77 /**
74 * Speaks the given string using the specified queueMode and properties. 78 * Speaks the given string using the specified queueMode and properties.
75 * @param {string} textString The string of text to be spoken. 79 * @param {string} textString The string of text to be spoken.
76 * @param {cvox.QueueMode} queueMode The queue mode to use for speaking. 80 * @param {cvox.QueueMode} queueMode The queue mode to use for speaking.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 */ 120 */
117 cvox.TtsInterface.prototype.propertyToPercentage = function(property) { }; 121 cvox.TtsInterface.prototype.propertyToPercentage = function(property) { };
118 122
119 123
120 /** 124 /**
121 * Returns the default properties of the first tts that has default properties. 125 * Returns the default properties of the first tts that has default properties.
122 * @param {string} property Name of property. 126 * @param {string} property Name of property.
123 * @return {?number} The default value. 127 * @return {?number} The default value.
124 */ 128 */
125 cvox.TtsInterface.prototype.getDefaultProperty = function(property) { }; 129 cvox.TtsInterface.prototype.getDefaultProperty = function(property) { };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698