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 #include "chrome/browser/speech/tts_extension_loader_chromeos.h" | 5 #include "chrome/browser/speech/tts_extension_loader_chromeos.h" |
6 #include "chrome/browser/speech/tts_platform.h" | 6 #include "chrome/browser/speech/tts_platform.h" |
7 | 7 |
8 // Chrome OS doesn't have native TTS, instead it includes a built-in | 8 // Chrome OS doesn't have native TTS, instead it includes a built-in |
9 // component extension that provides speech synthesis. This class includes | 9 // component extension that provides speech synthesis. This class includes |
10 // an implementation of LoadBuiltInTtsExtension and dummy implementations of | 10 // an implementation of LoadBuiltInTtsExtension and dummy implementations of |
(...skipping 16 matching lines...) Expand all Loading... |
27 const std::string& lang, | 27 const std::string& lang, |
28 const VoiceData& voice, | 28 const VoiceData& voice, |
29 const UtteranceContinuousParameters& params) OVERRIDE { | 29 const UtteranceContinuousParameters& params) OVERRIDE { |
30 return false; | 30 return false; |
31 } | 31 } |
32 | 32 |
33 virtual bool StopSpeaking() OVERRIDE { | 33 virtual bool StopSpeaking() OVERRIDE { |
34 return false; | 34 return false; |
35 } | 35 } |
36 | 36 |
| 37 virtual void Pause() OVERRIDE {} |
| 38 |
| 39 virtual void Resume() OVERRIDE {} |
| 40 |
37 virtual bool IsSpeaking() OVERRIDE { | 41 virtual bool IsSpeaking() OVERRIDE { |
38 return false; | 42 return false; |
39 } | 43 } |
40 | 44 |
41 virtual void GetVoices(std::vector<VoiceData>* out_voices) OVERRIDE { | 45 virtual void GetVoices(std::vector<VoiceData>* out_voices) OVERRIDE { |
42 } | 46 } |
43 | 47 |
44 // Get the single instance of this class. | 48 // Get the single instance of this class. |
45 static TtsPlatformImplChromeOs* GetInstance(); | 49 static TtsPlatformImplChromeOs* GetInstance(); |
46 | 50 |
47 private: | 51 private: |
48 TtsPlatformImplChromeOs() {} | 52 TtsPlatformImplChromeOs() {} |
49 virtual ~TtsPlatformImplChromeOs() {} | 53 virtual ~TtsPlatformImplChromeOs() {} |
50 | 54 |
51 friend struct DefaultSingletonTraits<TtsPlatformImplChromeOs>; | 55 friend struct DefaultSingletonTraits<TtsPlatformImplChromeOs>; |
52 | 56 |
53 DISALLOW_COPY_AND_ASSIGN(TtsPlatformImplChromeOs); | 57 DISALLOW_COPY_AND_ASSIGN(TtsPlatformImplChromeOs); |
54 }; | 58 }; |
55 | 59 |
56 // static | 60 // static |
57 TtsPlatformImpl* TtsPlatformImpl::GetInstance() { | 61 TtsPlatformImpl* TtsPlatformImpl::GetInstance() { |
58 return TtsPlatformImplChromeOs::GetInstance(); | 62 return TtsPlatformImplChromeOs::GetInstance(); |
59 } | 63 } |
60 | 64 |
61 // static | 65 // static |
62 TtsPlatformImplChromeOs* | 66 TtsPlatformImplChromeOs* |
63 TtsPlatformImplChromeOs::GetInstance() { | 67 TtsPlatformImplChromeOs::GetInstance() { |
64 return Singleton<TtsPlatformImplChromeOs>::get(); | 68 return Singleton<TtsPlatformImplChromeOs>::get(); |
65 } | 69 } |
OLD | NEW |