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 | 7 |
8 #include "base/string16.h" | 8 #include "base/string16.h" |
9 #include "chrome/browser/chromeos/login/user_manager.h" | 9 #include "chrome/browser/chromeos/login/user_manager.h" |
10 #include "chrome/browser/chromeos/wm_ipc.h" | 10 #include "chrome/browser/chromeos/wm_ipc.h" |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 // Invoked when the user wants to login. Forwards the call to the delegate. | 89 // Invoked when the user wants to login. Forwards the call to the delegate. |
90 void Login(); | 90 void Login(); |
91 | 91 |
92 views::WidgetGtk* CreateControlsWindow(int index, int* height); | 92 views::WidgetGtk* CreateControlsWindow(int index, int* height); |
93 views::WidgetGtk* CreateImageWindow(int index); | 93 views::WidgetGtk* CreateImageWindow(int index); |
94 views::WidgetGtk* CreateBorderWindow(int index, | 94 views::WidgetGtk* CreateBorderWindow(int index, |
95 int total_user_count, | 95 int total_user_count, |
96 int controls_height); | 96 int controls_height); |
97 views::WidgetGtk* CreateLabelWindow(int index, WmIpcWindowType type); | 97 views::WidgetGtk* CreateLabelWindow(int index, WmIpcWindowType type); |
98 | 98 |
99 // Sets specified image with desired size on the image window. | 99 // Sets specified image on the image window. If image's size is less than |
100 // Does not repaint the window so SchedulePaint is to be called explicitly | 100 // 75% of window size, image size is preserved to avoid blur. Otherwise, |
101 // when needed. | 101 // the image is resized to fit window size precisely. Image view repaints |
102 void SetImage(const SkBitmap& image, int desired_width, int desired_height); | 102 // itself. |
| 103 void SetImage(const SkBitmap& image); |
103 | 104 |
104 // Sets the enabled state of the password field to |enable|. | 105 // Sets the enabled state of the password field to |enable|. |
105 void SetPasswordEnabled(bool enable); | 106 void SetPasswordEnabled(bool enable); |
106 | 107 |
107 // Is this the guest user? | 108 // Is this the guest user? |
108 const bool is_guest_; | 109 const bool is_guest_; |
109 | 110 |
110 // If is_guest_ is false, this is the user being shown. | 111 // If is_guest_ is false, this is the user being shown. |
111 UserManager::User user_; | 112 UserManager::User user_; |
112 | 113 |
(...skipping 16 matching lines...) Expand all Loading... |
129 views::ImageView* image_view_; | 130 views::ImageView* image_view_; |
130 | 131 |
131 NotificationRegistrar registrar_; | 132 NotificationRegistrar registrar_; |
132 | 133 |
133 DISALLOW_COPY_AND_ASSIGN(UserController); | 134 DISALLOW_COPY_AND_ASSIGN(UserController); |
134 }; | 135 }; |
135 | 136 |
136 } // namespace chromeos | 137 } // namespace chromeos |
137 | 138 |
138 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_CONTROLLER_H_ | 139 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_CONTROLLER_H_ |
OLD | NEW |