| 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_platform.h" | 5 #include "chrome/browser/speech/tts_platform.h" |
| 6 | 6 |
| 7 // Chrome OS doesn't have native TTS, instead it includes a built-in | 7 // Chrome OS doesn't have native TTS, instead it includes a built-in |
| 8 // component extension that provides speech synthesis. This class includes | 8 // component extension that provides speech synthesis. This class includes |
| 9 // an implementation of LoadBuiltInTtsExtension and dummy implementations of | 9 // an implementation of LoadBuiltInTtsExtension and dummy implementations of |
| 10 // everything else. | 10 // everything else. |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 void GetVoices(std::vector<VoiceData>* out_voices) override {} | 42 void GetVoices(std::vector<VoiceData>* out_voices) override {} |
| 43 | 43 |
| 44 // Get the single instance of this class. | 44 // Get the single instance of this class. |
| 45 static TtsPlatformImplChromeOs* GetInstance(); | 45 static TtsPlatformImplChromeOs* GetInstance(); |
| 46 | 46 |
| 47 private: | 47 private: |
| 48 TtsPlatformImplChromeOs() {} | 48 TtsPlatformImplChromeOs() {} |
| 49 ~TtsPlatformImplChromeOs() override {} | 49 ~TtsPlatformImplChromeOs() override {} |
| 50 | 50 |
| 51 friend struct DefaultSingletonTraits<TtsPlatformImplChromeOs>; | 51 friend struct base::DefaultSingletonTraits<TtsPlatformImplChromeOs>; |
| 52 | 52 |
| 53 DISALLOW_COPY_AND_ASSIGN(TtsPlatformImplChromeOs); | 53 DISALLOW_COPY_AND_ASSIGN(TtsPlatformImplChromeOs); |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 // static | 56 // static |
| 57 TtsPlatformImpl* TtsPlatformImpl::GetInstance() { | 57 TtsPlatformImpl* TtsPlatformImpl::GetInstance() { |
| 58 return TtsPlatformImplChromeOs::GetInstance(); | 58 return TtsPlatformImplChromeOs::GetInstance(); |
| 59 } | 59 } |
| 60 | 60 |
| 61 // static | 61 // static |
| 62 TtsPlatformImplChromeOs* | 62 TtsPlatformImplChromeOs* |
| 63 TtsPlatformImplChromeOs::GetInstance() { | 63 TtsPlatformImplChromeOs::GetInstance() { |
| 64 return Singleton<TtsPlatformImplChromeOs>::get(); | 64 return base::Singleton<TtsPlatformImplChromeOs>::get(); |
| 65 } | 65 } |
| OLD | NEW |