| OLD | NEW |
| 1 // Copyright (c) 2011 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/memory/singleton.h" | 5 #include "base/memory/singleton.h" |
| 6 #include "chrome/browser/extensions/extension_tts_api_platform.h" | 6 #include "chrome/browser/speech/extension_api/tts_extension_api_platform.h" |
| 7 | 7 |
| 8 namespace { | 8 namespace { |
| 9 const char kNotSupportedError[] = | 9 const char kNotSupportedError[] = |
| 10 "Native speech synthesis not supported on this platform."; | 10 "Native speech synthesis not supported on this platform."; |
| 11 }; | 11 }; |
| 12 | 12 |
| 13 class ExtensionTtsPlatformImplLinux : public ExtensionTtsPlatformImpl { | 13 class ExtensionTtsPlatformImplLinux : public ExtensionTtsPlatformImpl { |
| 14 public: | 14 public: |
| 15 virtual bool PlatformImplAvailable() { | 15 virtual bool PlatformImplAvailable() { |
| 16 return false; | 16 return false; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 | 50 |
| 51 friend struct DefaultSingletonTraits<ExtensionTtsPlatformImplLinux>; | 51 friend struct DefaultSingletonTraits<ExtensionTtsPlatformImplLinux>; |
| 52 | 52 |
| 53 DISALLOW_COPY_AND_ASSIGN(ExtensionTtsPlatformImplLinux); | 53 DISALLOW_COPY_AND_ASSIGN(ExtensionTtsPlatformImplLinux); |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 // static | 56 // static |
| 57 ExtensionTtsPlatformImpl* ExtensionTtsPlatformImpl::GetInstance() { | 57 ExtensionTtsPlatformImpl* ExtensionTtsPlatformImpl::GetInstance() { |
| 58 return ExtensionTtsPlatformImplLinux::GetInstance(); | 58 return ExtensionTtsPlatformImplLinux::GetInstance(); |
| 59 } | 59 } |
| OLD | NEW |