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 "base/macros.h" |
5 #include "chrome/browser/speech/tts_platform.h" | 6 #include "chrome/browser/speech/tts_platform.h" |
6 | 7 |
7 // 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 |
8 // component extension that provides speech synthesis. This class includes | 9 // component extension that provides speech synthesis. This class includes |
9 // an implementation of LoadBuiltInTtsExtension and dummy implementations of | 10 // an implementation of LoadBuiltInTtsExtension and dummy implementations of |
10 // everything else. | 11 // everything else. |
11 | 12 |
12 class TtsPlatformImplChromeOs : public TtsPlatformImpl { | 13 class TtsPlatformImplChromeOs : public TtsPlatformImpl { |
13 public: | 14 public: |
14 // TtsPlatformImpl overrides: | 15 // TtsPlatformImpl overrides: |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 // static | 57 // static |
57 TtsPlatformImpl* TtsPlatformImpl::GetInstance() { | 58 TtsPlatformImpl* TtsPlatformImpl::GetInstance() { |
58 return TtsPlatformImplChromeOs::GetInstance(); | 59 return TtsPlatformImplChromeOs::GetInstance(); |
59 } | 60 } |
60 | 61 |
61 // static | 62 // static |
62 TtsPlatformImplChromeOs* | 63 TtsPlatformImplChromeOs* |
63 TtsPlatformImplChromeOs::GetInstance() { | 64 TtsPlatformImplChromeOs::GetInstance() { |
64 return base::Singleton<TtsPlatformImplChromeOs>::get(); | 65 return base::Singleton<TtsPlatformImplChromeOs>::get(); |
65 } | 66 } |
OLD | NEW |