OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_LOGIN_DISPLAY_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 virtual void OnStartEnterpriseEnrollment() = 0; | 62 virtual void OnStartEnterpriseEnrollment() = 0; |
63 | 63 |
64 protected: | 64 protected: |
65 virtual ~Delegate(); | 65 virtual ~Delegate(); |
66 }; | 66 }; |
67 | 67 |
68 // |background_bounds| determines the bounds of login UI background. | 68 // |background_bounds| determines the bounds of login UI background. |
69 LoginDisplay(Delegate* delegate, const gfx::Rect& background_bounds); | 69 LoginDisplay(Delegate* delegate, const gfx::Rect& background_bounds); |
70 virtual ~LoginDisplay(); | 70 virtual ~LoginDisplay(); |
71 | 71 |
72 // Call for destroying a pointer of type LoginDisplay, since some subclasses | |
73 // are Singletons | |
74 virtual void Destroy(); | |
75 | |
76 // Initializes login UI with the user pods based on list of known users and | 72 // Initializes login UI with the user pods based on list of known users and |
77 // guest, new user pods if those are enabled. | 73 // guest, new user pods if those are enabled. |
78 virtual void Init(const std::vector<UserManager::User>& users, | 74 virtual void Init(const std::vector<UserManager::User>& users, |
79 bool show_guest, | 75 bool show_guest, |
80 bool show_new_user) = 0; | 76 bool show_new_user) = 0; |
81 | 77 |
82 | 78 |
83 // Called when user image has been changed. | 79 // Called when user image has been changed. |
84 // |user| contains updated user. | 80 // |user| contains updated user. |
85 virtual void OnUserImageChanged(UserManager::User* user) = 0; | 81 virtual void OnUserImageChanged(UserManager::User* user) = 0; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 | 123 |
128 // Bounds of the login UI background. | 124 // Bounds of the login UI background. |
129 gfx::Rect background_bounds_; | 125 gfx::Rect background_bounds_; |
130 | 126 |
131 DISALLOW_COPY_AND_ASSIGN(LoginDisplay); | 127 DISALLOW_COPY_AND_ASSIGN(LoginDisplay); |
132 }; | 128 }; |
133 | 129 |
134 } // namespace chromeos | 130 } // namespace chromeos |
135 | 131 |
136 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_H_ | 132 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_H_ |
OLD | NEW |