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 // Returns true if found an element in |container| that equals to |value|. | |
36 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.
| |
37 const std::string& value); | |
38 | |
39 } // namespace lock_screen_utils | |
40 } // namespace chromeos | |
41 | |
42 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_SCREEN_UTILS_H_ | |
OLD | NEW |