OLD | NEW |
---|---|
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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
94 virtual void Stop(Utterance* utterance) = 0; | 94 virtual void Stop(Utterance* utterance) = 0; |
95 | 95 |
96 // Pause in the middle of speaking this utterance. | 96 // Pause in the middle of speaking this utterance. |
97 virtual void Pause(Utterance* utterance) = 0; | 97 virtual void Pause(Utterance* utterance) = 0; |
98 | 98 |
99 // Resume speaking this utterance. | 99 // Resume speaking this utterance. |
100 virtual void Resume(Utterance* utterance) = 0; | 100 virtual void Resume(Utterance* utterance) = 0; |
101 | 101 |
102 // Load the built-in component extension for ChromeOS. | 102 // Load the built-in component extension for ChromeOS. |
103 virtual bool LoadBuiltInTtsExtension(Profile* profile) = 0; | 103 virtual bool LoadBuiltInTtsExtension(Profile* profile) = 0; |
104 | |
105 // Return the profile associated with the renderer | |
dmazzoni
2014/08/11 07:23:09
Nit: end sentence with period.
| |
106 virtual Profile* GetProfile(int render_process_id) = 0; | |
dmazzoni
2014/08/11 07:23:09
If you want to move TtsController to content, then
| |
104 }; | 107 }; |
105 | 108 |
106 // Class that wants to receive events on utterances. | 109 // Class that wants to receive events on utterances. |
107 class UtteranceEventDelegate { | 110 class UtteranceEventDelegate { |
108 public: | 111 public: |
109 virtual ~UtteranceEventDelegate() {} | 112 virtual ~UtteranceEventDelegate() {} |
110 virtual void OnTtsEvent(Utterance* utterance, | 113 virtual void OnTtsEvent(Utterance* utterance, |
111 TtsEventType event_type, | 114 TtsEventType event_type, |
112 int char_index, | 115 int char_index, |
113 const std::string& error_message) = 0; | 116 const std::string& error_message) = 0; |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
330 | 333 |
331 // For unit testing. | 334 // For unit testing. |
332 virtual void SetPlatformImpl(TtsPlatformImpl* platform_impl) = 0; | 335 virtual void SetPlatformImpl(TtsPlatformImpl* platform_impl) = 0; |
333 virtual int QueueSize() = 0; | 336 virtual int QueueSize() = 0; |
334 | 337 |
335 protected: | 338 protected: |
336 virtual ~TtsController() {} | 339 virtual ~TtsController() {} |
337 }; | 340 }; |
338 | 341 |
339 #endif // CHROME_BROWSER_SPEECH_TTS_CONTROLLER_H_ | 342 #endif // CHROME_BROWSER_SPEECH_TTS_CONTROLLER_H_ |
OLD | NEW |