Chromium Code Reviews| 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..93c56d6ca93e1a1f5bd27b9c3450ebb4d97c5d73 |
| --- /dev/null |
| +++ b/chrome/browser/chromeos/login/lock_screen_utils.h |
| @@ -0,0 +1,42 @@ |
| +// 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); |
| + |
| +// Returns true if found an element in |container| that equals to |value|. |
| +bool Contains(const std::vector<std::string>& container, |
|
jdufault
2017/06/08 21:12:06
Replace all instances of this with base::ContainsV
xiaoyinh(OOO Sep 11-29)
2017/06/09 00:47:11
Done.
|
| + const std::string& value); |
| + |
| +} // namespace lock_screen_utils |
| +} // namespace chromeos |
| + |
| +#endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_SCREEN_UTILS_H_ |