OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_SCREEN_UTILS_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_SCREEN_UTILS_H_ |
| 7 |
| 8 #include "ui/base/ime/chromeos/input_method_manager.h" |
| 9 |
| 10 class AccountId; |
| 11 |
| 12 namespace chromeos { |
| 13 namespace lock_screen_utils { |
| 14 |
| 15 // Update current input method (namely keyboard layout) in the given IME state |
| 16 // to last input method used by this user. |
| 17 void SetUserInputMethod(const std::string& username, |
| 18 input_method::InputMethodManager::State* ime_state); |
| 19 |
| 20 // Get user's last input method. |
| 21 std::string GetUserLastInputMethod(const std::string& username); |
| 22 |
| 23 // Update user's input method. |
| 24 bool SetUserInputMethodImpl(const std::string& username, |
| 25 const std::string& user_input_method, |
| 26 input_method::InputMethodManager::State* ime_state); |
| 27 |
| 28 // Sets the currently allowed input method, including those that are enforced |
| 29 // by policy. |
| 30 void EnforcePolicyInputMethods(std::string user_input_method); |
| 31 |
| 32 // Update the keyboard settings for |account_id|. |
| 33 void SetKeyboardSettings(const AccountId& account_id); |
| 34 |
| 35 } // namespace lock_screen_utils |
| 36 } // namespace chromeos |
| 37 |
| 38 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_SCREEN_UTILS_H_ |
OLD | NEW |