| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 void SetInputMethodLoginDefaultFromVPD(const std::string& locale, | 104 void SetInputMethodLoginDefaultFromVPD(const std::string& locale, |
| 105 const std::string& layout) override; | 105 const std::string& layout) override; |
| 106 bool CanCycleInputMethod() override; | 106 bool CanCycleInputMethod() override; |
| 107 void SwitchToNextInputMethod() override; | 107 void SwitchToNextInputMethod() override; |
| 108 void SwitchToPreviousInputMethod() override; | 108 void SwitchToPreviousInputMethod() override; |
| 109 bool CanSwitchInputMethod(const ui::Accelerator& accelerator) override; | 109 bool CanSwitchInputMethod(const ui::Accelerator& accelerator) override; |
| 110 void SwitchInputMethod(const ui::Accelerator& accelerator) override; | 110 void SwitchInputMethod(const ui::Accelerator& accelerator) override; |
| 111 InputMethodDescriptor GetCurrentInputMethod() const override; | 111 InputMethodDescriptor GetCurrentInputMethod() const override; |
| 112 bool ReplaceEnabledInputMethods( | 112 bool ReplaceEnabledInputMethods( |
| 113 const std::vector<std::string>& new_active_input_method_ids) override; | 113 const std::vector<std::string>& new_active_input_method_ids) override; |
| 114 | |
| 115 bool SetAllowedInputMethods( | 114 bool SetAllowedInputMethods( |
| 116 const std::vector<std::string>& new_allowed_input_method_ids) override; | 115 const std::vector<std::string>& new_allowed_input_method_ids) override; |
| 117 const std::vector<std::string>& GetAllowedInputMethods() override; | 116 const std::vector<std::string>& GetAllowedInputMethods() override; |
| 118 | 117 |
| 119 // ------------------------- Data members. | 118 // ------------------------- Data members. |
| 120 Profile* const profile; | 119 Profile* const profile; |
| 121 | 120 |
| 122 // The input method which was/is selected. | 121 // The input method which was/is selected. |
| 123 InputMethodDescriptor previous_input_method; | 122 InputMethodDescriptor previous_input_method; |
| 124 InputMethodDescriptor current_input_method; | 123 InputMethodDescriptor current_input_method; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 const override; | 181 const override; |
| 183 void ActivateInputMethodMenuItem(const std::string& key) override; | 182 void ActivateInputMethodMenuItem(const std::string& key) override; |
| 184 bool IsISOLevel5ShiftUsedByCurrentInputMethod() const override; | 183 bool IsISOLevel5ShiftUsedByCurrentInputMethod() const override; |
| 185 bool IsAltGrUsedByCurrentInputMethod() const override; | 184 bool IsAltGrUsedByCurrentInputMethod() const override; |
| 186 void NotifyImeMenuItemsChanged( | 185 void NotifyImeMenuItemsChanged( |
| 187 const std::string& engine_id, | 186 const std::string& engine_id, |
| 188 const std::vector<InputMethodManager::MenuItem>& items) override; | 187 const std::vector<InputMethodManager::MenuItem>& items) override; |
| 189 void MaybeNotifyImeMenuActivationChanged() override; | 188 void MaybeNotifyImeMenuActivationChanged() override; |
| 190 void OverrideKeyboardUrlRef(const std::string& keyset) override; | 189 void OverrideKeyboardUrlRef(const std::string& keyset) override; |
| 191 bool IsEmojiHandwritingVoiceOnImeMenuEnabled() override; | 190 bool IsEmojiHandwritingVoiceOnImeMenuEnabled() override; |
| 191 void SetFeaturesRestrictedState(FeaturesRestrictedState feature, |
| 192 bool restricted) override; |
| 193 uint32_t GetFeaturesRestrictedState() override; |
| 192 | 194 |
| 193 // chromeos::UserAddingScreen: | 195 // chromeos::UserAddingScreen: |
| 194 void OnUserAddingStarted() override; | 196 void OnUserAddingStarted() override; |
| 195 void OnUserAddingFinished() override; | 197 void OnUserAddingFinished() override; |
| 196 | 198 |
| 197 ImeKeyboard* GetImeKeyboard() override; | 199 ImeKeyboard* GetImeKeyboard() override; |
| 198 InputMethodUtil* GetInputMethodUtil() override; | 200 InputMethodUtil* GetInputMethodUtil() override; |
| 199 ComponentExtensionIMEManager* GetComponentExtensionIMEManager() override; | 201 ComponentExtensionIMEManager* GetComponentExtensionIMEManager() override; |
| 200 bool IsLoginKeyboard(const std::string& layout) const override; | 202 bool IsLoginKeyboard(const std::string& layout) const override; |
| 201 | 203 |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 // An object for switching XKB layouts and keyboard status like caps lock and | 300 // An object for switching XKB layouts and keyboard status like caps lock and |
| 299 // auto-repeat interval. | 301 // auto-repeat interval. |
| 300 std::unique_ptr<ImeKeyboard> keyboard_; | 302 std::unique_ptr<ImeKeyboard> keyboard_; |
| 301 | 303 |
| 302 // Whether load IME extensions. | 304 // Whether load IME extensions. |
| 303 bool enable_extension_loading_; | 305 bool enable_extension_loading_; |
| 304 | 306 |
| 305 // Whether the expanded IME menu is activated. | 307 // Whether the expanded IME menu is activated. |
| 306 bool is_ime_menu_activated_; | 308 bool is_ime_menu_activated_; |
| 307 | 309 |
| 310 // The restricted state of keyboard features. |
| 311 uint32_t features_restricted_state_; |
| 312 |
| 308 // The engine map from extension_id to an engine. | 313 // The engine map from extension_id to an engine. |
| 309 typedef std::map<std::string, ui::IMEEngineHandlerInterface*> EngineMap; | 314 typedef std::map<std::string, ui::IMEEngineHandlerInterface*> EngineMap; |
| 310 typedef std::map<Profile*, EngineMap, ProfileCompare> ProfileEngineMap; | 315 typedef std::map<Profile*, EngineMap, ProfileCompare> ProfileEngineMap; |
| 311 ProfileEngineMap engine_map_; | 316 ProfileEngineMap engine_map_; |
| 312 | 317 |
| 313 DISALLOW_COPY_AND_ASSIGN(InputMethodManagerImpl); | 318 DISALLOW_COPY_AND_ASSIGN(InputMethodManagerImpl); |
| 314 }; | 319 }; |
| 315 | 320 |
| 316 } // namespace input_method | 321 } // namespace input_method |
| 317 } // namespace chromeos | 322 } // namespace chromeos |
| 318 | 323 |
| 319 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_ | 324 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_ |
| OLD | NEW |