OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 // Enables or disables tooltip with user's email. | 84 // Enables or disables tooltip with user's email. |
85 void EnableNameTooltip(bool enable); | 85 void EnableNameTooltip(bool enable); |
86 | 86 |
87 // Resets password text and sets the enabled state of the password. | 87 // Resets password text and sets the enabled state of the password. |
88 void ClearAndEnablePassword(); | 88 void ClearAndEnablePassword(); |
89 | 89 |
90 // Called when user view is activated (OnUserSelected). | 90 // Called when user view is activated (OnUserSelected). |
91 void ClearAndEnableFields(); | 91 void ClearAndEnableFields(); |
92 | 92 |
93 // Returns bounds of password field in screen coordinates. | 93 // Returns bounds of password field in screen coordinates. |
| 94 // For new user it returns username coordinates. |
94 gfx::Rect GetScreenBounds() const; | 95 gfx::Rect GetScreenBounds() const; |
95 | 96 |
96 // Get widget that contains all controls. | 97 // Get widget that contains all controls. |
97 views::WidgetGtk* controls_window() { | 98 views::WidgetGtk* controls_window() { |
98 return controls_window_; | 99 return controls_window_; |
99 } | 100 } |
100 | 101 |
101 // ButtonListener: | 102 // ButtonListener: |
102 virtual void ButtonPressed(views::Button* sender, const views::Event& event); | 103 virtual void ButtonPressed(views::Button* sender, const views::Event& event); |
103 | 104 |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 views::Label* unselected_label_view_; | 206 views::Label* unselected_label_view_; |
206 | 207 |
207 NotificationRegistrar registrar_; | 208 NotificationRegistrar registrar_; |
208 | 209 |
209 DISALLOW_COPY_AND_ASSIGN(UserController); | 210 DISALLOW_COPY_AND_ASSIGN(UserController); |
210 }; | 211 }; |
211 | 212 |
212 } // namespace chromeos | 213 } // namespace chromeos |
213 | 214 |
214 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_CONTROLLER_H_ | 215 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_CONTROLLER_H_ |
OLD | NEW |