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

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

Issue 623293003: replace OVERRIDE and FINAL with override and final in chrome/browser/chromeos/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: run git cl format on echo_dialog_view.h Created 6 years, 2 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
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
(...skipping 12 matching lines...) Expand all
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 user_manager::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_manager::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
51 // NativeWindowDelegate implementation: 51 // NativeWindowDelegate implementation:
52 virtual gfx::NativeWindow GetNativeWindow() const OVERRIDE; 52 virtual gfx::NativeWindow GetNativeWindow() const override;
53 53
54 // SigninScreenHandlerDelegate implementation: 54 // SigninScreenHandlerDelegate implementation:
55 virtual void CancelPasswordChangedFlow() OVERRIDE; 55 virtual void CancelPasswordChangedFlow() override;
56 virtual void ResyncUserData() OVERRIDE; 56 virtual void ResyncUserData() override;
57 virtual void MigrateUserData(const std::string& old_password) OVERRIDE; 57 virtual void MigrateUserData(const std::string& old_password) override;
58 58
59 virtual void Login(const UserContext& user_context, 59 virtual void Login(const UserContext& user_context,
60 const SigninSpecifics& specifics) OVERRIDE; 60 const SigninSpecifics& specifics) override;
61 virtual bool IsSigninInProgress() const OVERRIDE; 61 virtual bool IsSigninInProgress() const override;
62 virtual void Signout() OVERRIDE; 62 virtual void Signout() override;
63 virtual void CreateAccount() OVERRIDE; 63 virtual void CreateAccount() override;
64 virtual void CompleteLogin(const UserContext& user_context) OVERRIDE; 64 virtual void CompleteLogin(const UserContext& user_context) override;
65 65
66 virtual void OnSigninScreenReady() OVERRIDE; 66 virtual void OnSigninScreenReady() override;
67 virtual void CancelUserAdding() OVERRIDE; 67 virtual void CancelUserAdding() override;
68 virtual void LoadWallpaper(const std::string& username) OVERRIDE; 68 virtual void LoadWallpaper(const std::string& username) override;
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 user_manager::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;
90 90
91 // wm::UserActivityDetector implementation: 91 // wm::UserActivityDetector implementation:
92 virtual void OnUserActivity(const ui::Event* event) OVERRIDE; 92 virtual void OnUserActivity(const ui::Event* event) override;
93 93
94 private: 94 private:
95 95
96 // Whether to show guest login. 96 // Whether to show guest login.
97 bool show_guest_; 97 bool show_guest_;
98 98
99 // Weather to show the user pods or a GAIA sign in. 99 // Weather to show the user pods or a GAIA sign in.
100 // Public sessions are always shown. 100 // Public sessions are always shown.
101 bool show_users_; 101 bool show_users_;
102 102
103 // Whether to show add new user. 103 // Whether to show add new user.
104 bool show_new_user_; 104 bool show_new_user_;
105 105
106 // Reference to the WebUI handling layer for the login screen 106 // Reference to the WebUI handling layer for the login screen
107 LoginDisplayWebUIHandler* webui_handler_; 107 LoginDisplayWebUIHandler* webui_handler_;
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