Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Side by Side Diff: chrome/browser/chromeos/input_method/input_method_manager_impl.h

Issue 10907196: Add the ability to filter out extension IMEs from the language settings page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix mock input manager Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 void GetInputMethodExtensions(
62 InputMethodDescriptors* result) OVERRIDE;
63 virtual void SetFilteredExtensionImes(std::vector<std::string>* ids) OVERRIDE;
61 virtual bool SwitchToNextInputMethod() OVERRIDE; 64 virtual bool SwitchToNextInputMethod() OVERRIDE;
62 virtual bool SwitchToPreviousInputMethod() OVERRIDE; 65 virtual bool SwitchToPreviousInputMethod() OVERRIDE;
63 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) OVERRIDE; 66 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) OVERRIDE;
64 virtual InputMethodDescriptor GetCurrentInputMethod() const OVERRIDE; 67 virtual InputMethodDescriptor GetCurrentInputMethod() const OVERRIDE;
65 virtual InputMethodPropertyList 68 virtual InputMethodPropertyList
66 GetCurrentInputMethodProperties() const OVERRIDE; 69 GetCurrentInputMethodProperties() const OVERRIDE;
67 virtual XKeyboard* GetXKeyboard() OVERRIDE; 70 virtual XKeyboard* GetXKeyboard() OVERRIDE;
68 virtual InputMethodUtil* GetInputMethodUtil() OVERRIDE; 71 virtual InputMethodUtil* GetInputMethodUtil() OVERRIDE;
69 72
70 // Sets |ibus_controller_|. 73 // Sets |ibus_controller_|.
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 // A list of objects that monitor the manager. 139 // A list of objects that monitor the manager.
137 ObserverList<InputMethodManager::Observer> observers_; 140 ObserverList<InputMethodManager::Observer> observers_;
138 ObserverList<CandidateWindowObserver> candidate_window_observers_; 141 ObserverList<CandidateWindowObserver> candidate_window_observers_;
139 142
140 // The input method which was/is selected. 143 // The input method which was/is selected.
141 InputMethodDescriptor previous_input_method_; 144 InputMethodDescriptor previous_input_method_;
142 InputMethodDescriptor current_input_method_; 145 InputMethodDescriptor current_input_method_;
143 // The active input method ids cache. 146 // The active input method ids cache.
144 std::vector<std::string> active_input_method_ids_; 147 std::vector<std::string> active_input_method_ids_;
145 148
149 // The list of IMEs that are filtered from the IME list.
150 std::vector<std::string> filtered_extension_imes_;
151
146 // For screen locker. When the screen is locked, |previous_input_method_|, 152 // For screen locker. When the screen is locked, |previous_input_method_|,
147 // |current_input_method_|, and |active_input_method_ids_| above are copied 153 // |current_input_method_|, and |active_input_method_ids_| above are copied
148 // to these "saved" variables. 154 // to these "saved" variables.
149 InputMethodDescriptor saved_previous_input_method_; 155 InputMethodDescriptor saved_previous_input_method_;
150 InputMethodDescriptor saved_current_input_method_; 156 InputMethodDescriptor saved_current_input_method_;
151 std::vector<std::string> saved_active_input_method_ids_; 157 std::vector<std::string> saved_active_input_method_ids_;
152 158
153 // Extra input methods that have been explicitly added to the menu, such as 159 // Extra input methods that have been explicitly added to the menu, such as
154 // those created by extension. 160 // those created by extension.
155 std::map<std::string, InputMethodDescriptor> extra_input_methods_; 161 std::map<std::string, InputMethodDescriptor> extra_input_methods_;
(...skipping 22 matching lines...) Expand all
178 // auto-repeat interval. 184 // auto-repeat interval.
179 scoped_ptr<XKeyboard> xkeyboard_; 185 scoped_ptr<XKeyboard> xkeyboard_;
180 186
181 DISALLOW_COPY_AND_ASSIGN(InputMethodManagerImpl); 187 DISALLOW_COPY_AND_ASSIGN(InputMethodManagerImpl);
182 }; 188 };
183 189
184 } // namespace input_method 190 } // namespace input_method
185 } // namespace chromeos 191 } // namespace chromeos
186 192
187 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_ 193 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698