OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_CHROME_USER_SELECTION_SCREEN_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_CHROME_USER_SELECTION_SCREEN_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_CHROME_USER_SELECTION_SCREEN_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_CHROME_USER_SELECTION_SCREEN_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "chrome/browser/chromeos/login/screens/user_selection_screen.h" | 15 #include "chrome/browser/chromeos/login/screens/user_selection_screen.h" |
16 #include "chrome/browser/chromeos/policy/device_local_account_policy_service.h" | 16 #include "chrome/browser/chromeos/policy/device_local_account_policy_service.h" |
17 | 17 |
18 namespace chromeos { | 18 namespace chromeos { |
19 | 19 |
20 class ChromeUserSelectionScreen | 20 class ChromeUserSelectionScreen |
21 : public UserSelectionScreen, | 21 : public UserSelectionScreen, |
22 public policy::DeviceLocalAccountPolicyService::Observer { | 22 public policy::DeviceLocalAccountPolicyService::Observer { |
23 public: | 23 public: |
24 ChromeUserSelectionScreen(); | 24 ChromeUserSelectionScreen(); |
25 virtual ~ChromeUserSelectionScreen(); | 25 virtual ~ChromeUserSelectionScreen(); |
26 | 26 |
27 // UserSelectionScreen: | 27 // UserSelectionScreen: |
28 virtual void Init(const user_manager::UserList& users, | 28 virtual void Init(const user_manager::UserList& users, |
29 bool show_guest) OVERRIDE; | 29 bool show_guest) override; |
30 virtual void SendUserList() OVERRIDE; | 30 virtual void SendUserList() override; |
31 | 31 |
32 // policy::DeviceLocalAccountPolicyService::Observer: | 32 // policy::DeviceLocalAccountPolicyService::Observer: |
33 virtual void OnPolicyUpdated(const std::string& user_id) OVERRIDE; | 33 virtual void OnPolicyUpdated(const std::string& user_id) override; |
34 virtual void OnDeviceLocalAccountsChanged() OVERRIDE; | 34 virtual void OnDeviceLocalAccountsChanged() override; |
35 | 35 |
36 private: | 36 private: |
37 // Check whether the display name set by policy for a public session has | 37 // Check whether the display name set by policy for a public session has |
38 // changed and if so, notify the UI. | 38 // changed and if so, notify the UI. |
39 void CheckForPublicSessionDisplayNameChange( | 39 void CheckForPublicSessionDisplayNameChange( |
40 policy::DeviceLocalAccountPolicyBroker* broker); | 40 policy::DeviceLocalAccountPolicyBroker* broker); |
41 | 41 |
42 // Check whether the list of recommended locales set by policy for a public | 42 // Check whether the list of recommended locales set by policy for a public |
43 // session has changed and if so, notify the UI. | 43 // session has changed and if so, notify the UI. |
44 void CheckForPublicSessionLocalePolicyChange( | 44 void CheckForPublicSessionLocalePolicyChange( |
(...skipping 18 matching lines...) Expand all Loading... |
63 DisplayNamesMap public_session_display_names_; | 63 DisplayNamesMap public_session_display_names_; |
64 | 64 |
65 base::WeakPtrFactory<ChromeUserSelectionScreen> weak_factory_; | 65 base::WeakPtrFactory<ChromeUserSelectionScreen> weak_factory_; |
66 | 66 |
67 DISALLOW_COPY_AND_ASSIGN(ChromeUserSelectionScreen); | 67 DISALLOW_COPY_AND_ASSIGN(ChromeUserSelectionScreen); |
68 }; | 68 }; |
69 | 69 |
70 } // namespace chromeos | 70 } // namespace chromeos |
71 | 71 |
72 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_CHROME_USER_SELECTION_SCREEN_H_ | 72 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_CHROME_USER_SELECTION_SCREEN_H_ |
OLD | NEW |