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/chromeos/input_method/input_method_whitelist.h" | 5 #include "chrome/browser/chromeos/input_method/input_method_whitelist.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "chrome/browser/chromeos/input_method/input_method_descriptor.h" | 9 #include "chrome/browser/chromeos/input_method/input_method_descriptor.h" |
10 #include "chrome/browser/chromeos/input_method/input_methods.h" | 10 #include "chrome/browser/chromeos/input_method/input_methods.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 } | 27 } |
28 | 28 |
29 InputMethodDescriptors* InputMethodWhitelist::GetSupportedInputMethods() const { | 29 InputMethodDescriptors* InputMethodWhitelist::GetSupportedInputMethods() const { |
30 InputMethodDescriptors* input_methods = new InputMethodDescriptors; | 30 InputMethodDescriptors* input_methods = new InputMethodDescriptors; |
31 input_methods->reserve(arraysize(kInputMethods)); | 31 input_methods->reserve(arraysize(kInputMethods)); |
32 for (size_t i = 0; i < arraysize(kInputMethods); ++i) { | 32 for (size_t i = 0; i < arraysize(kInputMethods); ++i) { |
33 input_methods->push_back(InputMethodDescriptor( | 33 input_methods->push_back(InputMethodDescriptor( |
34 kInputMethods[i].input_method_id, | 34 kInputMethods[i].input_method_id, |
35 "", | 35 "", |
36 kInputMethods[i].xkb_layout_id, | 36 kInputMethods[i].xkb_layout_id, |
37 kInputMethods[i].language_code)); | 37 kInputMethods[i].language_code, |
| 38 false)); |
38 } | 39 } |
39 return input_methods; | 40 return input_methods; |
40 } | 41 } |
41 | 42 |
42 } // namespace input_method | 43 } // namespace input_method |
43 } // namespace chromeos | 44 } // namespace chromeos |
OLD | NEW |