OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_EXTENSIONS_EXTENSION_TTS_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_TTS_API_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_TTS_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_TTS_API_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "chrome/browser/extensions/extension_function.h" | 10 #include "chrome/browser/extensions/extension_function.h" |
11 #include "chrome/browser/extensions/extension_tts_api_controller.h" | 11 #include "chrome/browser/extensions/extension_tts_api_controller.h" |
12 | 12 |
13 class ExtensionTtsSpeakFunction | 13 class ExtensionTtsSpeakFunction |
14 : public AsyncExtensionFunction { | 14 : public AsyncExtensionFunction { |
15 private: | 15 private: |
16 virtual ~ExtensionTtsSpeakFunction() {} | 16 virtual ~ExtensionTtsSpeakFunction() {} |
17 virtual bool RunImpl() OVERRIDE; | 17 virtual bool RunImpl() OVERRIDE; |
18 DECLARE_EXTENSION_FUNCTION_NAME("experimental.tts.speak") | 18 DECLARE_EXTENSION_FUNCTION_NAME("tts.speak") |
19 }; | 19 }; |
20 | 20 |
21 class ExtensionTtsStopSpeakingFunction : public SyncExtensionFunction { | 21 class ExtensionTtsStopSpeakingFunction : public SyncExtensionFunction { |
22 private: | 22 private: |
23 virtual ~ExtensionTtsStopSpeakingFunction() {} | 23 virtual ~ExtensionTtsStopSpeakingFunction() {} |
24 virtual bool RunImpl() OVERRIDE; | 24 virtual bool RunImpl() OVERRIDE; |
25 DECLARE_EXTENSION_FUNCTION_NAME("experimental.tts.stop") | 25 DECLARE_EXTENSION_FUNCTION_NAME("tts.stop") |
26 }; | 26 }; |
27 | 27 |
28 class ExtensionTtsIsSpeakingFunction : public SyncExtensionFunction { | 28 class ExtensionTtsIsSpeakingFunction : public SyncExtensionFunction { |
29 private: | 29 private: |
30 virtual ~ExtensionTtsIsSpeakingFunction() {} | 30 virtual ~ExtensionTtsIsSpeakingFunction() {} |
31 virtual bool RunImpl() OVERRIDE; | 31 virtual bool RunImpl() OVERRIDE; |
32 DECLARE_EXTENSION_FUNCTION_NAME("experimental.tts.isSpeaking") | 32 DECLARE_EXTENSION_FUNCTION_NAME("tts.isSpeaking") |
33 }; | 33 }; |
34 | 34 |
35 class ExtensionTtsGetVoicesFunction : public SyncExtensionFunction { | 35 class ExtensionTtsGetVoicesFunction : public SyncExtensionFunction { |
36 private: | 36 private: |
37 virtual ~ExtensionTtsGetVoicesFunction() {} | 37 virtual ~ExtensionTtsGetVoicesFunction() {} |
38 virtual bool RunImpl() OVERRIDE; | 38 virtual bool RunImpl() OVERRIDE; |
39 DECLARE_EXTENSION_FUNCTION_NAME("experimental.tts.getVoices") | 39 DECLARE_EXTENSION_FUNCTION_NAME("tts.getVoices") |
40 }; | 40 }; |
41 | 41 |
42 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TTS_API_H_ | 42 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TTS_API_H_ |
OLD | NEW |