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

Side by Side Diff: chrome/browser/chromeos/dom_ui/language_hangul_options_handler.cc

Issue 3132023: Add language_prefs namespace to language_preferences.h. (Closed)
Patch Set: address comments 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 #include "chrome/browser/chromeos/dom_ui/language_hangul_options_handler.h" 5 #include "chrome/browser/chromeos/dom_ui/language_hangul_options_handler.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.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"
(...skipping 12 matching lines...) Expand all
23 DCHECK(localized_strings); 23 DCHECK(localized_strings);
24 // Language Hangul page - ChromeOS 24 // Language Hangul page - ChromeOS
25 localized_strings->SetString("keyboard_layout", 25 localized_strings->SetString("keyboard_layout",
26 l10n_util::GetStringUTF16(IDS_OPTIONS_SETTINGS_KEYBOARD_LAYOUT_TEXT)); 26 l10n_util::GetStringUTF16(IDS_OPTIONS_SETTINGS_KEYBOARD_LAYOUT_TEXT));
27 27
28 localized_strings->Set("keyboardLayoutList", GetKeyboardLayoutList()); 28 localized_strings->Set("keyboardLayoutList", GetKeyboardLayoutList());
29 } 29 }
30 30
31 ListValue* LanguageHangulOptionsHandler::GetKeyboardLayoutList() { 31 ListValue* LanguageHangulOptionsHandler::GetKeyboardLayoutList() {
32 ListValue* keyboard_layout_list = new ListValue(); 32 ListValue* keyboard_layout_list = new ListValue();
33 for (size_t i = 0; i < kNumHangulKeyboardNameIDPairs; ++i) { 33 for (size_t i = 0; i < language_prefs::kNumHangulKeyboardNameIDPairs; ++i) {
34 ListValue* option = new ListValue(); 34 ListValue* option = new ListValue();
35 option->Append(Value::CreateStringValue( 35 option->Append(Value::CreateStringValue(
36 kHangulKeyboardNameIDPairs[i].keyboard_id)); 36 language_prefs::kHangulKeyboardNameIDPairs[i].keyboard_id));
37 option->Append(Value::CreateStringValue(l10n_util::GetStringUTF16( 37 option->Append(Value::CreateStringValue(l10n_util::GetStringUTF16(
38 kHangulKeyboardNameIDPairs[i].message_id))); 38 language_prefs::kHangulKeyboardNameIDPairs[i].message_id)));
39 keyboard_layout_list->Append(option); 39 keyboard_layout_list->Append(option);
40 } 40 }
41 return keyboard_layout_list; 41 return keyboard_layout_list;
42 } 42 }
43 43
44 } // namespace chromeos 44 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698