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

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

Issue 369893005: Implement new design for expanded public session pod design (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed ScreenLockerTest. Rebased. 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 (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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 const std::string& help_link_text, 84 const std::string& help_link_text,
85 HelpAppLauncher::HelpTopic help_topic_id) = 0; 85 HelpAppLauncher::HelpTopic help_topic_id) = 0;
86 virtual void ShowErrorScreen(LoginDisplay::SigninError error_id) = 0; 86 virtual void ShowErrorScreen(LoginDisplay::SigninError error_id) = 0;
87 virtual void ShowGaiaPasswordChanged(const std::string& username) = 0; 87 virtual void ShowGaiaPasswordChanged(const std::string& username) = 0;
88 virtual void ShowSigninUI(const std::string& email) = 0; 88 virtual void ShowSigninUI(const std::string& email) = 0;
89 virtual void ShowPasswordChangedDialog(bool show_password_error) = 0; 89 virtual void ShowPasswordChangedDialog(bool show_password_error) = 0;
90 // Show sign-in screen for the given credentials. 90 // Show sign-in screen for the given credentials.
91 virtual void ShowSigninScreenForCreds(const std::string& username, 91 virtual void ShowSigninScreenForCreds(const std::string& username,
92 const std::string& password) = 0; 92 const std::string& password) = 0;
93 virtual void LoadUsers(const base::ListValue& users_list, 93 virtual void LoadUsers(const base::ListValue& users_list,
94 bool animated,
95 bool show_guest) = 0; 94 bool show_guest) = 0;
96 95
97 protected: 96 protected:
98 virtual ~LoginDisplayWebUIHandler() {} 97 virtual ~LoginDisplayWebUIHandler() {}
99 }; 98 };
100 99
101 // An interface for SigninScreenHandler to call WebUILoginDisplay. 100 // An interface for SigninScreenHandler to call WebUILoginDisplay.
102 class SigninScreenHandlerDelegate { 101 class SigninScreenHandlerDelegate {
103 public: 102 public:
104 // --------------- Password change flow methods. 103 // --------------- Password change flow methods.
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 const std::string& error_text, 283 const std::string& error_text,
285 const std::string& help_link_text, 284 const std::string& help_link_text,
286 HelpAppLauncher::HelpTopic help_topic_id) OVERRIDE; 285 HelpAppLauncher::HelpTopic help_topic_id) OVERRIDE;
287 virtual void ShowGaiaPasswordChanged(const std::string& username) OVERRIDE; 286 virtual void ShowGaiaPasswordChanged(const std::string& username) OVERRIDE;
288 virtual void ShowSigninUI(const std::string& email) OVERRIDE; 287 virtual void ShowSigninUI(const std::string& email) OVERRIDE;
289 virtual void ShowPasswordChangedDialog(bool show_password_error) OVERRIDE; 288 virtual void ShowPasswordChangedDialog(bool show_password_error) OVERRIDE;
290 virtual void ShowErrorScreen(LoginDisplay::SigninError error_id) OVERRIDE; 289 virtual void ShowErrorScreen(LoginDisplay::SigninError error_id) OVERRIDE;
291 virtual void ShowSigninScreenForCreds(const std::string& username, 290 virtual void ShowSigninScreenForCreds(const std::string& username,
292 const std::string& password) OVERRIDE; 291 const std::string& password) OVERRIDE;
293 virtual void LoadUsers(const base::ListValue& users_list, 292 virtual void LoadUsers(const base::ListValue& users_list,
294 bool animated,
295 bool show_guest) OVERRIDE; 293 bool show_guest) OVERRIDE;
296 294
297 // content::NotificationObserver implementation: 295 // content::NotificationObserver implementation:
298 virtual void Observe(int type, 296 virtual void Observe(int type,
299 const content::NotificationSource& source, 297 const content::NotificationSource& source,
300 const content::NotificationDetails& details) OVERRIDE; 298 const content::NotificationDetails& details) OVERRIDE;
301 299
302 // ScreenlockBridge::LockHandler implementation: 300 // ScreenlockBridge::LockHandler implementation:
303 virtual void ShowBannerMessage(const std::string& message) OVERRIDE; 301 virtual void ShowBannerMessage(const std::string& message) OVERRIDE;
304 virtual void ShowUserPodCustomIcon(const std::string& username, 302 virtual void ShowUserPodCustomIcon(const std::string& username,
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 scoped_ptr<AuthenticatedUserEmailRetriever> email_retriever_; 462 scoped_ptr<AuthenticatedUserEmailRetriever> email_retriever_;
465 463
466 base::WeakPtrFactory<SigninScreenHandler> weak_factory_; 464 base::WeakPtrFactory<SigninScreenHandler> weak_factory_;
467 465
468 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); 466 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler);
469 }; 467 };
470 468
471 } // namespace chromeos 469 } // namespace chromeos
472 470
473 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ 471 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698