| 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/user_view.h" | 5 #include "chrome/browser/chromeos/login/user_view.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 10 #include "chrome/browser/chromeos/login/helper.h" | 10 #include "chrome/browser/chromeos/login/helper.h" |
| 11 #include "chrome/browser/chromeos/login/rounded_rect_painter.h" | 11 #include "chrome/browser/chromeos/login/rounded_rect_painter.h" |
| 12 #include "chrome/browser/chromeos/view_ids.h" | 12 #include "chrome/browser/chromeos/view_ids.h" |
| 13 #include "grit/generated_resources.h" | 13 #include "grit/generated_resources.h" |
| 14 #include "grit/theme_resources_standard.h" | 14 #include "grit/theme_resources_standard.h" |
| 15 #include "ui/base/l10n/l10n_util.h" | 15 #include "ui/base/l10n/l10n_util.h" |
| 16 #include "ui/base/resource/resource_bundle.h" | 16 #include "ui/base/resource/resource_bundle.h" |
| 17 #include "ui/gfx/canvas.h" | 17 #include "ui/gfx/canvas.h" |
| 18 #include "ui/gfx/canvas_skia.h" | 18 #include "ui/gfx/canvas_skia.h" |
| 19 #include "ui/gfx/gtk_util.h" | 19 #include "ui/gfx/gtk_util.h" |
| 20 #include "ui/gfx/rect.h" | 20 #include "ui/gfx/rect.h" |
| 21 #include "ui/views/background.h" |
| 21 #include "ui/views/controls/button/text_button.h" | 22 #include "ui/views/controls/button/text_button.h" |
| 22 #include "ui/views/controls/image_view.h" | 23 #include "ui/views/controls/image_view.h" |
| 23 #include "ui/views/controls/label.h" | 24 #include "ui/views/controls/label.h" |
| 24 #include "ui/views/controls/link.h" | 25 #include "ui/views/controls/link.h" |
| 25 #include "ui/views/controls/link_listener.h" | 26 #include "ui/views/controls/link_listener.h" |
| 26 #include "views/background.h" | |
| 27 | 27 |
| 28 namespace { | 28 namespace { |
| 29 | 29 |
| 30 // Background color of the signout button. | 30 // Background color of the signout button. |
| 31 const SkColor kSignoutBackgroundColor = 0xFF007700; | 31 const SkColor kSignoutBackgroundColor = 0xFF007700; |
| 32 | 32 |
| 33 // Horiz/Vert insets for Signout view. | 33 // Horiz/Vert insets for Signout view. |
| 34 const int kSignoutViewHorizontalInsets = 10; | 34 const int kSignoutViewHorizontalInsets = 10; |
| 35 const int kSignoutViewVerticalInsets = 5; | 35 const int kSignoutViewVerticalInsets = 5; |
| 36 const int kMinControlHeight = 16; | 36 const int kMinControlHeight = 16; |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 if (remove_button_ == sender) | 312 if (remove_button_ == sender) |
| 313 delegate_->OnRemoveUser(); | 313 delegate_->OnRemoveUser(); |
| 314 } | 314 } |
| 315 | 315 |
| 316 void UserView::OnLocaleChanged() { | 316 void UserView::OnLocaleChanged() { |
| 317 remove_button_->SetText(l10n_util::GetStringUTF16(IDS_LOGIN_REMOVE)); | 317 remove_button_->SetText(l10n_util::GetStringUTF16(IDS_LOGIN_REMOVE)); |
| 318 delegate_->OnLocaleChanged(); | 318 delegate_->OnLocaleChanged(); |
| 319 } | 319 } |
| 320 | 320 |
| 321 } // namespace chromeos | 321 } // namespace chromeos |
| OLD | NEW |