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

Unified Diff: ui/base/ime/chromeos/input_method_manager.h

Issue 2652793003: Add login screen locale and input method device policies (Closed)
Patch Set: Addressed comments. Created 3 years, 11 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..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>;

Powered by Google App Engine
This is Rietveld 408576698