OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_IMPL_H_ | 5 #ifndef CHROME_BROWSER_SPEECH_TTS_CONTROLLER_IMPL_H_ |
6 #define CHROME_BROWSER_SPEECH_TTS_CONTROLLER_IMPL_H_ | 6 #define CHROME_BROWSER_SPEECH_TTS_CONTROLLER_IMPL_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 25 matching lines...) Expand all Loading... |
36 const std::string& error_message) OVERRIDE; | 36 const std::string& error_message) OVERRIDE; |
37 virtual void GetVoices(Profile* profile, | 37 virtual void GetVoices(Profile* profile, |
38 std::vector<VoiceData>* out_voices) OVERRIDE; | 38 std::vector<VoiceData>* out_voices) OVERRIDE; |
39 virtual void RetrySpeakingQueuedUtterances() OVERRIDE; | 39 virtual void RetrySpeakingQueuedUtterances() OVERRIDE; |
40 virtual void VoicesChanged() OVERRIDE; | 40 virtual void VoicesChanged() OVERRIDE; |
41 virtual void AddVoicesChangedDelegate( | 41 virtual void AddVoicesChangedDelegate( |
42 VoicesChangedDelegate* delegate) OVERRIDE; | 42 VoicesChangedDelegate* delegate) OVERRIDE; |
43 virtual void RemoveVoicesChangedDelegate( | 43 virtual void RemoveVoicesChangedDelegate( |
44 VoicesChangedDelegate* delegate) OVERRIDE; | 44 VoicesChangedDelegate* delegate) OVERRIDE; |
45 virtual void SetTtsEngineDelegate(TtsEngineDelegate* delegate) OVERRIDE; | 45 virtual void SetTtsEngineDelegate(TtsEngineDelegate* delegate) OVERRIDE; |
| 46 virtual TtsEngineDelegate* GetTtsEngineDelegate() OVERRIDE; |
46 virtual void SetPlatformImpl(TtsPlatformImpl* platform_impl) OVERRIDE; | 47 virtual void SetPlatformImpl(TtsPlatformImpl* platform_impl) OVERRIDE; |
47 virtual int QueueSize() OVERRIDE; | 48 virtual int QueueSize() OVERRIDE; |
48 | 49 |
49 protected: | 50 protected: |
50 TtsControllerImpl(); | 51 TtsControllerImpl(); |
51 virtual ~TtsControllerImpl(); | 52 virtual ~TtsControllerImpl(); |
52 | 53 |
53 private: | 54 private: |
54 // Get the platform TTS implementation (or injected mock). | 55 // Get the platform TTS implementation (or injected mock). |
55 TtsPlatformImpl* GetPlatformImpl(); | 56 TtsPlatformImpl* GetPlatformImpl(); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 // dependency injection. | 92 // dependency injection. |
92 TtsPlatformImpl* platform_impl_; | 93 TtsPlatformImpl* platform_impl_; |
93 | 94 |
94 // The delegate that processes TTS requests with user-installed extensions. | 95 // The delegate that processes TTS requests with user-installed extensions. |
95 TtsEngineDelegate* tts_engine_delegate_; | 96 TtsEngineDelegate* tts_engine_delegate_; |
96 | 97 |
97 DISALLOW_COPY_AND_ASSIGN(TtsControllerImpl); | 98 DISALLOW_COPY_AND_ASSIGN(TtsControllerImpl); |
98 }; | 99 }; |
99 | 100 |
100 #endif // CHROME_BROWSER_SPEECH_TTS_CONTROLLER_IMPL_H_ | 101 #endif // CHROME_BROWSER_SPEECH_TTS_CONTROLLER_IMPL_H_ |
OLD | NEW |