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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: ui/base/ime/chromeos/input_method_manager.h
diff --git a/ui/base/ime/chromeos/input_method_manager.h b/ui/base/ime/chromeos/input_method_manager.h
index 69531425da3f47b1443a1431e8544a02ada22f47..2ad022ddf63351a5098debb687538c34c4e8a0c0 100644
--- a/ui/base/ime/chromeos/input_method_manager.h
+++ b/ui/base/ime/chromeos/input_method_manager.h
@@ -213,6 +213,18 @@ class UI_BASE_IME_EXPORT InputMethodManager {
virtual bool ReplaceEnabledInputMethods(
const std::vector<std::string>& new_active_input_method_ids) = 0;
+ // Sets the currently allowed input methods (e.g. due to policy). Invalid
+ // input method ids are ignored. Passing an empty vector means that all
+ // input methods are allowed, which is the default. When allowed input
+ // methods are set, these are also automatically enabled.
+ virtual bool SetAllowedInputMethods(
+ const std::vector<std::string>& allowed_input_method_ids) = 0;
+
+ // Returns the currently allowed input methods, as set by
+ // SetAllowedInputMethodIds. An empty vector means that all input methods
+ // are allowed.
+ virtual const std::vector<std::string>& GetAllowedInputMethods() = 0;
+
protected:
friend base::RefCounted<InputMethodManager::State>;

Powered by Google App Engine
This is Rietveld 408576698