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

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

Issue 58903014: Revert 232412 "Implement Google network speech synthesis." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1700/src/
Patch Set: Created 7 years, 1 month 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 #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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 struct VoiceData { 59 struct VoiceData {
60 VoiceData(); 60 VoiceData();
61 ~VoiceData(); 61 ~VoiceData();
62 62
63 std::string name; 63 std::string name;
64 std::string lang; 64 std::string lang;
65 TtsGenderType gender; 65 TtsGenderType gender;
66 std::string extension_id; 66 std::string extension_id;
67 std::set<TtsEventType> events; 67 std::set<TtsEventType> events;
68 68
69 // If true, the synthesis engine is a remote network resource.
70 // It may be higher latency and may incur bandwidth costs.
71 bool remote;
72
73 // If true, this is implemented by this platform's subclass of 69 // If true, this is implemented by this platform's subclass of
74 // TtsPlatformImpl. If false, this is implemented by an extension. 70 // TtsPlatformImpl. If false, this is implemented by an extension.
75 bool native; 71 bool native;
76 std::string native_voice_identifier; 72 std::string native_voice_identifier;
77 }; 73 };
78 74
79 // Class that wants to receive events on utterances. 75 // Class that wants to receive events on utterances.
80 class UtteranceEventDelegate { 76 class UtteranceEventDelegate {
81 public: 77 public:
82 virtual ~UtteranceEventDelegate() {} 78 virtual ~UtteranceEventDelegate() {}
(...skipping 258 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
« no previous file with comments | « chrome/browser/speech/extension_api/tts_extension_apitest.cc ('k') | chrome/browser/speech/tts_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698