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..775d8fa65dceee73ae7115e83ca4420ddab2e6d9 100644 |
--- a/ui/base/ime/chromeos/input_method_manager.h |
+++ b/ui/base/ime/chromeos/input_method_manager.h |
@@ -213,6 +213,19 @@ class UI_BASE_IME_EXPORT InputMethodManager { |
virtual bool ReplaceEnabledInputMethods( |
const std::vector<std::string>& new_active_input_method_ids) = 0; |
+ // Sets the currently allowed keyboard layout input methods (e.g. due to |
+ // policy). Invalid input method ids are ignored. Passing an empty vector |
+ // means that all keyboard layout input methods are allowed, which is the |
+ // default. |
+ // When allowed input methods are set, these are also automatically enabled. |
+ virtual bool SetAllowedKeyboardLayoutInputMethods( |
+ const std::vector<std::string>& allowed_input_method_ids) = 0; |
+ |
+ // Returns the currently allowed keyboard layout input methods, as set by |
+ // SetAllowedKeyboardLayoutInputMethodIds. |
+ virtual const std::vector<std::string>& |
+ GetAllowedKeyboardLayoutInputMethods() = 0; |
+ |
protected: |
friend base::RefCounted<InputMethodManager::State>; |