OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_UI_WEBUI_LOGIN_DISPLAY_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UI_WEBUI_LOGIN_DISPLAY_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_WEBUI_LOGIN_DISPLAY_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_WEBUI_LOGIN_DISPLAY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 virtual void ShowSigninScreenForCreds(const std::string& username, | 77 virtual void ShowSigninScreenForCreds(const std::string& username, |
78 const std::string& password); | 78 const std::string& password); |
79 virtual const user_manager::UserList& GetUsers() const OVERRIDE; | 79 virtual const user_manager::UserList& GetUsers() const OVERRIDE; |
80 virtual bool IsShowGuest() const OVERRIDE; | 80 virtual bool IsShowGuest() const OVERRIDE; |
81 virtual bool IsShowUsers() const OVERRIDE; | 81 virtual bool IsShowUsers() const OVERRIDE; |
82 virtual bool IsUserSigninCompleted() const OVERRIDE; | 82 virtual bool IsUserSigninCompleted() const OVERRIDE; |
83 virtual void SetDisplayEmail(const std::string& email) OVERRIDE; | 83 virtual void SetDisplayEmail(const std::string& email) OVERRIDE; |
84 virtual void HandleGetUsers() OVERRIDE; | 84 virtual void HandleGetUsers() OVERRIDE; |
85 virtual void SetAuthType( | 85 virtual void SetAuthType( |
86 const std::string& username, | 86 const std::string& username, |
87 ScreenlockBridge::LockHandler::AuthType auth_type) OVERRIDE; | 87 SigninScreenBridge::LockHandler::AuthType auth_type) OVERRIDE; |
88 virtual ScreenlockBridge::LockHandler::AuthType GetAuthType( | 88 virtual SigninScreenBridge::LockHandler::AuthType GetAuthType( |
89 const std::string& username) const OVERRIDE; | 89 const std::string& username) const OVERRIDE; |
90 | 90 |
91 // wm::UserActivityDetector implementation: | 91 // wm::UserActivityDetector implementation: |
92 virtual void OnUserActivity(const ui::Event* event) OVERRIDE; | 92 virtual void OnUserActivity(const ui::Event* event) OVERRIDE; |
93 | 93 |
94 private: | 94 private: |
95 | |
96 // Whether to show guest login. | 95 // Whether to show guest login. |
97 bool show_guest_; | 96 bool show_guest_; |
98 | 97 |
99 // Weather to show the user pods or a GAIA sign in. | 98 // Weather to show the user pods or a GAIA sign in. |
100 // Public sessions are always shown. | 99 // Public sessions are always shown. |
101 bool show_users_; | 100 bool show_users_; |
102 | 101 |
103 // Whether to show add new user. | 102 // Whether to show add new user. |
104 bool show_new_user_; | 103 bool show_new_user_; |
105 | 104 |
106 // Reference to the WebUI handling layer for the login screen | 105 // Reference to the WebUI handling layer for the login screen |
107 LoginDisplayWebUIHandler* webui_handler_; | 106 LoginDisplayWebUIHandler* webui_handler_; |
108 | 107 |
109 scoped_ptr<GaiaScreen> gaia_screen_; | 108 scoped_ptr<GaiaScreen> gaia_screen_; |
110 scoped_ptr<UserSelectionScreen> user_selection_screen_; | 109 scoped_ptr<UserSelectionScreen> user_selection_screen_; |
111 | 110 |
112 DISALLOW_COPY_AND_ASSIGN(WebUILoginDisplay); | 111 DISALLOW_COPY_AND_ASSIGN(WebUILoginDisplay); |
113 }; | 112 }; |
114 | 113 |
115 } // namespace chromeos | 114 } // namespace chromeos |
116 | 115 |
117 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_WEBUI_LOGIN_DISPLAY_H_ | 116 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_WEBUI_LOGIN_DISPLAY_H_ |
OLD | NEW |