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

Side by Side Diff: chrome/browser/speech/tts_controller.h

Issue 102263005: Automatically trigger installation of high-quality speech synthesis extension. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Change extension manifest to match Chrome OS Created 7 years 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 (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 #ifndef CHROME_BROWSER_SPEECH_TTS_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_SPEECH_TTS_CONTROLLER_H_
6 #define CHROME_BROWSER_SPEECH_TTS_CONTROLLER_H_ 6 #define CHROME_BROWSER_SPEECH_TTS_CONTROLLER_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 // any. 274 // any.
275 void OnTtsEvent(int utterance_id, 275 void OnTtsEvent(int utterance_id,
276 TtsEventType event_type, 276 TtsEventType event_type,
277 int char_index, 277 int char_index,
278 const std::string& error_message); 278 const std::string& error_message);
279 279
280 // Return a list of all available voices, including the native voice, 280 // Return a list of all available voices, including the native voice,
281 // if supported, and all voices registered by extensions. 281 // if supported, and all voices registered by extensions.
282 void GetVoices(Profile* profile, std::vector<VoiceData>* out_voices); 282 void GetVoices(Profile* profile, std::vector<VoiceData>* out_voices);
283 283
284 // Called by TtsExtensionLoaderChromeOs::LoadTtsExtension when it
285 // finishes loading the built-in TTS component extension.
286 void RetrySpeakingQueuedUtterances();
287
288 // Called by the extension system or platform implementation when the 284 // Called by the extension system or platform implementation when the
289 // list of voices may have changed and should be re-queried. 285 // list of voices may have changed and should be re-queried.
290 void VoicesChanged(); 286 void VoicesChanged();
291 287
292 // Add a delegate that wants to be notified when the set of voices changes. 288 // Add a delegate that wants to be notified when the set of voices changes.
293 void AddVoicesChangedDelegate(VoicesChangedDelegate* delegate); 289 void AddVoicesChangedDelegate(VoicesChangedDelegate* delegate);
294 290
295 // Remove delegate that wants to be notified when the set of voices changes. 291 // Remove delegate that wants to be notified when the set of voices changes.
296 void RemoveVoicesChangedDelegate(VoicesChangedDelegate* delegate); 292 void RemoveVoicesChangedDelegate(VoicesChangedDelegate* delegate);
297 293
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 std::set<VoicesChangedDelegate*> voices_changed_delegates_; 337 std::set<VoicesChangedDelegate*> voices_changed_delegates_;
342 338
343 // A pointer to the platform implementation of text-to-speech, for 339 // A pointer to the platform implementation of text-to-speech, for
344 // dependency injection. 340 // dependency injection.
345 TtsPlatformImpl* platform_impl_; 341 TtsPlatformImpl* platform_impl_;
346 342
347 DISALLOW_COPY_AND_ASSIGN(TtsController); 343 DISALLOW_COPY_AND_ASSIGN(TtsController);
348 }; 344 };
349 345
350 #endif // CHROME_BROWSER_SPEECH_TTS_CONTROLLER_H_ 346 #endif // CHROME_BROWSER_SPEECH_TTS_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698