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

Side by Side Diff: ui/base/ime/chromeos/input_method_manager.h

Issue 2652793003: Add login screen locale and input method device policies (Closed)
Patch Set: Rebase. Created 3 years, 10 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
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 UI_BASE_IME_CHROMEOS_INPUT_METHOD_MANAGER_H_ 5 #ifndef UI_BASE_IME_CHROMEOS_INPUT_METHOD_MANAGER_H_
6 #define UI_BASE_IME_CHROMEOS_INPUT_METHOD_MANAGER_H_ 6 #define UI_BASE_IME_CHROMEOS_INPUT_METHOD_MANAGER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 virtual void SwitchInputMethod(const ui::Accelerator& accelerator) = 0; 206 virtual void SwitchInputMethod(const ui::Accelerator& accelerator) = 0;
207 207
208 // Gets the descriptor of the input method which is currently selected. 208 // Gets the descriptor of the input method which is currently selected.
209 virtual InputMethodDescriptor GetCurrentInputMethod() const = 0; 209 virtual InputMethodDescriptor GetCurrentInputMethod() const = 0;
210 210
211 // Updates the list of active input method IDs, and then starts or stops the 211 // Updates the list of active input method IDs, and then starts or stops the
212 // system input method framework as needed. 212 // system input method framework as needed.
213 virtual bool ReplaceEnabledInputMethods( 213 virtual bool ReplaceEnabledInputMethods(
214 const std::vector<std::string>& new_active_input_method_ids) = 0; 214 const std::vector<std::string>& new_active_input_method_ids) = 0;
215 215
216 // Sets the currently allowed input methods (e.g. due to policy). Invalid
217 // input method ids are ignored. Passing an empty vector means that all
218 // input methods are allowed, which is the default. When allowed input
219 // methods are set, these are also automatically enabled.
220 virtual bool SetAllowedInputMethods(
221 const std::vector<std::string>& allowed_input_method_ids) = 0;
222
223 // Returns the currently allowed input methods, as set by
224 // SetAllowedInputMethodIds. An empty vector means that all input methods
225 // are allowed.
226 virtual const std::vector<std::string>& GetAllowedInputMethods() = 0;
227
216 protected: 228 protected:
217 friend base::RefCounted<InputMethodManager::State>; 229 friend base::RefCounted<InputMethodManager::State>;
218 230
219 virtual ~State(); 231 virtual ~State();
220 }; 232 };
221 233
222 virtual ~InputMethodManager() {} 234 virtual ~InputMethodManager() {}
223 235
224 // Gets the global instance of InputMethodManager. Initialize() must be called 236 // Gets the global instance of InputMethodManager. Initialize() must be called
225 // first. 237 // first.
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 319
308 // Returns whether the extra inputs: emoji, handwriting and voice inputs on 320 // Returns whether the extra inputs: emoji, handwriting and voice inputs on
309 // opt-in IME menu has been enabled. 321 // opt-in IME menu has been enabled.
310 virtual bool IsEmojiHandwritingVoiceOnImeMenuEnabled() = 0; 322 virtual bool IsEmojiHandwritingVoiceOnImeMenuEnabled() = 0;
311 }; 323 };
312 324
313 } // namespace input_method 325 } // namespace input_method
314 } // namespace chromeos 326 } // namespace chromeos
315 327
316 #endif // UI_BASE_IME_CHROMEOS_INPUT_METHOD_MANAGER_H_ 328 #endif // UI_BASE_IME_CHROMEOS_INPUT_METHOD_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698