OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/options/chromeos/language_customize_modifier_k
eys_handler.h" | 5 #include "chrome/browser/ui/webui/options/chromeos/language_customize_modifier_k
eys_handler.h" |
6 | 6 |
7 #include "base/values.h" | 7 #include "base/values.h" |
8 #include "chrome/browser/chromeos/input_method/xkeyboard.h" | 8 #include "chrome/browser/chromeos/input_method/xkeyboard.h" |
9 #include "grit/generated_resources.h" | 9 #include "grit/generated_resources.h" |
10 #include "ui/base/l10n/l10n_util.h" | 10 #include "ui/base/l10n/l10n_util.h" |
11 | 11 |
12 namespace { | 12 namespace { |
13 const struct ModifierKeysSelectItem { | 13 const struct ModifierKeysSelectItem { |
14 int message_id; | 14 int message_id; |
15 chromeos::input_method::ModifierKey value; | 15 chromeos::input_method::ModifierKey value; |
16 } kModifierKeysSelectItems[] = { | 16 } kModifierKeysSelectItems[] = { |
17 { IDS_OPTIONS_SETTINGS_LANGUAGES_XKB_KEY_SEARCH_LABEL, | 17 { IDS_OPTIONS_SETTINGS_LANGUAGES_XKB_KEY_SEARCH, |
18 chromeos::input_method::kSearchKey }, | 18 chromeos::input_method::kSearchKey }, |
19 { IDS_OPTIONS_SETTINGS_LANGUAGES_XKB_KEY_LEFT_CTRL, | 19 { IDS_OPTIONS_SETTINGS_LANGUAGES_XKB_KEY_LEFT_CTRL, |
20 chromeos::input_method::kLeftControlKey }, | 20 chromeos::input_method::kLeftControlKey }, |
21 { IDS_OPTIONS_SETTINGS_LANGUAGES_XKB_KEY_LEFT_ALT, | 21 { IDS_OPTIONS_SETTINGS_LANGUAGES_XKB_KEY_LEFT_ALT, |
22 chromeos::input_method::kLeftAltKey }, | 22 chromeos::input_method::kLeftAltKey }, |
23 { IDS_OPTIONS_SETTINGS_LANGUAGES_XKB_KEY_VOID, | 23 { IDS_OPTIONS_SETTINGS_LANGUAGES_XKB_KEY_VOID, |
24 chromeos::input_method::kVoidKey }, | 24 chromeos::input_method::kVoidKey }, |
25 { IDS_OPTIONS_SETTINGS_LANGUAGES_XKB_KEY_CAPS_LOCK, | 25 { IDS_OPTIONS_SETTINGS_LANGUAGES_XKB_KEY_CAPS_LOCK, |
26 chromeos::input_method::kCapsLockKey }, | 26 chromeos::input_method::kCapsLockKey }, |
27 }; | 27 }; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 option->Append(Value::CreateIntegerValue(value)); | 70 option->Append(Value::CreateIntegerValue(value)); |
71 option->Append(Value::CreateStringValue(l10n_util::GetStringUTF16( | 71 option->Append(Value::CreateStringValue(l10n_util::GetStringUTF16( |
72 message_id))); | 72 message_id))); |
73 list_value->Append(option); | 73 list_value->Append(option); |
74 } | 74 } |
75 localized_strings->Set(kDataValuesNames[i], list_value); | 75 localized_strings->Set(kDataValuesNames[i], list_value); |
76 } | 76 } |
77 } | 77 } |
78 | 78 |
79 } // namespace chromeos | 79 } // namespace chromeos |
OLD | NEW |