| 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 #include "chrome/browser/chromeos/login/screen_lock_view.h" | 5 #include "chrome/browser/chromeos/login/screen_lock_view.h" |
| 6 | 6 |
| 7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
| 8 #include "chrome/browser/chromeos/login/rounded_rect_painter.h" | 8 #include "chrome/browser/chromeos/login/rounded_rect_painter.h" |
| 9 #include "chrome/browser/chromeos/login/screen_locker.h" | 9 #include "chrome/browser/chromeos/login/screen_locker.h" |
| 10 #include "chrome/browser/chromeos/login/user_manager.h" | 10 #include "chrome/browser/chromeos/login/user_manager.h" |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 const NotificationDetails& details) { | 211 const NotificationDetails& details) { |
| 212 if (type != NotificationType::LOGIN_USER_IMAGE_CHANGED || !user_view_) | 212 if (type != NotificationType::LOGIN_USER_IMAGE_CHANGED || !user_view_) |
| 213 return; | 213 return; |
| 214 | 214 |
| 215 UserManager::User* user = Details<UserManager::User>(details).ptr(); | 215 UserManager::User* user = Details<UserManager::User>(details).ptr(); |
| 216 if (screen_locker_->user().email() != user->email()) | 216 if (screen_locker_->user().email() != user->email()) |
| 217 return; | 217 return; |
| 218 user_view_->SetImage(user->image(), user->image()); | 218 user_view_->SetImage(user->image(), user->image()); |
| 219 } | 219 } |
| 220 | 220 |
| 221 void ScreenLockView::ViewHierarchyChanged(bool is_add, | |
| 222 views::View* parent, | |
| 223 views::View* child) { | |
| 224 if (is_add && this == child) | |
| 225 WizardAccessibilityHelper::GetInstance()->MaybeEnableAccessibility(this); | |
| 226 } | |
| 227 | |
| 228 } // namespace chromeos | 221 } // namespace chromeos |
| OLD | NEW |