Chromium Code Reviews| 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( |
|
Yuki
2017/01/31 15:18:29
nit: "keyboard layout input method" sounds a bit w
pmarko
2017/02/01 10:04:12
Good point, the naming indeed is a little weird.
Yuki
2017/02/01 12:12:19
My personal preference is to use a general tool wi
pmarko
2017/02/01 14:07:57
Done.
|
| + 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; |
|
Yuki
2017/01/31 15:18:29
nit: Ditto.
pmarko
2017/02/01 14:07:57
Done.
|
| + |
| protected: |
| friend base::RefCounted<InputMethodManager::State>; |