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

Side by Side Diff: chrome/browser/resources/chromeos/chromevox/host/testing/tts.js

Issue 604423002: Use an enum for ChromeVox queue mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 2 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 Dummy implementation of TTS for testing. 6 * @fileoverview Dummy implementation of TTS for testing.
7 * 7 *
8 */ 8 */
9 9
10 goog.provide('cvox.TestTts'); 10 goog.provide('cvox.TestTts');
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 cvox.TestTts.prototype.getUtteranceList = function() { 124 cvox.TestTts.prototype.getUtteranceList = function() {
125 var result = []; 125 var result = [];
126 for (var i = 0; i < this.utterances_.length; i++) { 126 for (var i = 0; i < this.utterances_.length; i++) {
127 result.push(this.utterances_[i].text); 127 result.push(this.utterances_[i].text);
128 } 128 }
129 return result; 129 return result;
130 }; 130 };
131 131
132 /** 132 /**
133 * Return a list of strings of what was spoken by tts.speak(). 133 * Return a list of strings of what was spoken by tts.speak().
134 * @return {Array.<{text: string, queueMode: number}>} 134 * @return {Array.<{text: string, queueMode: cvox.QueueMode}>}
135 * A list of info about all utterances spoken since 135 * A list of info about all utterances spoken since
136 * initialization or the last call to clearUtterances. 136 * initialization or the last call to clearUtterances.
137 */ 137 */
138 cvox.TestTts.prototype.getUtteranceInfoList = function() { 138 cvox.TestTts.prototype.getUtteranceInfoList = function() {
139 return this.utterances_; 139 return this.utterances_;
140 }; 140 };
141 141
142 /** @override */ 142 /** @override */
143 cvox.HostFactory.ttsConstructor = cvox.TestTts; 143 cvox.HostFactory.ttsConstructor = cvox.TestTts;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698