| 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_
|
|
|