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_EXTENSION_API_TTS_EXTENSION_API_PLATFORM_H_ | 5 #ifndef CHROME_BROWSER_SPEECH_EXTENSION_API_TTS_EXTENSION_API_PLATFORM_H_ |
6 #define CHROME_BROWSER_SPEECH_EXTENSION_API_TTS_EXTENSION_API_PLATFORM_H_ | 6 #define CHROME_BROWSER_SPEECH_EXTENSION_API_TTS_EXTENSION_API_PLATFORM_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
46 // Return the gender of the voice, should be either "male" or "female" | 46 // Return the gender of the voice, should be either "male" or "female" |
47 // if known, otherwise the empty string. | 47 // if known, otherwise the empty string. |
48 virtual std::string gender(); | 48 virtual std::string gender(); |
49 | 49 |
50 virtual std::string error(); | 50 virtual std::string error(); |
51 virtual void clear_error(); | 51 virtual void clear_error(); |
52 virtual void set_error(const std::string& error); | 52 virtual void set_error(const std::string& error); |
53 | 53 |
54 protected: | 54 protected: |
55 ExtensionTtsPlatformImpl() {} | 55 ExtensionTtsPlatformImpl() {} |
56 // On some platforms this may be a leaky singleton - do not rely on the | |
Aaron Boodman
2012/05/22 22:49:56
Insert a blank line above this. Also, can you add
dmazzoni
2012/05/22 22:56:31
Done, thanks.
| |
57 // destructor being called! | |
56 virtual ~ExtensionTtsPlatformImpl() {} | 58 virtual ~ExtensionTtsPlatformImpl() {} |
57 | 59 |
58 std::string error_; | 60 std::string error_; |
59 | 61 |
60 DISALLOW_COPY_AND_ASSIGN(ExtensionTtsPlatformImpl); | 62 DISALLOW_COPY_AND_ASSIGN(ExtensionTtsPlatformImpl); |
61 }; | 63 }; |
62 | 64 |
63 #endif // CHROME_BROWSER_SPEECH_EXTENSION_API_TTS_EXTENSION_API_PLATFORM_H_ | 65 #endif // CHROME_BROWSER_SPEECH_EXTENSION_API_TTS_EXTENSION_API_PLATFORM_H_ |
OLD | NEW |