| OLD | NEW |
| 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_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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 | 81 |
| 82 // Returns users list to be shown. | 82 // Returns users list to be shown. |
| 83 virtual const UserList& GetUsers() const = 0; | 83 virtual const UserList& GetUsers() const = 0; |
| 84 | 84 |
| 85 // Whether login as guest is available. | 85 // Whether login as guest is available. |
| 86 virtual bool IsShowGuest() const = 0; | 86 virtual bool IsShowGuest() const = 0; |
| 87 | 87 |
| 88 // Whether new user pod is available. | 88 // Whether new user pod is available. |
| 89 virtual bool IsShowNewUser() const = 0; | 89 virtual bool IsShowNewUser() const = 0; |
| 90 | 90 |
| 91 // Sets the displayed email for the next login attempt. If it succeeds, |
| 92 // user's displayed email value will be updated to |email|. |
| 93 virtual void SetDisplayEmail(const std::string& email) = 0; |
| 94 |
| 91 protected: | 95 protected: |
| 92 virtual ~SigninScreenHandlerDelegate() {} | 96 virtual ~SigninScreenHandlerDelegate() {} |
| 93 }; | 97 }; |
| 94 | 98 |
| 95 // A class that handles the WebUI hooks in sign-in screen in OobeDisplay | 99 // A class that handles the WebUI hooks in sign-in screen in OobeDisplay |
| 96 // and LoginDisplay. | 100 // and LoginDisplay. |
| 97 class SigninScreenHandler : public BaseScreenHandler, | 101 class SigninScreenHandler : public BaseScreenHandler, |
| 98 public LoginDisplayWebUIHandler, | 102 public LoginDisplayWebUIHandler, |
| 99 public BrowsingDataRemover::Observer, | 103 public BrowsingDataRemover::Observer, |
| 100 public SystemKeyEventListener::CapsLockObserver { | 104 public SystemKeyEventListener::CapsLockObserver { |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 | 258 |
| 255 // CapsLock state change notifier instance; | 259 // CapsLock state change notifier instance; |
| 256 SystemKeyEventListener* key_event_listener_; | 260 SystemKeyEventListener* key_event_listener_; |
| 257 | 261 |
| 258 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); | 262 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); |
| 259 }; | 263 }; |
| 260 | 264 |
| 261 } // namespace chromeos | 265 } // namespace chromeos |
| 262 | 266 |
| 263 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ | 267 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ |
| OLD | NEW |