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: bring back changes 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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 void ShowError(int login_attempts, 291 void ShowError(int login_attempts,
291 const std::string& error_text, 292 const std::string& error_text,
292 const std::string& help_link_text, 293 const std::string& help_link_text,
293 HelpAppLauncher::HelpTopic help_topic_id) override; 294 HelpAppLauncher::HelpTopic help_topic_id) override;
294 void ShowGaiaPasswordChanged(const std::string& username) override; 295 void ShowGaiaPasswordChanged(const std::string& username) override;
295 void ShowSigninUI(const std::string& email) override; 296 void ShowSigninUI(const std::string& email) override;
296 void ShowPasswordChangedDialog(bool show_password_error) override; 297 void ShowPasswordChangedDialog(bool show_password_error) override;
297 void ShowErrorScreen(LoginDisplay::SigninError error_id) override; 298 void ShowErrorScreen(LoginDisplay::SigninError error_id) override;
298 void ShowSigninScreenForCreds(const std::string& username, 299 void ShowSigninScreenForCreds(const std::string& username,
299 const std::string& password) override; 300 const std::string& password) override;
301 void ShowWhitelistCheckFailedError() override;
300 void LoadUsers(const base::ListValue& users_list, bool show_guest) override; 302 void LoadUsers(const base::ListValue& users_list, bool show_guest) override;
301 303
302 // content::NotificationObserver implementation: 304 // content::NotificationObserver implementation:
303 void Observe(int type, 305 void Observe(int type,
304 const content::NotificationSource& source, 306 const content::NotificationSource& source,
305 const content::NotificationDetails& details) override; 307 const content::NotificationDetails& details) override;
306 308
307 // TouchViewControllerDelegate::Observer implementation: 309 // TouchViewControllerDelegate::Observer implementation:
308 void OnMaximizeModeStarted() override; 310 void OnMaximizeModeStarted() override;
309 void OnMaximizeModeEnded() override; 311 void OnMaximizeModeEnded() override;
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 scoped_ptr<ErrorScreensHistogramHelper> histogram_helper_; 489 scoped_ptr<ErrorScreensHistogramHelper> histogram_helper_;
488 490
489 base::WeakPtrFactory<SigninScreenHandler> weak_factory_; 491 base::WeakPtrFactory<SigninScreenHandler> weak_factory_;
490 492
491 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); 493 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler);
492 }; 494 };
493 495
494 } // namespace chromeos 496 } // namespace chromeos
495 497
496 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ 498 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698