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

Side by Side Diff: chrome/browser/chromeos/login/webui_login_display.cc

Issue 11190022: [cros] Update wallpaper when displaying Gaia frame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fixes Created 8 years, 2 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "chrome/browser/chromeos/login/webui_login_display.h" 5 #include "chrome/browser/chromeos/login/webui_login_display.h"
6 6
7 #include "chrome/browser/chromeos/accessibility/accessibility_util.h" 7 #include "chrome/browser/chromeos/accessibility/accessibility_util.h"
8 #include "chrome/browser/chromeos/input_method/input_method_manager.h" 8 #include "chrome/browser/chromeos/input_method/input_method_manager.h"
9 #include "chrome/browser/chromeos/input_method/xkeyboard.h" 9 #include "chrome/browser/chromeos/input_method/xkeyboard.h"
10 #include "chrome/browser/chromeos/login/wallpaper_manager.h" 10 #include "chrome/browser/chromeos/login/wallpaper_manager.h"
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 void WebUILoginDisplay::Signout() { 189 void WebUILoginDisplay::Signout() {
190 delegate_->Signout(); 190 delegate_->Signout();
191 } 191 }
192 192
193 void WebUILoginDisplay::CreateAccount() { 193 void WebUILoginDisplay::CreateAccount() {
194 DCHECK(delegate_); 194 DCHECK(delegate_);
195 if (delegate_) 195 if (delegate_)
196 delegate_->CreateAccount(); 196 delegate_->CreateAccount();
197 } 197 }
198 198
199 void WebUILoginDisplay::OnUserDeselected() { 199 void WebUILoginDisplay::LoadWallpaper(const std::string& username) {
200 WallpaperManager::Get()->OnUserDeselected(); 200 WallpaperManager::Get()->SetUserWallpaper(username);
201 } 201 }
202 202
203 void WebUILoginDisplay::OnUserSelected(const std::string& username) { 203 void WebUILoginDisplay::LoadSigninWallpaper() {
204 WallpaperManager::Get()->OnUserSelected(username); 204 WallpaperManager::Get()->SetSigninWallpaper();
205 } 205 }
206 206
207 void WebUILoginDisplay::RemoveUser(const std::string& username) { 207 void WebUILoginDisplay::RemoveUser(const std::string& username) {
208 UserManager::Get()->RemoveUser(username, this); 208 UserManager::Get()->RemoveUser(username, this);
209 } 209 }
210 210
211 void WebUILoginDisplay::ShowEnterpriseEnrollmentScreen() { 211 void WebUILoginDisplay::ShowEnterpriseEnrollmentScreen() {
212 if (delegate_) 212 if (delegate_)
213 delegate_->OnStartEnterpriseEnrollment(); 213 delegate_->OnStartEnterpriseEnrollment();
214 } 214 }
(...skipping 30 matching lines...) Expand all
245 bool WebUILoginDisplay::IsShowNewUser() const { 245 bool WebUILoginDisplay::IsShowNewUser() const {
246 return show_new_user_; 246 return show_new_user_;
247 } 247 }
248 248
249 void WebUILoginDisplay::SetDisplayEmail(const std::string& email) { 249 void WebUILoginDisplay::SetDisplayEmail(const std::string& email) {
250 if (delegate_) 250 if (delegate_)
251 delegate_->SetDisplayEmail(email); 251 delegate_->SetDisplayEmail(email);
252 } 252 }
253 253
254 } // namespace chromeos 254 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/webui_login_display.h ('k') | chrome/browser/resources/chromeos/login/header_bar.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698