| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 const InputMethodConfigValue& value) OVERRIDE; | 51 const InputMethodConfigValue& value) OVERRIDE; |
| 52 virtual void ChangeInputMethod(const std::string& input_method_id) OVERRIDE; | 52 virtual void ChangeInputMethod(const std::string& input_method_id) OVERRIDE; |
| 53 virtual void ActivateInputMethodProperty(const std::string& key) OVERRIDE; | 53 virtual void ActivateInputMethodProperty(const std::string& key) OVERRIDE; |
| 54 virtual void AddInputMethodExtension( | 54 virtual void AddInputMethodExtension( |
| 55 const std::string& id, | 55 const std::string& id, |
| 56 const std::string& name, | 56 const std::string& name, |
| 57 const std::vector<std::string>& layouts, | 57 const std::vector<std::string>& layouts, |
| 58 const std::string& language, | 58 const std::string& language, |
| 59 InputMethodEngine* instance) OVERRIDE; | 59 InputMethodEngine* instance) OVERRIDE; |
| 60 virtual void RemoveInputMethodExtension(const std::string& id) OVERRIDE; | 60 virtual void RemoveInputMethodExtension(const std::string& id) OVERRIDE; |
| 61 virtual InputMethodDescriptors* GetInputMethodExtensions() OVERRIDE; |
| 62 virtual void SetFilteredExtensionImes(std::vector<std::string>& ids) OVERRIDE; |
| 61 virtual bool SwitchToNextInputMethod() OVERRIDE; | 63 virtual bool SwitchToNextInputMethod() OVERRIDE; |
| 62 virtual bool SwitchToPreviousInputMethod() OVERRIDE; | 64 virtual bool SwitchToPreviousInputMethod() OVERRIDE; |
| 63 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) OVERRIDE; | 65 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) OVERRIDE; |
| 64 virtual InputMethodDescriptor GetCurrentInputMethod() const OVERRIDE; | 66 virtual InputMethodDescriptor GetCurrentInputMethod() const OVERRIDE; |
| 65 virtual InputMethodPropertyList | 67 virtual InputMethodPropertyList |
| 66 GetCurrentInputMethodProperties() const OVERRIDE; | 68 GetCurrentInputMethodProperties() const OVERRIDE; |
| 67 virtual XKeyboard* GetXKeyboard() OVERRIDE; | 69 virtual XKeyboard* GetXKeyboard() OVERRIDE; |
| 68 virtual InputMethodUtil* GetInputMethodUtil() OVERRIDE; | 70 virtual InputMethodUtil* GetInputMethodUtil() OVERRIDE; |
| 69 | 71 |
| 70 // Sets |ibus_controller_|. | 72 // Sets |ibus_controller_|. |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 // A list of objects that monitor the manager. | 138 // A list of objects that monitor the manager. |
| 137 ObserverList<InputMethodManager::Observer> observers_; | 139 ObserverList<InputMethodManager::Observer> observers_; |
| 138 ObserverList<CandidateWindowObserver> candidate_window_observers_; | 140 ObserverList<CandidateWindowObserver> candidate_window_observers_; |
| 139 | 141 |
| 140 // The input method which was/is selected. | 142 // The input method which was/is selected. |
| 141 InputMethodDescriptor previous_input_method_; | 143 InputMethodDescriptor previous_input_method_; |
| 142 InputMethodDescriptor current_input_method_; | 144 InputMethodDescriptor current_input_method_; |
| 143 // The active input method ids cache. | 145 // The active input method ids cache. |
| 144 std::vector<std::string> active_input_method_ids_; | 146 std::vector<std::string> active_input_method_ids_; |
| 145 | 147 |
| 148 // These IMEs are not added to the ime list. |
| 149 std::vector<std::string> filtered_extension_imes_; |
| 150 |
| 146 // For screen locker. When the screen is locked, |previous_input_method_|, | 151 // For screen locker. When the screen is locked, |previous_input_method_|, |
| 147 // |current_input_method_|, and |active_input_method_ids_| above are copied | 152 // |current_input_method_|, and |active_input_method_ids_| above are copied |
| 148 // to these "saved" variables. | 153 // to these "saved" variables. |
| 149 InputMethodDescriptor saved_previous_input_method_; | 154 InputMethodDescriptor saved_previous_input_method_; |
| 150 InputMethodDescriptor saved_current_input_method_; | 155 InputMethodDescriptor saved_current_input_method_; |
| 151 std::vector<std::string> saved_active_input_method_ids_; | 156 std::vector<std::string> saved_active_input_method_ids_; |
| 152 | 157 |
| 153 // Extra input methods that have been explicitly added to the menu, such as | 158 // Extra input methods that have been explicitly added to the menu, such as |
| 154 // those created by extension. | 159 // those created by extension. |
| 155 std::map<std::string, InputMethodDescriptor> extra_input_methods_; | 160 std::map<std::string, InputMethodDescriptor> extra_input_methods_; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 178 // auto-repeat interval. | 183 // auto-repeat interval. |
| 179 scoped_ptr<XKeyboard> xkeyboard_; | 184 scoped_ptr<XKeyboard> xkeyboard_; |
| 180 | 185 |
| 181 DISALLOW_COPY_AND_ASSIGN(InputMethodManagerImpl); | 186 DISALLOW_COPY_AND_ASSIGN(InputMethodManagerImpl); |
| 182 }; | 187 }; |
| 183 | 188 |
| 184 } // namespace input_method | 189 } // namespace input_method |
| 185 } // namespace chromeos | 190 } // namespace chromeos |
| 186 | 191 |
| 187 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_ | 192 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_ |
| OLD | NEW |