| 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/users/remove_user_delegate.h" | 14 #include "chrome/browser/chromeos/login/users/remove_user_delegate.h" |
| 15 #include "chrome/browser/chromeos/login/users/user.h" | 15 #include "chrome/browser/chromeos/login/users/user.h" |
| 16 #include "chrome/browser/chromeos/login/users/user_manager.h" | 16 #include "chrome/browser/chromeos/login/users/user_manager.h" |
| 17 #include "ui/gfx/image/image.h" | 17 #include "ui/gfx/image/image.h" |
| 18 #include "ui/gfx/native_widget_types.h" | 18 #include "ui/gfx/native_widget_types.h" |
| 19 #include "ui/gfx/rect.h" | 19 #include "ui/gfx/rect.h" |
| 20 | 20 |
| 21 namespace chromeos { | 21 namespace chromeos { |
| 22 | 22 |
| 23 class UserContext; |
| 24 |
| 23 // TODO(nkostylev): Extract interface, create a BaseLoginDisplay class. | 25 // TODO(nkostylev): Extract interface, create a BaseLoginDisplay class. |
| 24 // An abstract class that defines login UI implementation. | 26 // An abstract class that defines login UI implementation. |
| 25 class LoginDisplay : public RemoveUserDelegate { | 27 class LoginDisplay : public RemoveUserDelegate { |
| 26 public: | 28 public: |
| 27 // Supported authentication types for login. | 29 // Supported authentication types for login. |
| 28 enum AuthType { | 30 enum AuthType { |
| 29 // Authenticates using the user's regular password. | 31 // Authenticates using the user's regular password. |
| 30 OFFLINE_PASSWORD, | 32 OFFLINE_PASSWORD, |
| 31 | 33 |
| 32 // Authenticates by forced online GAIA sign in. | 34 // Authenticates by forced online GAIA sign in. |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 // in redesigned login stack. | 233 // in redesigned login stack. |
| 232 // Login stack (and this object) will be recreated for next user sign in. | 234 // Login stack (and this object) will be recreated for next user sign in. |
| 233 bool is_signin_completed_; | 235 bool is_signin_completed_; |
| 234 | 236 |
| 235 DISALLOW_COPY_AND_ASSIGN(LoginDisplay); | 237 DISALLOW_COPY_AND_ASSIGN(LoginDisplay); |
| 236 }; | 238 }; |
| 237 | 239 |
| 238 } // namespace chromeos | 240 } // namespace chromeos |
| 239 | 241 |
| 240 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_H_ | 242 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_H_ |
| OLD | NEW |