OLD | NEW |
1 // Copyright (c) 2010 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_UTIL_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_TTS_API_UTIL_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_TTS_API_UTIL_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_TTS_API_UTIL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/values.h" | 10 #include "base/values.h" |
11 | 11 |
12 namespace extension_tts_api_util { | 12 namespace extension_tts_api_util { |
13 | 13 |
14 extern const char kVoiceNameKey[]; | 14 extern const char kVoiceNameKey[]; |
15 extern const char kLocaleKey[]; | 15 extern const char kLocaleKey[]; |
16 extern const char kGenderKey[]; | 16 extern const char kGenderKey[]; |
17 extern const char kRateKey[]; | 17 extern const char kRateKey[]; |
18 extern const char kPitchKey[]; | 18 extern const char kPitchKey[]; |
19 extern const char kVolumeKey[]; | 19 extern const char kVolumeKey[]; |
20 extern const char kEnqueueKey[]; | 20 extern const char kEnqueueKey[]; |
21 | 21 |
22 bool ReadNumberByKey(DictionaryValue* dict, | |
23 const char* key, | |
24 double* ret_value); | |
25 | |
26 } // namespace extension_tts_api_util. | 22 } // namespace extension_tts_api_util. |
27 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TTS_API_UTIL_H_ | 23 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TTS_API_UTIL_H_ |
OLD | NEW |