Chromium Code Reviews| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 164 void RemoveImeMenuObserver( | 164 void RemoveImeMenuObserver( |
| 165 InputMethodManager::ImeMenuObserver* observer) override; | 165 InputMethodManager::ImeMenuObserver* observer) override; |
| 166 std::unique_ptr<InputMethodDescriptors> GetSupportedInputMethods() | 166 std::unique_ptr<InputMethodDescriptors> GetSupportedInputMethods() |
| 167 const override; | 167 const override; |
| 168 void ActivateInputMethodMenuItem(const std::string& key) override; | 168 void ActivateInputMethodMenuItem(const std::string& key) override; |
| 169 bool IsISOLevel5ShiftUsedByCurrentInputMethod() const override; | 169 bool IsISOLevel5ShiftUsedByCurrentInputMethod() const override; |
| 170 bool IsAltGrUsedByCurrentInputMethod() const override; | 170 bool IsAltGrUsedByCurrentInputMethod() const override; |
| 171 void NotifyImeMenuItemsChanged( | 171 void NotifyImeMenuItemsChanged( |
| 172 const std::string& engine_id, | 172 const std::string& engine_id, |
| 173 const std::vector<InputMethodManager::MenuItem>& items) override; | 173 const std::vector<InputMethodManager::MenuItem>& items) override; |
| 174 bool GetImeMenuActivation(Profile* profile) override; | |
| 174 | 175 |
| 175 // chromeos::UserAddingScreen: | 176 // chromeos::UserAddingScreen: |
| 176 void OnUserAddingStarted() override; | 177 void OnUserAddingStarted() override; |
| 177 void OnUserAddingFinished() override; | 178 void OnUserAddingFinished() override; |
| 178 | 179 |
| 179 ImeKeyboard* GetImeKeyboard() override; | 180 ImeKeyboard* GetImeKeyboard() override; |
| 180 InputMethodUtil* GetInputMethodUtil() override; | 181 InputMethodUtil* GetInputMethodUtil() override; |
| 181 ComponentExtensionIMEManager* GetComponentExtensionIMEManager() override; | 182 ComponentExtensionIMEManager* GetComponentExtensionIMEManager() override; |
| 182 bool IsLoginKeyboard(const std::string& layout) const override; | 183 bool IsLoginKeyboard(const std::string& layout) const override; |
| 183 | 184 |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 278 component_extension_ime_manager_; | 279 component_extension_ime_manager_; |
| 279 | 280 |
| 280 // An object for switching XKB layouts and keyboard status like caps lock and | 281 // An object for switching XKB layouts and keyboard status like caps lock and |
| 281 // auto-repeat interval. | 282 // auto-repeat interval. |
| 282 std::unique_ptr<ImeKeyboard> keyboard_; | 283 std::unique_ptr<ImeKeyboard> keyboard_; |
| 283 | 284 |
| 284 // Whether load IME extensions. | 285 // Whether load IME extensions. |
| 285 bool enable_extension_loading_; | 286 bool enable_extension_loading_; |
| 286 | 287 |
| 287 // Whether the expanded IME menu is activated. | 288 // Whether the expanded IME menu is activated. |
| 288 bool is_ime_menu_activated_; | 289 bool is_ime_menu_activated_; |
|
stevenjb
2016/08/26 17:15:02
Unused now?
Azure Wei
2016/08/26 21:59:59
Removed. Thanks.
| |
| 289 | 290 |
| 290 // The engine map from extension_id to an engine. | 291 // The engine map from extension_id to an engine. |
| 291 typedef std::map<std::string, ui::IMEEngineHandlerInterface*> EngineMap; | 292 typedef std::map<std::string, ui::IMEEngineHandlerInterface*> EngineMap; |
| 292 typedef std::map<Profile*, EngineMap, ProfileCompare> ProfileEngineMap; | 293 typedef std::map<Profile*, EngineMap, ProfileCompare> ProfileEngineMap; |
| 293 ProfileEngineMap engine_map_; | 294 ProfileEngineMap engine_map_; |
| 294 | 295 |
| 296 // The opt-in IME menu activation state of each profile. | |
| 297 std::map<Profile*, bool> menu_map_; | |
|
stevenjb
2016/08/26 17:15:02
This should be named something like 'menu_activate
Azure Wei
2016/08/26 21:59:59
Done.
| |
| 298 | |
| 295 DISALLOW_COPY_AND_ASSIGN(InputMethodManagerImpl); | 299 DISALLOW_COPY_AND_ASSIGN(InputMethodManagerImpl); |
| 296 }; | 300 }; |
| 297 | 301 |
| 298 } // namespace input_method | 302 } // namespace input_method |
| 299 } // namespace chromeos | 303 } // namespace chromeos |
| 300 | 304 |
| 301 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_ | 305 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_ |
| OLD | NEW |