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

Unified Diff: chrome/browser/chromeos/login/lock_screen_utils.h

Issue 2923773003: Adding mojo calls for several lock screen related operations. (Closed)
Patch Set: comments and rebase Created 3 years, 6 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: chrome/browser/chromeos/login/lock_screen_utils.h
diff --git a/chrome/browser/chromeos/login/lock_screen_utils.h b/chrome/browser/chromeos/login/lock_screen_utils.h
new file mode 100644
index 0000000000000000000000000000000000000000..1fe58cbb8664e83894a97fd4491263e9fa7f40bb
--- /dev/null
+++ b/chrome/browser/chromeos/login/lock_screen_utils.h
@@ -0,0 +1,38 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_SCREEN_UTILS_H_
+#define CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_SCREEN_UTILS_H_
+
+#include "ui/base/ime/chromeos/input_method_manager.h"
+
+class AccountId;
+
+namespace chromeos {
+namespace lock_screen_utils {
+
+// Update current input method (namely keyboard layout) in the given IME state
+// to last input method used by this user.
+void SetUserInputMethod(const std::string& username,
+ input_method::InputMethodManager::State* ime_state);
+
+// Get user's last input method.
+std::string GetUserLastInputMethod(const std::string& username);
+
+// Update user's input method.
+bool SetUserInputMethodImpl(const std::string& username,
+ const std::string& user_input_method,
+ input_method::InputMethodManager::State* ime_state);
+
+// Sets the currently allowed input method, including those that are enforced
+// by policy.
+void EnforcePolicyInputMethods(std::string user_input_method);
+
+// Update the keyboard settings for |account_id|.
+void SetKeyboardSettings(const AccountId& account_id);
+
+} // namespace lock_screen_utils
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_SCREEN_UTILS_H_
« no previous file with comments | « chrome/browser/chromeos/login/lock/views_screen_locker.cc ('k') | chrome/browser/chromeos/login/lock_screen_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698