OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_CHROMEOS_DOM_UI_LANGUAGE_OPTIONS_UTIL_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DOM_UI_LANGUAGE_OPTIONS_UTIL_H_ |
6 #define CHROME_BROWSER_CHROMEOS_DOM_UI_LANGUAGE_OPTIONS_UTIL_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DOM_UI_LANGUAGE_OPTIONS_UTIL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/string_util.h" | 9 #include "base/utf_string_conversions.h" |
10 #include "chrome/browser/chromeos/language_preferences.h" | 10 #include "chrome/browser/chromeos/language_preferences.h" |
11 | 11 |
12 class ListValue; | 12 class ListValue; |
13 | 13 |
14 namespace { | 14 namespace { |
15 | 15 |
16 // Returns an i18n-content value corresponding to |preference|. | 16 // Returns an i18n-content value corresponding to |preference|. |
17 template <typename T> | 17 template <typename T> |
18 std::wstring GetI18nContentValue(const T& preference) { | 18 std::wstring GetI18nContentValue(const T& preference) { |
19 return ASCIIToWide(preference.ibus_config_name) + L"Content"; | 19 return ASCIIToWide(preference.ibus_config_name) + L"Content"; |
(...skipping 22 matching lines...) Expand all Loading... |
42 } // namespace | 42 } // namespace |
43 | 43 |
44 namespace chromeos { | 44 namespace chromeos { |
45 | 45 |
46 ListValue* CreateMultipleChoiceList( | 46 ListValue* CreateMultipleChoiceList( |
47 const LanguageMultipleChoicePreference<const char*>& preference); | 47 const LanguageMultipleChoicePreference<const char*>& preference); |
48 | 48 |
49 } // namespace chromeos | 49 } // namespace chromeos |
50 | 50 |
51 #endif // CHROME_BROWSER_CHROMEOS_DOM_UI_LANGUAGE_OPTIONS_UTIL_H_ | 51 #endif // CHROME_BROWSER_CHROMEOS_DOM_UI_LANGUAGE_OPTIONS_UTIL_H_ |
OLD | NEW |