Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(399)

Side by Side Diff: chrome/browser/chromeos/login/ui/webui_login_display.h

Issue 398753004: [cros] Move User class to user_manager component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_WEBUI_LOGIN_DISPLAY_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UI_WEBUI_LOGIN_DISPLAY_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_WEBUI_LOGIN_DISPLAY_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_WEBUI_LOGIN_DISPLAY_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "chrome/browser/chromeos/login/screens/gaia_screen.h" 12 #include "chrome/browser/chromeos/login/screens/gaia_screen.h"
13 #include "chrome/browser/chromeos/login/screens/user_selection_screen.h" 13 #include "chrome/browser/chromeos/login/screens/user_selection_screen.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/ui/login_display.h" 15 #include "chrome/browser/chromeos/login/ui/login_display.h"
16 #include "chrome/browser/chromeos/login/users/user.h"
17 #include "chrome/browser/ui/webui/chromeos/login/native_window_delegate.h" 16 #include "chrome/browser/ui/webui/chromeos/login/native_window_delegate.h"
18 #include "chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h" 17 #include "chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h"
18 #include "components/user_manager/user.h"
19 #include "ui/views/widget/widget.h" 19 #include "ui/views/widget/widget.h"
20 #include "ui/wm/core/user_activity_observer.h" 20 #include "ui/wm/core/user_activity_observer.h"
21 21
22 namespace chromeos { 22 namespace chromeos {
23 // WebUI-based login UI implementation. 23 // WebUI-based login UI implementation.
24 class WebUILoginDisplay : public LoginDisplay, 24 class WebUILoginDisplay : public LoginDisplay,
25 public NativeWindowDelegate, 25 public NativeWindowDelegate,
26 public SigninScreenHandlerDelegate, 26 public SigninScreenHandlerDelegate,
27 public wm::UserActivityObserver { 27 public wm::UserActivityObserver {
28 public: 28 public:
29 explicit WebUILoginDisplay(LoginDisplay::Delegate* delegate); 29 explicit WebUILoginDisplay(LoginDisplay::Delegate* delegate);
30 virtual ~WebUILoginDisplay(); 30 virtual ~WebUILoginDisplay();
31 31
32 // LoginDisplay implementation: 32 // LoginDisplay implementation:
33 virtual void ClearAndEnablePassword() OVERRIDE; 33 virtual void ClearAndEnablePassword() OVERRIDE;
34 virtual void Init(const UserList& users, 34 virtual void Init(const user_manager::UserList& users,
35 bool show_guest, 35 bool show_guest,
36 bool show_users, 36 bool show_users,
37 bool show_new_user) OVERRIDE; 37 bool show_new_user) OVERRIDE;
38 virtual void OnPreferencesChanged() OVERRIDE; 38 virtual void OnPreferencesChanged() OVERRIDE;
39 virtual void OnBeforeUserRemoved(const std::string& username) OVERRIDE; 39 virtual void OnBeforeUserRemoved(const std::string& username) OVERRIDE;
40 virtual void OnUserImageChanged(const User& user) OVERRIDE; 40 virtual void OnUserImageChanged(const user_manager::User& user) OVERRIDE;
41 virtual void OnUserRemoved(const std::string& username) OVERRIDE; 41 virtual void OnUserRemoved(const std::string& username) OVERRIDE;
42 virtual void SetUIEnabled(bool is_enabled) OVERRIDE; 42 virtual void SetUIEnabled(bool is_enabled) OVERRIDE;
43 virtual void ShowError(int error_msg_id, 43 virtual void ShowError(int error_msg_id,
44 int login_attempts, 44 int login_attempts,
45 HelpAppLauncher::HelpTopic help_topic_id) OVERRIDE; 45 HelpAppLauncher::HelpTopic help_topic_id) OVERRIDE;
46 virtual void ShowErrorScreen(LoginDisplay::SigninError error_id) OVERRIDE; 46 virtual void ShowErrorScreen(LoginDisplay::SigninError error_id) OVERRIDE;
47 virtual void ShowGaiaPasswordChanged(const std::string& username) OVERRIDE; 47 virtual void ShowGaiaPasswordChanged(const std::string& username) OVERRIDE;
48 virtual void ShowPasswordChangedDialog(bool show_password_error) OVERRIDE; 48 virtual void ShowPasswordChangedDialog(bool show_password_error) OVERRIDE;
49 virtual void ShowSigninUI(const std::string& email) OVERRIDE; 49 virtual void ShowSigninUI(const std::string& email) OVERRIDE;
50 50
(...skipping 18 matching lines...) Expand all
69 virtual void LoadSigninWallpaper() OVERRIDE; 69 virtual void LoadSigninWallpaper() OVERRIDE;
70 virtual void RemoveUser(const std::string& username) OVERRIDE; 70 virtual void RemoveUser(const std::string& username) OVERRIDE;
71 virtual void ShowEnterpriseEnrollmentScreen() OVERRIDE; 71 virtual void ShowEnterpriseEnrollmentScreen() OVERRIDE;
72 virtual void ShowKioskEnableScreen() OVERRIDE; 72 virtual void ShowKioskEnableScreen() OVERRIDE;
73 virtual void ShowKioskAutolaunchScreen() OVERRIDE; 73 virtual void ShowKioskAutolaunchScreen() OVERRIDE;
74 virtual void ShowWrongHWIDScreen() OVERRIDE; 74 virtual void ShowWrongHWIDScreen() OVERRIDE;
75 virtual void SetWebUIHandler( 75 virtual void SetWebUIHandler(
76 LoginDisplayWebUIHandler* webui_handler) OVERRIDE; 76 LoginDisplayWebUIHandler* webui_handler) OVERRIDE;
77 virtual void ShowSigninScreenForCreds(const std::string& username, 77 virtual void ShowSigninScreenForCreds(const std::string& username,
78 const std::string& password); 78 const std::string& password);
79 virtual const UserList& GetUsers() const OVERRIDE; 79 virtual const user_manager::UserList& GetUsers() const OVERRIDE;
80 virtual bool IsShowGuest() const OVERRIDE; 80 virtual bool IsShowGuest() const OVERRIDE;
81 virtual bool IsShowUsers() const OVERRIDE; 81 virtual bool IsShowUsers() const OVERRIDE;
82 virtual bool IsUserSigninCompleted() const OVERRIDE; 82 virtual bool IsUserSigninCompleted() const OVERRIDE;
83 virtual void SetDisplayEmail(const std::string& email) OVERRIDE; 83 virtual void SetDisplayEmail(const std::string& email) OVERRIDE;
84 virtual void HandleGetUsers() OVERRIDE; 84 virtual void HandleGetUsers() OVERRIDE;
85 virtual void SetAuthType( 85 virtual void SetAuthType(
86 const std::string& username, 86 const std::string& username,
87 ScreenlockBridge::LockHandler::AuthType auth_type) OVERRIDE; 87 ScreenlockBridge::LockHandler::AuthType auth_type) OVERRIDE;
88 virtual ScreenlockBridge::LockHandler::AuthType GetAuthType( 88 virtual ScreenlockBridge::LockHandler::AuthType GetAuthType(
89 const std::string& username) const OVERRIDE; 89 const std::string& username) const OVERRIDE;
(...skipping 18 matching lines...) Expand all
108 108
109 scoped_ptr<GaiaScreen> gaia_screen_; 109 scoped_ptr<GaiaScreen> gaia_screen_;
110 scoped_ptr<UserSelectionScreen> user_selection_screen_; 110 scoped_ptr<UserSelectionScreen> user_selection_screen_;
111 111
112 DISALLOW_COPY_AND_ASSIGN(WebUILoginDisplay); 112 DISALLOW_COPY_AND_ASSIGN(WebUILoginDisplay);
113 }; 113 };
114 114
115 } // namespace chromeos 115 } // namespace chromeos
116 116
117 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_WEBUI_LOGIN_DISPLAY_H_ 117 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_WEBUI_LOGIN_DISPLAY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698