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 #ifndef CHROME_BROWSER_SPEECH_TTS_PLATFORM_H_ | 5 #ifndef CHROME_BROWSER_SPEECH_TTS_PLATFORM_H_ |
6 #define CHROME_BROWSER_SPEECH_TTS_PLATFORM_H_ | 6 #define CHROME_BROWSER_SPEECH_TTS_PLATFORM_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
| 10 #include "base/macros.h" |
10 #include "chrome/browser/speech/tts_controller.h" | 11 #include "chrome/browser/speech/tts_controller.h" |
11 | 12 |
12 // Abstract class that defines the native platform TTS interface, | 13 // Abstract class that defines the native platform TTS interface, |
13 // subclassed by specific implementations on Win, Mac, etc. | 14 // subclassed by specific implementations on Win, Mac, etc. |
14 class TtsPlatformImpl { | 15 class TtsPlatformImpl { |
15 public: | 16 public: |
16 static TtsPlatformImpl* GetInstance(); | 17 static TtsPlatformImpl* GetInstance(); |
17 | 18 |
18 // Returns true if this platform implementation is supported and available. | 19 // Returns true if this platform implementation is supported and available. |
19 virtual bool PlatformImplAvailable() = 0; | 20 virtual bool PlatformImplAvailable() = 0; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 // On some platforms this may be a leaky singleton - do not rely on the | 73 // On some platforms this may be a leaky singleton - do not rely on the |
73 // destructor being called! http://crbug.com/122026 | 74 // destructor being called! http://crbug.com/122026 |
74 virtual ~TtsPlatformImpl() {} | 75 virtual ~TtsPlatformImpl() {} |
75 | 76 |
76 std::string error_; | 77 std::string error_; |
77 | 78 |
78 DISALLOW_COPY_AND_ASSIGN(TtsPlatformImpl); | 79 DISALLOW_COPY_AND_ASSIGN(TtsPlatformImpl); |
79 }; | 80 }; |
80 | 81 |
81 #endif // CHROME_BROWSER_SPEECH_TTS_PLATFORM_H_ | 82 #endif // CHROME_BROWSER_SPEECH_TTS_PLATFORM_H_ |
OLD | NEW |