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