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_H_ | 5 #ifndef CHROME_BROWSER_SPEECH_EXTENSION_API_TTS_EXTENSION_API_H_ |
6 #define CHROME_BROWSER_SPEECH_EXTENSION_API_TTS_EXTENSION_API_H_ | 6 #define CHROME_BROWSER_SPEECH_EXTENSION_API_TTS_EXTENSION_API_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "chrome/browser/extensions/api/profile_keyed_api_factory.h" | 10 #include "chrome/browser/extensions/api/profile_keyed_api_factory.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 DECLARE_EXTENSION_FUNCTION("tts.speak", TTS_SPEAK) | 26 DECLARE_EXTENSION_FUNCTION("tts.speak", TTS_SPEAK) |
27 }; | 27 }; |
28 | 28 |
29 class TtsStopSpeakingFunction : public SyncExtensionFunction { | 29 class TtsStopSpeakingFunction : public SyncExtensionFunction { |
30 private: | 30 private: |
31 virtual ~TtsStopSpeakingFunction() {} | 31 virtual ~TtsStopSpeakingFunction() {} |
32 virtual bool RunImpl() OVERRIDE; | 32 virtual bool RunImpl() OVERRIDE; |
33 DECLARE_EXTENSION_FUNCTION("tts.stop", TTS_STOP) | 33 DECLARE_EXTENSION_FUNCTION("tts.stop", TTS_STOP) |
34 }; | 34 }; |
35 | 35 |
| 36 class TtsPauseFunction : public SyncExtensionFunction { |
| 37 private: |
| 38 virtual ~TtsPauseFunction() {} |
| 39 virtual bool RunImpl() OVERRIDE; |
| 40 DECLARE_EXTENSION_FUNCTION("tts.pause", TTS_PAUSE) |
| 41 }; |
| 42 |
| 43 class TtsResumeFunction : public SyncExtensionFunction { |
| 44 private: |
| 45 virtual ~TtsResumeFunction() {} |
| 46 virtual bool RunImpl() OVERRIDE; |
| 47 DECLARE_EXTENSION_FUNCTION("tts.resume", TTS_RESUME) |
| 48 }; |
| 49 |
36 class TtsIsSpeakingFunction : public SyncExtensionFunction { | 50 class TtsIsSpeakingFunction : public SyncExtensionFunction { |
37 private: | 51 private: |
38 virtual ~TtsIsSpeakingFunction() {} | 52 virtual ~TtsIsSpeakingFunction() {} |
39 virtual bool RunImpl() OVERRIDE; | 53 virtual bool RunImpl() OVERRIDE; |
40 DECLARE_EXTENSION_FUNCTION("tts.isSpeaking", TTS_ISSPEAKING) | 54 DECLARE_EXTENSION_FUNCTION("tts.isSpeaking", TTS_ISSPEAKING) |
41 }; | 55 }; |
42 | 56 |
43 class TtsGetVoicesFunction : public SyncExtensionFunction { | 57 class TtsGetVoicesFunction : public SyncExtensionFunction { |
44 private: | 58 private: |
45 virtual ~TtsGetVoicesFunction() {} | 59 virtual ~TtsGetVoicesFunction() {} |
(...skipping 18 matching lines...) Expand all Loading... |
64 // ProfileKeyedAPI implementation. | 78 // ProfileKeyedAPI implementation. |
65 static const char* service_name() { | 79 static const char* service_name() { |
66 return "TtsAPI"; | 80 return "TtsAPI"; |
67 } | 81 } |
68 static const bool kServiceIsNULLWhileTesting = true; | 82 static const bool kServiceIsNULLWhileTesting = true; |
69 }; | 83 }; |
70 | 84 |
71 } // namespace extensions | 85 } // namespace extensions |
72 | 86 |
73 #endif // CHROME_BROWSER_SPEECH_EXTENSION_API_TTS_EXTENSION_API_H_ | 87 #endif // CHROME_BROWSER_SPEECH_EXTENSION_API_TTS_EXTENSION_API_H_ |
OLD | NEW |