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

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

Issue 427053002: Do not reload account picker when device-local account policy changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add missing includes, Created 6 years, 4 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 show_guest) = 0; 94 bool show_guest) = 0;
95 virtual void SetPublicSessionDisplayName(const std::string& user_id,
96 const std::string& display_name) = 0;
95 97
96 protected: 98 protected:
97 virtual ~LoginDisplayWebUIHandler() {} 99 virtual ~LoginDisplayWebUIHandler() {}
98 }; 100 };
99 101
100 // An interface for SigninScreenHandler to call WebUILoginDisplay. 102 // An interface for SigninScreenHandler to call WebUILoginDisplay.
101 class SigninScreenHandlerDelegate { 103 class SigninScreenHandlerDelegate {
102 public: 104 public:
103 // --------------- Password change flow methods. 105 // --------------- Password change flow methods.
104 // Cancels current password changed flow. 106 // Cancels current password changed flow.
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 const std::string& help_link_text, 286 const std::string& help_link_text,
285 HelpAppLauncher::HelpTopic help_topic_id) OVERRIDE; 287 HelpAppLauncher::HelpTopic help_topic_id) OVERRIDE;
286 virtual void ShowGaiaPasswordChanged(const std::string& username) OVERRIDE; 288 virtual void ShowGaiaPasswordChanged(const std::string& username) OVERRIDE;
287 virtual void ShowSigninUI(const std::string& email) OVERRIDE; 289 virtual void ShowSigninUI(const std::string& email) OVERRIDE;
288 virtual void ShowPasswordChangedDialog(bool show_password_error) OVERRIDE; 290 virtual void ShowPasswordChangedDialog(bool show_password_error) OVERRIDE;
289 virtual void ShowErrorScreen(LoginDisplay::SigninError error_id) OVERRIDE; 291 virtual void ShowErrorScreen(LoginDisplay::SigninError error_id) OVERRIDE;
290 virtual void ShowSigninScreenForCreds(const std::string& username, 292 virtual void ShowSigninScreenForCreds(const std::string& username,
291 const std::string& password) OVERRIDE; 293 const std::string& password) OVERRIDE;
292 virtual void LoadUsers(const base::ListValue& users_list, 294 virtual void LoadUsers(const base::ListValue& users_list,
293 bool show_guest) OVERRIDE; 295 bool show_guest) OVERRIDE;
296 virtual void SetPublicSessionDisplayName(
297 const std::string& user_id,
298 const std::string& display_name) OVERRIDE;
294 299
295 // content::NotificationObserver implementation: 300 // content::NotificationObserver implementation:
296 virtual void Observe(int type, 301 virtual void Observe(int type,
297 const content::NotificationSource& source, 302 const content::NotificationSource& source,
298 const content::NotificationDetails& details) OVERRIDE; 303 const content::NotificationDetails& details) OVERRIDE;
299 304
300 // ScreenlockBridge::LockHandler implementation: 305 // ScreenlockBridge::LockHandler implementation:
301 virtual void ShowBannerMessage(const std::string& message) OVERRIDE; 306 virtual void ShowBannerMessage(const std::string& message) OVERRIDE;
302 virtual void ShowUserPodCustomIcon(const std::string& username, 307 virtual void ShowUserPodCustomIcon(const std::string& username,
303 const gfx::Image& icon) OVERRIDE; 308 const gfx::Image& icon) OVERRIDE;
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 scoped_ptr<AuthenticatedUserEmailRetriever> email_retriever_; 476 scoped_ptr<AuthenticatedUserEmailRetriever> email_retriever_;
472 477
473 base::WeakPtrFactory<SigninScreenHandler> weak_factory_; 478 base::WeakPtrFactory<SigninScreenHandler> weak_factory_;
474 479
475 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); 480 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler);
476 }; 481 };
477 482
478 } // namespace chromeos 483 } // namespace chromeos
479 484
480 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ 485 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698