Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: chrome/browser/chromeos/login/user_controller.h

Issue 2136018: Fix for flickering of images on login screen.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/user_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/user_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698