OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "chrome/browser/ui/webui/options2/chromeos/language_mozc_handler.h" | 5 #include "chrome/browser/ui/webui/options2/chromeos/language_mozc_handler.h" |
6 | 6 |
7 #include "base/string_number_conversions.h" | 7 #include "base/string_number_conversions.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "chrome/browser/chromeos/language_preferences.h" | 10 #include "chrome/browser/chromeos/language_preferences.h" |
11 #include "chrome/browser/ui/webui/options2/chromeos/language_options_util.h" | 11 #include "chrome/browser/ui/webui/options2/chromeos/language_options_util.h" |
12 #include "grit/generated_resources.h" | 12 #include "grit/generated_resources.h" |
13 #include "ui/base/l10n/l10n_util.h" | 13 #include "ui/base/l10n/l10n_util.h" |
14 | 14 |
15 namespace { | 15 namespace { |
16 const char kI18nPrefix[] = "mozc_"; | 16 const char kI18nPrefix[] = "mozc_"; |
17 } // namespace | 17 } // namespace |
18 | 18 |
19 namespace chromeos { | 19 namespace chromeos { |
20 namespace options2 { | 20 namespace options { |
21 | 21 |
22 LanguageMozcHandler::LanguageMozcHandler() { | 22 LanguageMozcHandler::LanguageMozcHandler() { |
23 } | 23 } |
24 | 24 |
25 LanguageMozcHandler::~LanguageMozcHandler() { | 25 LanguageMozcHandler::~LanguageMozcHandler() { |
26 } | 26 } |
27 | 27 |
28 void LanguageMozcHandler::GetLocalizedValues( | 28 void LanguageMozcHandler::GetLocalizedValues( |
29 DictionaryValue* localized_strings) { | 29 DictionaryValue* localized_strings) { |
30 DCHECK(localized_strings); | 30 DCHECK(localized_strings); |
(...skipping 30 matching lines...) Expand all Loading... |
61 ListValue* option = new ListValue(); | 61 ListValue* option = new ListValue(); |
62 option->Append(CreateValue(j)); | 62 option->Append(CreateValue(j)); |
63 option->Append(CreateValue(j)); | 63 option->Append(CreateValue(j)); |
64 list_value->Append(option); | 64 list_value->Append(option); |
65 } | 65 } |
66 localized_strings->Set(GetTemplateDataPropertyName(preference, kI18nPrefix), | 66 localized_strings->Set(GetTemplateDataPropertyName(preference, kI18nPrefix), |
67 list_value); | 67 list_value); |
68 } | 68 } |
69 } | 69 } |
70 | 70 |
71 } // namespace options2 | 71 } // namespace options |
72 } // namespace chromeos | 72 } // namespace chromeos |
OLD | NEW |