| 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 #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/values.h" | 9 #include "base/values.h" |
| 9 #include "chrome/browser/chromeos/language_preferences.h" | 10 #include "chrome/browser/chromeos/language_preferences.h" |
| 10 #include "grit/generated_resources.h" | 11 #include "grit/generated_resources.h" |
| 11 | 12 |
| 12 LanguageHangulOptionsHandler::LanguageHangulOptionsHandler() { | 13 LanguageHangulOptionsHandler::LanguageHangulOptionsHandler() { |
| 13 } | 14 } |
| 14 | 15 |
| 15 LanguageHangulOptionsHandler::~LanguageHangulOptionsHandler() { | 16 LanguageHangulOptionsHandler::~LanguageHangulOptionsHandler() { |
| 16 } | 17 } |
| 17 | 18 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 30 for (size_t i = 0; i < arraysize(chromeos::kHangulKeyboardNameIDPairs); ++i) { | 31 for (size_t i = 0; i < arraysize(chromeos::kHangulKeyboardNameIDPairs); ++i) { |
| 31 ListValue* option = new ListValue(); | 32 ListValue* option = new ListValue(); |
| 32 option->Append(Value::CreateStringValue(ASCIIToWide( | 33 option->Append(Value::CreateStringValue(ASCIIToWide( |
| 33 chromeos::kHangulKeyboardNameIDPairs[i].keyboard_id))); | 34 chromeos::kHangulKeyboardNameIDPairs[i].keyboard_id))); |
| 34 option->Append(Value::CreateStringValue(l10n_util::GetString( | 35 option->Append(Value::CreateStringValue(l10n_util::GetString( |
| 35 chromeos::kHangulKeyboardNameIDPairs[i].message_id))); | 36 chromeos::kHangulKeyboardNameIDPairs[i].message_id))); |
| 36 keyboard_layout_list->Append(option); | 37 keyboard_layout_list->Append(option); |
| 37 } | 38 } |
| 38 return keyboard_layout_list; | 39 return keyboard_layout_list; |
| 39 } | 40 } |
| OLD | NEW |