| 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/user_view.h" | 5 #include "chrome/browser/chromeos/login/user_view.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 8 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
| 9 #include "chrome/browser/chromeos/login/helper.h" | 9 #include "chrome/browser/chromeos/login/helper.h" |
| 10 #include "chrome/browser/chromeos/login/rounded_rect_painter.h" | 10 #include "chrome/browser/chromeos/login/rounded_rect_painter.h" |
| 11 #include "grit/generated_resources.h" | 11 #include "grit/generated_resources.h" |
| 12 #include "grit/theme_resources.h" | 12 #include "grit/theme_resources.h" |
| 13 #include "views/controls/button/menu_button.h" | 13 #include "views/controls/button/menu_button.h" |
| 14 #include "views/controls/button/text_button.h" | 14 #include "views/controls/button/text_button.h" |
| 15 #include "views/controls/image_view.h" | 15 #include "views/controls/image_view.h" |
| 16 #include "views/controls/label.h" | 16 #include "views/controls/label.h" |
| 17 #include "views/controls/link.h" |
| 17 #include "views/controls/throbber.h" | 18 #include "views/controls/throbber.h" |
| 18 #include "views/controls/link.h" | |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| 22 // Background color of the login status label and signout button. | 22 // Background color of the login status label and signout button. |
| 23 const SkColor kSignoutBackgroundColor = 0xFF007700; | 23 const SkColor kSignoutBackgroundColor = 0xFF007700; |
| 24 | 24 |
| 25 // Horiz/Vert insets for Signout view. | 25 // Horiz/Vert insets for Signout view. |
| 26 const int kSignoutViewHorizontalInsets = 10; | 26 const int kSignoutViewHorizontalInsets = 10; |
| 27 const int kSignoutViewVerticalInsets = 5; | 27 const int kSignoutViewVerticalInsets = 5; |
| 28 | 28 |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 DCHECK(delegate_); | 271 DCHECK(delegate_); |
| 272 if (remove_button_ == sender) | 272 if (remove_button_ == sender) |
| 273 delegate_->OnRemoveUser(); | 273 delegate_->OnRemoveUser(); |
| 274 } | 274 } |
| 275 | 275 |
| 276 void UserView::OnLocaleChanged() { | 276 void UserView::OnLocaleChanged() { |
| 277 remove_button_->SetText(l10n_util::GetString(IDS_LOGIN_REMOVE)); | 277 remove_button_->SetText(l10n_util::GetString(IDS_LOGIN_REMOVE)); |
| 278 } | 278 } |
| 279 | 279 |
| 280 } // namespace chromeos | 280 } // namespace chromeos |
| OLD | NEW |