Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Side by Side Diff: chrome/browser/extensions/extension_tts_api_util.h

Issue 6901084: Use new APIs in base/values.h: Value::GetAsNumber and DictionaryValue::GetNumber. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, 2010->2011 Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_tts_api.cc ('k') | chrome/browser/extensions/extension_tts_api_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698