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 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_UTIL_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_UTIL_H_ |
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_UTIL_H_ | 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_UTIL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <cstddef> | 9 #include <cstddef> |
10 #include <map> | 10 #include <map> |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/string16.h" | 14 #include "base/string16.h" |
15 #include "base/hash_tables.h" | 15 #include "base/hash_tables.h" |
16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
17 // TODO(yusukes): Do not include ibus_controller.h. | |
18 #include "chrome/browser/chromeos/input_method/ibus_controller.h" | |
19 #include "chrome/browser/chromeos/input_method/input_method_descriptor.h" | 17 #include "chrome/browser/chromeos/input_method/input_method_descriptor.h" |
20 | 18 |
21 namespace chromeos { | 19 namespace chromeos { |
22 namespace input_method { | 20 namespace input_method { |
23 | 21 |
24 // The list of language that do not have associated input methods in IBus. | 22 // The list of language that do not have associated input methods in IBus. |
25 // For these languages, we associate input methods here. | 23 // For these languages, we associate input methods here. |
26 struct ExtraLanguage { | 24 struct ExtraLanguage { |
27 const char* language_code; | 25 const char* language_code; |
28 const char* input_method_id; | 26 const char* input_method_id; |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 typedef base::hash_map<std::string, int> HashType; | 199 typedef base::hash_map<std::string, int> HashType; |
202 HashType english_to_resource_id_; | 200 HashType english_to_resource_id_; |
203 | 201 |
204 std::string hardware_input_method_id_for_testing_; | 202 std::string hardware_input_method_id_for_testing_; |
205 }; | 203 }; |
206 | 204 |
207 } // namespace input_method | 205 } // namespace input_method |
208 } // namespace chromeos | 206 } // namespace chromeos |
209 | 207 |
210 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_UTIL_H_ | 208 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_UTIL_H_ |
OLD | NEW |