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

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

Issue 13542003: Add browser test for new user CrOS login flow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 7 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 | Annotate | Revision Log
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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 const std::string& error_text, 55 const std::string& error_text,
56 const std::string& help_link_text, 56 const std::string& help_link_text,
57 HelpAppLauncher::HelpTopic help_topic_id) = 0; 57 HelpAppLauncher::HelpTopic help_topic_id) = 0;
58 virtual void ShowErrorScreen(LoginDisplay::SigninError error_id) = 0; 58 virtual void ShowErrorScreen(LoginDisplay::SigninError error_id) = 0;
59 virtual void ShowGaiaPasswordChanged(const std::string& username) = 0; 59 virtual void ShowGaiaPasswordChanged(const std::string& username) = 0;
60 virtual void ShowSigninUI(const std::string& email) = 0; 60 virtual void ShowSigninUI(const std::string& email) = 0;
61 virtual void ShowPasswordChangedDialog(bool show_password_error) = 0; 61 virtual void ShowPasswordChangedDialog(bool show_password_error) = 0;
62 // Show sign-in screen for the given credentials. 62 // Show sign-in screen for the given credentials.
63 virtual void ShowSigninScreenForCreds(const std::string& username, 63 virtual void ShowSigninScreenForCreds(const std::string& username,
64 const std::string& password) = 0; 64 const std::string& password) = 0;
65 virtual void SetGaiaOriginForTesting(const std::string& arg) = 0;
65 protected: 66 protected:
66 virtual ~LoginDisplayWebUIHandler() {} 67 virtual ~LoginDisplayWebUIHandler() {}
67 }; 68 };
68 69
69 // An interface for SigninScreenHandler to call WebUILoginDisplay. 70 // An interface for SigninScreenHandler to call WebUILoginDisplay.
70 class SigninScreenHandlerDelegate { 71 class SigninScreenHandlerDelegate {
71 public: 72 public:
72 // Cancels current password changed flow. 73 // Cancels current password changed flow.
73 virtual void CancelPasswordChangedFlow() = 0; 74 virtual void CancelPasswordChangedFlow() = 0;
74 75
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 virtual void ShowError(int login_attempts, 242 virtual void ShowError(int login_attempts,
242 const std::string& error_text, 243 const std::string& error_text,
243 const std::string& help_link_text, 244 const std::string& help_link_text,
244 HelpAppLauncher::HelpTopic help_topic_id) OVERRIDE; 245 HelpAppLauncher::HelpTopic help_topic_id) OVERRIDE;
245 virtual void ShowGaiaPasswordChanged(const std::string& username) OVERRIDE; 246 virtual void ShowGaiaPasswordChanged(const std::string& username) OVERRIDE;
246 virtual void ShowSigninUI(const std::string& email) OVERRIDE; 247 virtual void ShowSigninUI(const std::string& email) OVERRIDE;
247 virtual void ShowPasswordChangedDialog(bool show_password_error) OVERRIDE; 248 virtual void ShowPasswordChangedDialog(bool show_password_error) OVERRIDE;
248 virtual void ShowErrorScreen(LoginDisplay::SigninError error_id) OVERRIDE; 249 virtual void ShowErrorScreen(LoginDisplay::SigninError error_id) OVERRIDE;
249 virtual void ShowSigninScreenForCreds(const std::string& username, 250 virtual void ShowSigninScreenForCreds(const std::string& username,
250 const std::string& password) OVERRIDE; 251 const std::string& password) OVERRIDE;
252 virtual void SetGaiaOriginForTesting(const std::string& arg) OVERRIDE;
251 253
252 // BrowsingDataRemover::Observer overrides. 254 // BrowsingDataRemover::Observer overrides.
253 virtual void OnBrowsingDataRemoverDone() OVERRIDE; 255 virtual void OnBrowsingDataRemoverDone() OVERRIDE;
254 256
255 // SystemKeyEventListener::CapsLockObserver overrides. 257 // SystemKeyEventListener::CapsLockObserver overrides.
256 virtual void OnCapsLockChange(bool enabled) OVERRIDE; 258 virtual void OnCapsLockChange(bool enabled) OVERRIDE;
257 259
258 // content::NotificationObserver implementation: 260 // content::NotificationObserver implementation:
259 virtual void Observe(int type, 261 virtual void Observe(int type,
260 const content::NotificationSource& source, 262 const content::NotificationSource& source,
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 base::CancelableClosure update_state_closure_; 429 base::CancelableClosure update_state_closure_;
428 base::CancelableClosure connecting_closure_; 430 base::CancelableClosure connecting_closure_;
429 431
430 content::NotificationRegistrar registrar_; 432 content::NotificationRegistrar registrar_;
431 433
432 // Whether there is an auth UI pending. This flag is set on receiving 434 // Whether there is an auth UI pending. This flag is set on receiving
433 // NOTIFICATION_AUTH_NEEDED and reset on either NOTIFICATION_AUTH_SUPPLIED or 435 // NOTIFICATION_AUTH_NEEDED and reset on either NOTIFICATION_AUTH_SUPPLIED or
434 // NOTIFICATION_AUTH_CANCELLED. 436 // NOTIFICATION_AUTH_CANCELLED.
435 bool has_pending_auth_ui_; 437 bool has_pending_auth_ui_;
436 438
439 // Testing helper, specifies new value for gaia url.
440 std::string gaia_origin_for_test_;
441
437 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); 442 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler);
438 }; 443 };
439 444
440 } // namespace chromeos 445 } // namespace chromeos
441 446
442 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ 447 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/resources/gaia_auth/test/content.js ('k') | chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698