| 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_CHROMEOS_LOGIN_USER_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USER_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_CONTROLLER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_CONTROLLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 // Update border window parameters to notify window manager about new numbers. | 103 // Update border window parameters to notify window manager about new numbers. |
| 104 // |index| of this user and |total_user_count| of users. | 104 // |index| of this user and |total_user_count| of users. |
| 105 void UpdateUserCount(int index, int total_user_count); | 105 void UpdateUserCount(int index, int total_user_count); |
| 106 | 106 |
| 107 // Returns the label for the user which should be spoken when accessibility is | 107 // Returns the label for the user which should be spoken when accessibility is |
| 108 // enabled. | 108 // enabled. |
| 109 std::string GetAccessibleUserLabel(); | 109 std::string GetAccessibleUserLabel(); |
| 110 | 110 |
| 111 // views::WidgetDelegate implementation: | 111 // views::WidgetDelegate implementation: |
| 112 virtual void OnWidgetActivated(bool active) OVERRIDE; | 112 virtual void OnWidgetActivated(bool active) OVERRIDE; |
| 113 virtual views::Widget* GetWidget() OVERRIDE; |
| 114 virtual const views::Widget* GetWidget() const OVERRIDE; |
| 113 | 115 |
| 114 // NewUserView::Delegate implementation: | 116 // NewUserView::Delegate implementation: |
| 115 virtual void OnLogin(const std::string& username, | 117 virtual void OnLogin(const std::string& username, |
| 116 const std::string& password) OVERRIDE; | 118 const std::string& password) OVERRIDE; |
| 117 virtual void OnLoginAsGuest() OVERRIDE; | 119 virtual void OnLoginAsGuest() OVERRIDE; |
| 118 virtual void OnCreateAccount() OVERRIDE; | 120 virtual void OnCreateAccount() OVERRIDE; |
| 119 virtual void OnStartEnterpriseEnrollment() OVERRIDE; | 121 virtual void OnStartEnterpriseEnrollment() OVERRIDE; |
| 120 virtual void ClearErrors() OVERRIDE; | 122 virtual void ClearErrors() OVERRIDE; |
| 121 virtual void NavigateAway() OVERRIDE; | 123 virtual void NavigateAway() OVERRIDE; |
| 122 | 124 |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 | 219 |
| 218 // Whether name tooltip is enabled. | 220 // Whether name tooltip is enabled. |
| 219 bool name_tooltip_enabled_; | 221 bool name_tooltip_enabled_; |
| 220 | 222 |
| 221 DISALLOW_COPY_AND_ASSIGN(UserController); | 223 DISALLOW_COPY_AND_ASSIGN(UserController); |
| 222 }; | 224 }; |
| 223 | 225 |
| 224 } // namespace chromeos | 226 } // namespace chromeos |
| 225 | 227 |
| 226 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_CONTROLLER_H_ | 228 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_CONTROLLER_H_ |
| OLD | NEW |