| 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_UI_LOGIN_DISPLAY_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
| 13 #include "chrome/browser/chromeos/login/help_app_launcher.h" | 13 #include "chrome/browser/chromeos/login/help_app_launcher.h" |
| 14 #include "chrome/browser/chromeos/login/signin_specifics.h" | 14 #include "chrome/browser/chromeos/login/signin_specifics.h" |
| 15 #include "chrome/browser/chromeos/login/users/remove_user_delegate.h" | 15 #include "components/user_manager/remove_user_delegate.h" |
| 16 #include "chrome/browser/chromeos/login/users/user_manager.h" | |
| 17 #include "components/user_manager/user.h" | 16 #include "components/user_manager/user.h" |
| 17 #include "components/user_manager/user_manager.h" |
| 18 #include "ui/gfx/image/image.h" | 18 #include "ui/gfx/image/image.h" |
| 19 #include "ui/gfx/native_widget_types.h" | 19 #include "ui/gfx/native_widget_types.h" |
| 20 #include "ui/gfx/rect.h" | 20 #include "ui/gfx/rect.h" |
| 21 | 21 |
| 22 namespace chromeos { | 22 namespace chromeos { |
| 23 | 23 |
| 24 class UserContext; | 24 class UserContext; |
| 25 | 25 |
| 26 // TODO(nkostylev): Extract interface, create a BaseLoginDisplay class. | 26 // TODO(nkostylev): Extract interface, create a BaseLoginDisplay class. |
| 27 // An abstract class that defines login UI implementation. | 27 // An abstract class that defines login UI implementation. |
| 28 class LoginDisplay : public RemoveUserDelegate { | 28 class LoginDisplay : public user_manager::RemoveUserDelegate { |
| 29 public: | 29 public: |
| 30 // Sign in error IDs that require detailed error screen and not just | 30 // Sign in error IDs that require detailed error screen and not just |
| 31 // a simple error bubble. | 31 // a simple error bubble. |
| 32 enum SigninError { | 32 enum SigninError { |
| 33 // Shown in case of critical TPM error. | 33 // Shown in case of critical TPM error. |
| 34 TPM_ERROR, | 34 TPM_ERROR, |
| 35 }; | 35 }; |
| 36 | 36 |
| 37 class Delegate { | 37 class Delegate { |
| 38 public: | 38 public: |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 // in redesigned login stack. | 171 // in redesigned login stack. |
| 172 // Login stack (and this object) will be recreated for next user sign in. | 172 // Login stack (and this object) will be recreated for next user sign in. |
| 173 bool is_signin_completed_; | 173 bool is_signin_completed_; |
| 174 | 174 |
| 175 DISALLOW_COPY_AND_ASSIGN(LoginDisplay); | 175 DISALLOW_COPY_AND_ASSIGN(LoginDisplay); |
| 176 }; | 176 }; |
| 177 | 177 |
| 178 } // namespace chromeos | 178 } // namespace chromeos |
| 179 | 179 |
| 180 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_H_ | 180 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_H_ |
| OLD | NEW |