OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_APP_LAUNCH_SIGNIN_SCREEN_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_APP_LAUNCH_SIGNIN_SCREEN_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_APP_LAUNCH_SIGNIN_SCREEN_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_APP_LAUNCH_SIGNIN_SCREEN_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "chrome/browser/chromeos/login/auth/authenticator.h" | 11 #include "chrome/browser/chromeos/login/auth/authenticator.h" |
12 #include "chrome/browser/chromeos/login/auth/login_status_consumer.h" | 12 #include "chrome/browser/chromeos/login/auth/login_status_consumer.h" |
13 #include "chrome/browser/chromeos/login/users/user.h" | 13 #include "chrome/browser/chromeos/login/users/user.h" |
14 #include "chrome/browser/chromeos/login/users/user_manager.h" | 14 #include "chrome/browser/chromeos/login/users/user_manager.h" |
| 15 #include "chrome/browser/signin/screenlock_bridge.h" |
15 #include "chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h" | 16 #include "chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h" |
16 | 17 |
17 namespace chromeos { | 18 namespace chromeos { |
18 | 19 |
19 class OobeUI; | 20 class OobeUI; |
20 | 21 |
21 // The app launch signin screen shows the user pod of the device owner | 22 // The app launch signin screen shows the user pod of the device owner |
22 // and requires the user to login in order to access the network dialog. | 23 // and requires the user to login in order to access the network dialog. |
23 // This screen is quite similar to the standard lock screen, but we do not | 24 // This screen is quite similar to the standard lock screen, but we do not |
24 // create a new view to superimpose over the desktop. | 25 // create a new view to superimpose over the desktop. |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 virtual void ShowKioskEnableScreen() OVERRIDE; | 69 virtual void ShowKioskEnableScreen() OVERRIDE; |
69 virtual void ShowKioskAutolaunchScreen() OVERRIDE; | 70 virtual void ShowKioskAutolaunchScreen() OVERRIDE; |
70 virtual void ShowWrongHWIDScreen() OVERRIDE; | 71 virtual void ShowWrongHWIDScreen() OVERRIDE; |
71 virtual void SetWebUIHandler( | 72 virtual void SetWebUIHandler( |
72 LoginDisplayWebUIHandler* webui_handler) OVERRIDE; | 73 LoginDisplayWebUIHandler* webui_handler) OVERRIDE; |
73 virtual void ShowSigninScreenForCreds(const std::string& username, | 74 virtual void ShowSigninScreenForCreds(const std::string& username, |
74 const std::string& password); | 75 const std::string& password); |
75 virtual const UserList& GetUsers() const OVERRIDE; | 76 virtual const UserList& GetUsers() const OVERRIDE; |
76 virtual bool IsShowGuest() const OVERRIDE; | 77 virtual bool IsShowGuest() const OVERRIDE; |
77 virtual bool IsShowUsers() const OVERRIDE; | 78 virtual bool IsShowUsers() const OVERRIDE; |
78 virtual bool IsShowNewUser() const OVERRIDE; | |
79 virtual bool IsSigninInProgress() const OVERRIDE; | 79 virtual bool IsSigninInProgress() const OVERRIDE; |
80 virtual bool IsUserSigninCompleted() const OVERRIDE; | 80 virtual bool IsUserSigninCompleted() const OVERRIDE; |
81 virtual void SetDisplayEmail(const std::string& email) OVERRIDE; | 81 virtual void SetDisplayEmail(const std::string& email) OVERRIDE; |
82 virtual void Signout() OVERRIDE; | 82 virtual void Signout() OVERRIDE; |
83 virtual void LoginAsKioskApp(const std::string& app_id, | 83 virtual void LoginAsKioskApp(const std::string& app_id, |
84 bool diagnostic_mode) OVERRIDE; | 84 bool diagnostic_mode) OVERRIDE; |
| 85 virtual void HandleGetUsers() OVERRIDE; |
| 86 virtual void SetAuthType( |
| 87 const std::string& username, |
| 88 ScreenlockBridge::LockHandler::AuthType auth_type) OVERRIDE; |
| 89 virtual ScreenlockBridge::LockHandler::AuthType GetAuthType( |
| 90 const std::string& username) const OVERRIDE; |
85 | 91 |
86 // LoginStatusConsumer implementation: | 92 // LoginStatusConsumer implementation: |
87 virtual void OnLoginFailure(const LoginFailure& error) OVERRIDE; | 93 virtual void OnLoginFailure(const LoginFailure& error) OVERRIDE; |
88 virtual void OnLoginSuccess(const UserContext& user_context) OVERRIDE; | 94 virtual void OnLoginSuccess(const UserContext& user_context) OVERRIDE; |
89 | 95 |
90 OobeUI* oobe_ui_; | 96 OobeUI* oobe_ui_; |
91 Delegate* delegate_; | 97 Delegate* delegate_; |
92 LoginDisplayWebUIHandler* webui_handler_; | 98 LoginDisplayWebUIHandler* webui_handler_; |
93 scoped_refptr<Authenticator> authenticator_; | 99 scoped_refptr<Authenticator> authenticator_; |
94 | 100 |
95 // This list should have at most one user, and that user should be the owner. | 101 // This list should have at most one user, and that user should be the owner. |
96 UserList owner_user_list_; | 102 UserList owner_user_list_; |
97 | 103 |
98 static UserManager* test_user_manager_; | 104 static UserManager* test_user_manager_; |
99 | 105 |
100 DISALLOW_COPY_AND_ASSIGN(AppLaunchSigninScreen); | 106 DISALLOW_COPY_AND_ASSIGN(AppLaunchSigninScreen); |
101 }; | 107 }; |
102 | 108 |
103 } // namespace chromeos | 109 } // namespace chromeos |
104 | 110 |
105 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_APP_LAUNCH_SIGNIN_SCREEN_H_ | 111 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_APP_LAUNCH_SIGNIN_SCREEN_H_ |
OLD | NEW |