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

Side by Side Diff: chrome/browser/chromeos/dom_ui/language_options_util.h

Issue 3043023: Add remaining stuff for Mozc configuration DOMUI. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Fix for review comments (real for this time) Created 10 years, 4 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
OLDNEW
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 8
9 #include "base/string_util.h"
8 #include "chrome/browser/chromeos/language_preferences.h" 10 #include "chrome/browser/chromeos/language_preferences.h"
9 11
12 class ListValue;
13
10 namespace { 14 namespace {
11 15
12 // Returns an i18n-content value corresponding to |preference|. 16 // Returns an i18n-content value corresponding to |preference|.
13 template <typename T> 17 template <typename T>
14 std::wstring GetI18nContentValue(const T& preference) { 18 std::wstring GetI18nContentValue(const T& preference) {
15 return ASCIIToWide(preference.ibus_config_name) + L"Content"; 19 return ASCIIToWide(preference.ibus_config_name) + L"Content";
16 } 20 }
17 21
18 // Returns a property name of templateData corresponding to |preference|. 22 // Returns a property name of templateData corresponding to |preference|.
19 template <typename T> 23 template <typename T>
(...skipping 10 matching lines...) Expand all
30 34
31 // Returns an property name of templateData corresponding the value of the max 35 // Returns an property name of templateData corresponding the value of the max
32 // attribute. 36 // attribute.
33 template <typename T> 37 template <typename T>
34 std::wstring GetTemplateDataMaxName(const T& preference) { 38 std::wstring GetTemplateDataMaxName(const T& preference) {
35 return ASCIIToWide(preference.ibus_config_name) + L"Max"; 39 return ASCIIToWide(preference.ibus_config_name) + L"Max";
36 } 40 }
37 41
38 } // namespace 42 } // namespace
39 43
44 namespace chromeos {
45
46 ListValue* CreateMultipleChoiceList(
47 const LanguageMultipleChoicePreference<const char*>& preference);
48
49 } // namespace chromeos
50
40 #endif // CHROME_BROWSER_CHROMEOS_DOM_UI_LANGUAGE_OPTIONS_UTIL_H_ 51 #endif // CHROME_BROWSER_CHROMEOS_DOM_UI_LANGUAGE_OPTIONS_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698