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

Side by Side Diff: chrome/browser/chromeos/login/webui_login_display.h

Issue 7461142: [ChromeOS] Assorted WebUI login fixes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comment in #1 Created 9 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/webui_login_display.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_CHROMEOS_LOGIN_WEBUI_LOGIN_DISPLAY_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_DISPLAY_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_DISPLAY_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_DISPLAY_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 virtual void ShowError(int error_msg_id, 68 virtual void ShowError(int error_msg_id,
69 int login_attempts, 69 int login_attempts,
70 HelpAppLauncher::HelpTopic help_topic_id) OVERRIDE; 70 HelpAppLauncher::HelpTopic help_topic_id) OVERRIDE;
71 71
72 // SigninScreenHandlerDelegate implementation: 72 // SigninScreenHandlerDelegate implementation:
73 virtual void CompleteLogin(const std::string& username, 73 virtual void CompleteLogin(const std::string& username,
74 const std::string& password) OVERRIDE; 74 const std::string& password) OVERRIDE;
75 virtual void Login(const std::string& username, 75 virtual void Login(const std::string& username,
76 const std::string& password) OVERRIDE; 76 const std::string& password) OVERRIDE;
77 virtual void LoginAsGuest() OVERRIDE; 77 virtual void LoginAsGuest() OVERRIDE;
78 virtual void RemoveUser(const std::string& username) OVERRIDE;
78 virtual void ShowEnterpriseEnrollmentScreen() OVERRIDE; 79 virtual void ShowEnterpriseEnrollmentScreen() OVERRIDE;
79 virtual void SetWebUIHandler( 80 virtual void SetWebUIHandler(
80 LoginDisplayWebUIHandler* webui_handler) OVERRIDE; 81 LoginDisplayWebUIHandler* webui_handler) OVERRIDE;
81 82
82 void set_login_window(views::Widget* login_window) { 83 void set_login_window(views::Widget* login_window) {
83 login_window_ = login_window; 84 login_window_ = login_window;
84 } 85 }
85 86
87 const std::vector<UserManager::User>& users() const {
88 return users_;
89 }
90
91 bool show_guest() const {
92 return show_guest_;
93 }
94
95 bool show_new_user() const {
96 return show_new_user_;
97 }
98
86 private: 99 private:
87 // Singleton implementation: 100 // Singleton implementation:
88 friend struct DefaultSingletonTraits<WebUILoginDisplay>; 101 friend struct DefaultSingletonTraits<WebUILoginDisplay>;
89 WebUILoginDisplay(); 102 WebUILoginDisplay();
90 103
91 // Set of Users in the systemvisible UserControllers. 104 // Set of Users that are visible.
92 std::vector<UserManager::User> users_; 105 std::vector<UserManager::User> users_;
93 106
107 // Whether to show guest login.
108 bool show_guest_;
109
110 // Whether to show add new user.
111 bool show_new_user_;
112
94 // Container of the screen we are displaying 113 // Container of the screen we are displaying
95 views::Widget* login_window_; 114 views::Widget* login_window_;
96 115
97 // Reference to the WebUI handling layer for the login screen 116 // Reference to the WebUI handling layer for the login screen
98 LoginDisplayWebUIHandler* webui_handler_; 117 LoginDisplayWebUIHandler* webui_handler_;
99 118
100 DISALLOW_COPY_AND_ASSIGN(WebUILoginDisplay); 119 DISALLOW_COPY_AND_ASSIGN(WebUILoginDisplay);
101 }; 120 };
102 121
103 } // namespace chromeos 122 } // namespace chromeos
104 123
105 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_DISPLAY_H_ 124 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_DISPLAY_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/webui_login_display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698