| 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" |
| 11 #include "chrome/browser/chromeos/login/user_view.h" | 11 #include "chrome/browser/chromeos/login/user_view.h" |
| 12 #include "chrome/browser/chromeos/login/username_view.h" | 12 #include "chrome/browser/chromeos/login/username_view.h" |
| 13 #include "chrome/browser/chromeos/login/wizard_accessibility_helper.h" | 13 #include "chrome/browser/chromeos/login/wizard_accessibility_helper.h" |
| 14 #include "chrome/browser/chromeos/login/textfield_with_margin.h" | 14 #include "chrome/browser/chromeos/login/textfield_with_margin.h" |
| 15 #include "chrome/browser/chromeos/views/copy_background.h" | 15 #include "chrome/browser/chromeos/views/copy_background.h" |
| 16 #include "chrome/browser/profiles/profile_manager.h" | 16 #include "chrome/browser/profiles/profile_manager.h" |
| 17 #include "chrome/common/notification_service.h" | 17 #include "chrome/common/notification_service.h" |
| 18 #include "grit/generated_resources.h" | 18 #include "grit/generated_resources.h" |
| 19 #include "grit/theme_resources.h" | 19 #include "grit/theme_resources.h" |
| 20 #include "ui/base/l10n/l10n_util.h" | 20 #include "ui/base/l10n/l10n_util.h" |
| 21 #include "ui/base/resource/resource_bundle.h" | 21 #include "ui/base/resource/resource_bundle.h" |
| 22 #include "views/background.h" | 22 #include "views/background.h" |
| 23 #include "views/border.h" | 23 #include "views/border.h" |
| 24 #include "views/controls/image_view.h" | 24 #include "views/controls/image_view.h" |
| 25 #include "views/controls/label.h" | 25 #include "views/controls/label.h" |
| 26 #include "views/grid_layout.h" | 26 #include "views/layout/grid_layout.h" |
| 27 | 27 |
| 28 namespace chromeos { | 28 namespace chromeos { |
| 29 | 29 |
| 30 namespace { | 30 namespace { |
| 31 | 31 |
| 32 const int kCornerRadius = 5; | 32 const int kCornerRadius = 5; |
| 33 | 33 |
| 34 // A Textfield for password, which also sets focus to itself | 34 // A Textfield for password, which also sets focus to itself |
| 35 // when a mouse is clicked on it. This is necessary in screen locker | 35 // when a mouse is clicked on it. This is necessary in screen locker |
| 36 // as mouse events are grabbed in the screen locker. | 36 // as mouse events are grabbed in the screen locker. |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 } | 212 } |
| 213 | 213 |
| 214 void ScreenLockView::ViewHierarchyChanged(bool is_add, | 214 void ScreenLockView::ViewHierarchyChanged(bool is_add, |
| 215 views::View* parent, | 215 views::View* parent, |
| 216 views::View* child) { | 216 views::View* child) { |
| 217 if (is_add && this == child) | 217 if (is_add && this == child) |
| 218 WizardAccessibilityHelper::GetInstance()->MaybeEnableAccessibility(this); | 218 WizardAccessibilityHelper::GetInstance()->MaybeEnableAccessibility(this); |
| 219 } | 219 } |
| 220 | 220 |
| 221 } // namespace chromeos | 221 } // namespace chromeos |
| OLD | NEW |