| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 size_t GetNumActiveInputMethods() const override; | 98 size_t GetNumActiveInputMethods() const override; |
| 99 void SetEnabledExtensionImes(std::vector<std::string>* ids) override; | 99 void SetEnabledExtensionImes(std::vector<std::string>* ids) override; |
| 100 void SetInputMethodLoginDefault() override; | 100 void SetInputMethodLoginDefault() override; |
| 101 void SetInputMethodLoginDefaultFromVPD(const std::string& locale, | 101 void SetInputMethodLoginDefaultFromVPD(const std::string& locale, |
| 102 const std::string& layout) override; | 102 const std::string& layout) override; |
| 103 void SwitchToNextInputMethod() override; | 103 void SwitchToNextInputMethod() override; |
| 104 void SwitchToPreviousInputMethod() override; | 104 void SwitchToPreviousInputMethod() override; |
| 105 InputMethodDescriptor GetCurrentInputMethod() const override; | 105 InputMethodDescriptor GetCurrentInputMethod() const override; |
| 106 bool ReplaceEnabledInputMethods( | 106 bool ReplaceEnabledInputMethods( |
| 107 const std::vector<std::string>& new_active_input_method_ids) override; | 107 const std::vector<std::string>& new_active_input_method_ids) override; |
| 108 | |
| 109 bool SetAllowedInputMethods( | 108 bool SetAllowedInputMethods( |
| 110 const std::vector<std::string>& new_allowed_input_method_ids) override; | 109 const std::vector<std::string>& new_allowed_input_method_ids) override; |
| 111 const std::vector<std::string>& GetAllowedInputMethods() override; | 110 const std::vector<std::string>& GetAllowedInputMethods() override; |
| 112 | 111 |
| 113 // ------------------------- Data members. | 112 // ------------------------- Data members. |
| 114 Profile* const profile; | 113 Profile* const profile; |
| 115 | 114 |
| 116 // The input method which was/is selected. | 115 // The input method which was/is selected. |
| 117 InputMethodDescriptor previous_input_method; | 116 InputMethodDescriptor previous_input_method; |
| 118 InputMethodDescriptor current_input_method; | 117 InputMethodDescriptor current_input_method; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 const override; | 175 const override; |
| 177 void ActivateInputMethodMenuItem(const std::string& key) override; | 176 void ActivateInputMethodMenuItem(const std::string& key) override; |
| 178 bool IsISOLevel5ShiftUsedByCurrentInputMethod() const override; | 177 bool IsISOLevel5ShiftUsedByCurrentInputMethod() const override; |
| 179 bool IsAltGrUsedByCurrentInputMethod() const override; | 178 bool IsAltGrUsedByCurrentInputMethod() const override; |
| 180 void NotifyImeMenuItemsChanged( | 179 void NotifyImeMenuItemsChanged( |
| 181 const std::string& engine_id, | 180 const std::string& engine_id, |
| 182 const std::vector<InputMethodManager::MenuItem>& items) override; | 181 const std::vector<InputMethodManager::MenuItem>& items) override; |
| 183 void MaybeNotifyImeMenuActivationChanged() override; | 182 void MaybeNotifyImeMenuActivationChanged() override; |
| 184 void OverrideKeyboardUrlRef(const std::string& keyset) override; | 183 void OverrideKeyboardUrlRef(const std::string& keyset) override; |
| 185 bool IsEmojiHandwritingVoiceOnImeMenuEnabled() override; | 184 bool IsEmojiHandwritingVoiceOnImeMenuEnabled() override; |
| 185 void SetImeMenuFeatureEnabled(ImeMenuFeature feature, bool enabled) override; |
| 186 bool GetImeMenuFeatureEnabled(ImeMenuFeature feature) const override; |
| 186 | 187 |
| 187 // chromeos::UserAddingScreen: | 188 // chromeos::UserAddingScreen: |
| 188 void OnUserAddingStarted() override; | 189 void OnUserAddingStarted() override; |
| 189 void OnUserAddingFinished() override; | 190 void OnUserAddingFinished() override; |
| 190 | 191 |
| 191 ImeKeyboard* GetImeKeyboard() override; | 192 ImeKeyboard* GetImeKeyboard() override; |
| 192 InputMethodUtil* GetInputMethodUtil() override; | 193 InputMethodUtil* GetInputMethodUtil() override; |
| 193 ComponentExtensionIMEManager* GetComponentExtensionIMEManager() override; | 194 ComponentExtensionIMEManager* GetComponentExtensionIMEManager() override; |
| 194 bool IsLoginKeyboard(const std::string& layout) const override; | 195 bool IsLoginKeyboard(const std::string& layout) const override; |
| 195 | 196 |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 // An object for switching XKB layouts and keyboard status like caps lock and | 293 // An object for switching XKB layouts and keyboard status like caps lock and |
| 293 // auto-repeat interval. | 294 // auto-repeat interval. |
| 294 std::unique_ptr<ImeKeyboard> keyboard_; | 295 std::unique_ptr<ImeKeyboard> keyboard_; |
| 295 | 296 |
| 296 // Whether load IME extensions. | 297 // Whether load IME extensions. |
| 297 bool enable_extension_loading_; | 298 bool enable_extension_loading_; |
| 298 | 299 |
| 299 // Whether the expanded IME menu is activated. | 300 // Whether the expanded IME menu is activated. |
| 300 bool is_ime_menu_activated_; | 301 bool is_ime_menu_activated_; |
| 301 | 302 |
| 303 // The enabled state of keyboard features. |
| 304 uint32_t features_enabled_state_; |
| 305 |
| 302 // The engine map from extension_id to an engine. | 306 // The engine map from extension_id to an engine. |
| 303 typedef std::map<std::string, ui::IMEEngineHandlerInterface*> EngineMap; | 307 typedef std::map<std::string, ui::IMEEngineHandlerInterface*> EngineMap; |
| 304 typedef std::map<Profile*, EngineMap, ProfileCompare> ProfileEngineMap; | 308 typedef std::map<Profile*, EngineMap, ProfileCompare> ProfileEngineMap; |
| 305 ProfileEngineMap engine_map_; | 309 ProfileEngineMap engine_map_; |
| 306 | 310 |
| 307 DISALLOW_COPY_AND_ASSIGN(InputMethodManagerImpl); | 311 DISALLOW_COPY_AND_ASSIGN(InputMethodManagerImpl); |
| 308 }; | 312 }; |
| 309 | 313 |
| 310 } // namespace input_method | 314 } // namespace input_method |
| 311 } // namespace chromeos | 315 } // namespace chromeos |
| 312 | 316 |
| 313 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_ | 317 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_ |
| OLD | NEW |