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

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

Issue 15108002: Add Pause and Resume to Web TTS & Extension TTS APIs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 6 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": "ttsEngine", 7 "namespace": "ttsEngine",
8 "functions": [ 8 "functions": [
9 { 9 {
10 "name": "sendTtsEvent", 10 "name": "sendTtsEvent",
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 "$ref": "tts.TtsEvent", 89 "$ref": "tts.TtsEvent",
90 "description": "The event from the text-to-speech engine indicat ing the status of this utterance." 90 "description": "The event from the text-to-speech engine indicat ing the status of this utterance."
91 } 91 }
92 ] 92 ]
93 } 93 }
94 ] 94 ]
95 }, 95 },
96 { 96 {
97 "name": "onStop", 97 "name": "onStop",
98 "type": "function", 98 "type": "function",
99 "description": "Fired when a call is made to tts.stop and this extension may be in the middle of speaking. If an extension receives a call to onStop and speech is already stopped, it should do nothing (not raise an error)." 99 "description": "Fired when a call is made to tts.stop and this extension may be in the middle of speaking. If an extension receives a call to onStop and speech is already stopped, it should do nothing (not raise an error). If speech is in the paused state, this should cancel the paused state."
100 },
101 {
102 "name": "onPause",
103 "type": "function",
104 "description": "Optional: if an engine supports the pause event, it shou ld pause the current utterance being spoken, if any, until it receives a resume event or stop event. Note that a stop event should also clear the paused state."
105 },
106 {
107 "name": "onResume",
108 "type": "function",
109 "description": "Optional: if an engine supports the pause event, it shou ld also support the resume event, to continue speaking the current utterance, if any. Note that a stop event should also clear the paused state."
100 } 110 }
101 ] 111 ]
102 } 112 }
103 ] 113 ]
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/tts.json ('k') | chrome/test/data/extensions/api_test/tts/pause_resume/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698