| 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 #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/input_method/xkeyboard.h" | 7 #include "chrome/browser/chromeos/input_method/xkeyboard.h" |
| 8 #include "chrome/browser/chromeos/login/user_manager.h" | 8 #include "chrome/browser/chromeos/login/user_manager.h" |
| 9 #include "chrome/browser/chromeos/login/webui_login_view.h" | 9 #include "chrome/browser/chromeos/login/webui_login_view.h" |
| 10 #include "chrome/browser/chromeos/login/wizard_accessibility_helper.h" | 10 #include "chrome/browser/chromeos/login/wizard_accessibility_helper.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 void WebUILoginDisplay::OnBeforeUserRemoved(const std::string& username) { | 49 void WebUILoginDisplay::OnBeforeUserRemoved(const std::string& username) { |
| 50 for (UserList::iterator it = users_.begin(); it != users_.end(); ++it) { | 50 for (UserList::iterator it = users_.begin(); it != users_.end(); ++it) { |
| 51 if ((*it)->email() == username) { | 51 if ((*it)->email() == username) { |
| 52 users_.erase(it); | 52 users_.erase(it); |
| 53 break; | 53 break; |
| 54 } | 54 } |
| 55 } | 55 } |
| 56 } | 56 } |
| 57 | 57 |
| 58 void WebUILoginDisplay::OnUserImageChanged(const User& user) { | 58 void WebUILoginDisplay::OnUserImageChanged(const User& user) { |
| 59 // TODO(rharrison): Update the user in the user vector | 59 DCHECK(webui_handler_); |
| 60 // TODO(rharrison): Push the change to WebUI Login screen | 60 webui_handler_->OnUserImageChanged(user); |
| 61 } | 61 } |
| 62 | 62 |
| 63 void WebUILoginDisplay::OnUserRemoved(const std::string& username) { | 63 void WebUILoginDisplay::OnUserRemoved(const std::string& username) { |
| 64 DCHECK(webui_handler_); | 64 DCHECK(webui_handler_); |
| 65 webui_handler_->OnUserRemoved(username); | 65 webui_handler_->OnUserRemoved(username); |
| 66 } | 66 } |
| 67 | 67 |
| 68 void WebUILoginDisplay::OnFadeOut() { | 68 void WebUILoginDisplay::OnFadeOut() { |
| 69 } | 69 } |
| 70 | 70 |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 | 191 |
| 192 bool WebUILoginDisplay::IsShowGuest() const { | 192 bool WebUILoginDisplay::IsShowGuest() const { |
| 193 return show_guest_; | 193 return show_guest_; |
| 194 } | 194 } |
| 195 | 195 |
| 196 bool WebUILoginDisplay::IsShowNewUser() const { | 196 bool WebUILoginDisplay::IsShowNewUser() const { |
| 197 return show_new_user_; | 197 return show_new_user_; |
| 198 } | 198 } |
| 199 | 199 |
| 200 } // namespace chromeos | 200 } // namespace chromeos |
| OLD | NEW |