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/keyboard_handler.h" | 5 #include "chrome/browser/ui/webui/options2/chromeos/keyboard_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" |
(...skipping 16 matching lines...) Expand all Loading... |
27 }; | 27 }; |
28 | 28 |
29 const char* kDataValuesNames[] = { | 29 const char* kDataValuesNames[] = { |
30 "xkbRemapSearchKeyToValue", | 30 "xkbRemapSearchKeyToValue", |
31 "xkbRemapControlKeyToValue", | 31 "xkbRemapControlKeyToValue", |
32 "xkbRemapAltKeyToValue", | 32 "xkbRemapAltKeyToValue", |
33 }; | 33 }; |
34 } // namespace | 34 } // namespace |
35 | 35 |
36 namespace chromeos { | 36 namespace chromeos { |
37 namespace options2 { | 37 namespace options { |
38 | 38 |
39 KeyboardHandler::KeyboardHandler() { | 39 KeyboardHandler::KeyboardHandler() { |
40 } | 40 } |
41 | 41 |
42 KeyboardHandler::~KeyboardHandler() { | 42 KeyboardHandler::~KeyboardHandler() { |
43 } | 43 } |
44 | 44 |
45 void KeyboardHandler::GetLocalizedValues(DictionaryValue* localized_strings) { | 45 void KeyboardHandler::GetLocalizedValues(DictionaryValue* localized_strings) { |
46 DCHECK(localized_strings); | 46 DCHECK(localized_strings); |
47 | 47 |
(...skipping 23 matching lines...) Expand all Loading... |
71 ListValue* option = new ListValue(); | 71 ListValue* option = new ListValue(); |
72 option->Append(Value::CreateIntegerValue(value)); | 72 option->Append(Value::CreateIntegerValue(value)); |
73 option->Append(Value::CreateStringValue(l10n_util::GetStringUTF16( | 73 option->Append(Value::CreateStringValue(l10n_util::GetStringUTF16( |
74 message_id))); | 74 message_id))); |
75 list_value->Append(option); | 75 list_value->Append(option); |
76 } | 76 } |
77 localized_strings->Set(kDataValuesNames[i], list_value); | 77 localized_strings->Set(kDataValuesNames[i], list_value); |
78 } | 78 } |
79 } | 79 } |
80 | 80 |
81 } // namespace options2 | 81 } // namespace options |
82 } // namespace chromeos | 82 } // namespace chromeos |
OLD | NEW |