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

Side by Side Diff: chrome/common/extensions/api/tts.json

Issue 9967021: Uses a system-wide notion of isSpeaking in the Mac extension TTS api. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix mock expectations. Created 8 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 { 6 {
7 "namespace": "tts", 7 "namespace": "tts",
8 "types": [ 8 "types": [
9 { 9 {
10 "id": "TtsEvent", 10 "id": "TtsEvent",
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 }, 176 },
177 { 177 {
178 "name": "stop", 178 "name": "stop",
179 "type": "function", 179 "type": "function",
180 "description": "Stops any current speech.", 180 "description": "Stops any current speech.",
181 "parameters": [] 181 "parameters": []
182 }, 182 },
183 { 183 {
184 "name": "isSpeaking", 184 "name": "isSpeaking",
185 "type": "function", 185 "type": "function",
186 "description": "Checks if the engine is currently speaking.", 186 "description": "Reports if the engine is currently speaking. Note: On Ma c OS X, this will return true if the system speech engine is speaking, even if i t wasn't initiated by Chrome.",
kathyw 2012/04/26 22:21:34 "Reports if" is ambiguous. How about "Checks wheth
David Tseng 2012/04/26 23:20:42 On 2012/04/26 22:21:34, kathyw wrote: Done.
187 "parameters": [ 187 "parameters": [
188 { 188 {
189 "type": "function", 189 "type": "function",
190 "name": "callback", 190 "name": "callback",
191 "optional": true, 191 "optional": true,
192 "parameters": [ 192 "parameters": [
193 { 193 {
194 "name": "speaking", 194 "name": "speaking",
195 "type": "boolean", 195 "type": "boolean",
196 "description": "True if speaking, false otherwise." 196 "description": "True if speaking, false otherwise."
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 "name": "event", 230 "name": "event",
231 "$ref": "TtsEvent", 231 "$ref": "TtsEvent",
232 "description": "The event from the text-to-speech engine indicating the status of this utterance." 232 "description": "The event from the text-to-speech engine indicating the status of this utterance."
233 } 233 }
234 ], 234 ],
235 "description": "Used to pass events back to the function calling speak() ." 235 "description": "Used to pass events back to the function calling speak() ."
236 } 236 }
237 ] 237 ]
238 } 238 }
239 ] 239 ]
OLDNEW
« no previous file with comments | « chrome/browser/speech/extension_api/tts_extension_apitest.cc ('k') | chrome/common/extensions/docs/tts.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698