Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
|
Satish
2012/03/22 20:33:42
update copyright here and in other files
dmazzoni
2012/03/22 20:42:15
Done.
| |
| 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_ENGINE_API_H_ | 5 #ifndef CHROME_BROWSER_SPEECH_EXTENSION_API_TTS_ENGINE_EXTENSION_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_TTS_ENGINE_API_H_ | 6 #define CHROME_BROWSER_SPEECH_EXTENSION_API_TTS_ENGINE_EXTENSION_API_H_ |
| 7 | 7 |
| 8 #include "base/memory/singleton.h" | 8 #include "base/memory/singleton.h" |
| 9 #include "chrome/browser/extensions/extension_function.h" | 9 #include "chrome/browser/extensions/extension_function.h" |
| 10 | 10 |
| 11 class Extension; | 11 class Extension; |
| 12 class Utterance; | 12 class Utterance; |
| 13 | 13 |
| 14 namespace base { | 14 namespace base { |
| 15 class ListValue; | 15 class ListValue; |
| 16 } | 16 } |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 32 void ExtensionTtsEngineSpeak(Utterance* utterance, | 32 void ExtensionTtsEngineSpeak(Utterance* utterance, |
| 33 const Extension* extension, | 33 const Extension* extension, |
| 34 size_t voice_index); | 34 size_t voice_index); |
| 35 | 35 |
| 36 // Stop speaking the given utterance by sending an event to the extension | 36 // Stop speaking the given utterance by sending an event to the extension |
| 37 // associated with this utterance. | 37 // associated with this utterance. |
| 38 void ExtensionTtsEngineStop(Utterance* utterance); | 38 void ExtensionTtsEngineStop(Utterance* utterance); |
| 39 | 39 |
| 40 // Hidden/internal extension function used to allow TTS engine extensions | 40 // Hidden/internal extension function used to allow TTS engine extensions |
| 41 // to send events back to the client that's calling tts.speak(). | 41 // to send events back to the client that's calling tts.speak(). |
| 42 class ExtensionTtsEngineSendTtsEventFunction : public SyncExtensionFunction { | 42 class ExtensionTtsEngineSendTtsEventFunction : public SyncExtensionFunction { |
|
Satish
2012/03/22 20:33:42
since you've renamed the files do you plan to rena
dmazzoni
2012/03/22 20:42:15
Yes, but OK if I save that for a follow-on changel
| |
| 43 private: | 43 private: |
| 44 virtual ~ExtensionTtsEngineSendTtsEventFunction() {} | 44 virtual ~ExtensionTtsEngineSendTtsEventFunction() {} |
| 45 virtual bool RunImpl() OVERRIDE; | 45 virtual bool RunImpl() OVERRIDE; |
| 46 DECLARE_EXTENSION_FUNCTION_NAME("ttsEngine.sendTtsEvent") | 46 DECLARE_EXTENSION_FUNCTION_NAME("ttsEngine.sendTtsEvent") |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TTS_ENGINE_API_H_ | 49 #endif // CHROME_BROWSER_SPEECH_EXTENSION_API_TTS_ENGINE_EXTENSION_API_H_ |
| OLD | NEW |