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_MANAGER_IMPL_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_ |
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_ | 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 // An object for switching XKB layouts and keyboard status like caps lock and | 248 // An object for switching XKB layouts and keyboard status like caps lock and |
249 // auto-repeat interval. | 249 // auto-repeat interval. |
250 scoped_ptr<ImeKeyboard> keyboard_; | 250 scoped_ptr<ImeKeyboard> keyboard_; |
251 | 251 |
252 | 252 |
253 // Whether load IME extensions. | 253 // Whether load IME extensions. |
254 bool enable_extension_loading_; | 254 bool enable_extension_loading_; |
255 | 255 |
256 // The engine map from extension_id to an engine. | 256 // The engine map from extension_id to an engine. |
257 typedef std::map<std::string, InputMethodEngineInterface*> EngineMap; | 257 typedef std::map<std::string, InputMethodEngineInterface*> EngineMap; |
258 EngineMap engine_map_; | 258 typedef std::map<Profile*, EngineMap, ProfileCompare> ProfileEngineMap; |
| 259 ProfileEngineMap engine_map_; |
259 | 260 |
260 // The map from input method id to the input method stat id. | 261 // The map from input method id to the input method stat id. |
261 // The stat id has the format: <category#><first char after prefix><index> | 262 // The stat id has the format: <category#><first char after prefix><index> |
262 // For example, Chinese Simplified Pinyin IME has the stat id: | 263 // For example, Chinese Simplified Pinyin IME has the stat id: |
263 // 2,'p',1 -> 211201 | 264 // 2,'p',1 -> 211201 |
264 // 2 means it in INPUT_METHOD_CATEGORY_ZH; | 265 // 2 means it in INPUT_METHOD_CATEGORY_ZH; |
265 // 112 means the first char after prefix is 'p' of 'pinyin'; | 266 // 112 means the first char after prefix is 'p' of 'pinyin'; |
266 // 01 means it's the second pinyin as the first pinyin is for Traditional | 267 // 01 means it's the second pinyin as the first pinyin is for Traditional |
267 // Chinese Pinyin IME. Note "zh-hant-t-i0-pinyin" < "zh-t-i0-pinyin". | 268 // Chinese Pinyin IME. Note "zh-hant-t-i0-pinyin" < "zh-t-i0-pinyin". |
268 std::map<std::string, int> stat_id_map_; | 269 std::map<std::string, int> stat_id_map_; |
269 | 270 |
270 DISALLOW_COPY_AND_ASSIGN(InputMethodManagerImpl); | 271 DISALLOW_COPY_AND_ASSIGN(InputMethodManagerImpl); |
271 }; | 272 }; |
272 | 273 |
273 } // namespace input_method | 274 } // namespace input_method |
274 } // namespace chromeos | 275 } // namespace chromeos |
275 | 276 |
276 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_ | 277 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_ |
OLD | NEW |