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

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

Issue 1058433002: [cros login, new GAIA] New UI for not authorized error (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 8 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 const std::string& error_text, 85 const std::string& error_text,
86 const std::string& help_link_text, 86 const std::string& help_link_text,
87 HelpAppLauncher::HelpTopic help_topic_id) = 0; 87 HelpAppLauncher::HelpTopic help_topic_id) = 0;
88 virtual void ShowErrorScreen(LoginDisplay::SigninError error_id) = 0; 88 virtual void ShowErrorScreen(LoginDisplay::SigninError error_id) = 0;
89 virtual void ShowGaiaPasswordChanged(const std::string& username) = 0; 89 virtual void ShowGaiaPasswordChanged(const std::string& username) = 0;
90 virtual void ShowSigninUI(const std::string& email) = 0; 90 virtual void ShowSigninUI(const std::string& email) = 0;
91 virtual void ShowPasswordChangedDialog(bool show_password_error) = 0; 91 virtual void ShowPasswordChangedDialog(bool show_password_error) = 0;
92 // Show sign-in screen for the given credentials. 92 // Show sign-in screen for the given credentials.
93 virtual void ShowSigninScreenForCreds(const std::string& username, 93 virtual void ShowSigninScreenForCreds(const std::string& username,
94 const std::string& password) = 0; 94 const std::string& password) = 0;
95 virtual void ShowWhitelistCheckFailedError() = 0;
95 virtual void LoadUsers(const base::ListValue& users_list, 96 virtual void LoadUsers(const base::ListValue& users_list,
96 bool show_guest) = 0; 97 bool show_guest) = 0;
97 protected: 98 protected:
98 virtual ~LoginDisplayWebUIHandler() {} 99 virtual ~LoginDisplayWebUIHandler() {}
99 }; 100 };
100 101
101 // An interface for SigninScreenHandler to call WebUILoginDisplay. 102 // An interface for SigninScreenHandler to call WebUILoginDisplay.
102 class SigninScreenHandlerDelegate { 103 class SigninScreenHandlerDelegate {
103 public: 104 public:
104 // --------------- Password change flow methods. 105 // --------------- Password change flow methods.
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 void ShowError(int login_attempts, 294 void ShowError(int login_attempts,
294 const std::string& error_text, 295 const std::string& error_text,
295 const std::string& help_link_text, 296 const std::string& help_link_text,
296 HelpAppLauncher::HelpTopic help_topic_id) override; 297 HelpAppLauncher::HelpTopic help_topic_id) override;
297 void ShowGaiaPasswordChanged(const std::string& username) override; 298 void ShowGaiaPasswordChanged(const std::string& username) override;
298 void ShowSigninUI(const std::string& email) override; 299 void ShowSigninUI(const std::string& email) override;
299 void ShowPasswordChangedDialog(bool show_password_error) override; 300 void ShowPasswordChangedDialog(bool show_password_error) override;
300 void ShowErrorScreen(LoginDisplay::SigninError error_id) override; 301 void ShowErrorScreen(LoginDisplay::SigninError error_id) override;
301 void ShowSigninScreenForCreds(const std::string& username, 302 void ShowSigninScreenForCreds(const std::string& username,
302 const std::string& password) override; 303 const std::string& password) override;
304 void ShowWhitelistCheckFailedError() override;
303 void LoadUsers(const base::ListValue& users_list, bool show_guest) override; 305 void LoadUsers(const base::ListValue& users_list, bool show_guest) override;
304 306
305 // content::NotificationObserver implementation: 307 // content::NotificationObserver implementation:
306 void Observe(int type, 308 void Observe(int type,
307 const content::NotificationSource& source, 309 const content::NotificationSource& source,
308 const content::NotificationDetails& details) override; 310 const content::NotificationDetails& details) override;
309 311
310 // TouchViewControllerDelegate::Observer implementation: 312 // TouchViewControllerDelegate::Observer implementation:
311 void OnMaximizeModeStarted() override; 313 void OnMaximizeModeStarted() override;
312 void OnMaximizeModeEnded() override; 314 void OnMaximizeModeEnded() override;
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 scoped_ptr<ErrorScreensHistogramHelper> histogram_helper_; 492 scoped_ptr<ErrorScreensHistogramHelper> histogram_helper_;
491 493
492 base::WeakPtrFactory<SigninScreenHandler> weak_factory_; 494 base::WeakPtrFactory<SigninScreenHandler> weak_factory_;
493 495
494 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); 496 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler);
495 }; 497 };
496 498
497 } // namespace chromeos 499 } // namespace chromeos
498 500
499 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ 501 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698