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 "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
8 #include "chrome/browser/chromeos/login/helper.h" | 8 #include "chrome/browser/chromeos/login/helper.h" |
9 #include "chrome/browser/chromeos/login/rounded_rect_painter.h" | 9 #include "chrome/browser/chromeos/login/rounded_rect_painter.h" |
10 #include "chrome/browser/chromeos/login/rounded_view.h" | 10 #include "chrome/browser/chromeos/login/rounded_view.h" |
11 #include "chrome/browser/chromeos/view_ids.h" | 11 #include "chrome/browser/chromeos/view_ids.h" |
12 #include "gfx/canvas.h" | |
13 #include "gfx/canvas_skia.h" | |
14 #include "gfx/gtk_util.h" | |
15 #include "gfx/rect.h" | |
16 #include "grit/generated_resources.h" | 12 #include "grit/generated_resources.h" |
17 #include "grit/theme_resources.h" | 13 #include "grit/theme_resources.h" |
18 #include "ui/base/l10n/l10n_util.h" | 14 #include "ui/base/l10n/l10n_util.h" |
19 #include "ui/base/resource/resource_bundle.h" | 15 #include "ui/base/resource/resource_bundle.h" |
| 16 #include "ui/gfx/canvas.h" |
| 17 #include "ui/gfx/canvas_skia.h" |
| 18 #include "ui/gfx/gtk_util.h" |
| 19 #include "ui/gfx/rect.h" |
20 #include "views/background.h" | 20 #include "views/background.h" |
21 #include "views/controls/button/text_button.h" | 21 #include "views/controls/button/text_button.h" |
22 #include "views/controls/image_view.h" | 22 #include "views/controls/image_view.h" |
23 #include "views/controls/label.h" | 23 #include "views/controls/label.h" |
24 #include "views/controls/link.h" | 24 #include "views/controls/link.h" |
25 #include "views/painter.h" | 25 #include "views/painter.h" |
26 | 26 |
27 namespace { | 27 namespace { |
28 | 28 |
29 // Background color and corner radius of the login status label and | 29 // Background color and corner radius of the login status label and |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 if (remove_button_ == sender) | 339 if (remove_button_ == sender) |
340 delegate_->OnRemoveUser(); | 340 delegate_->OnRemoveUser(); |
341 } | 341 } |
342 | 342 |
343 void UserView::OnLocaleChanged() { | 343 void UserView::OnLocaleChanged() { |
344 remove_button_->SetText( | 344 remove_button_->SetText( |
345 UTF16ToWide(l10n_util::GetStringUTF16(IDS_LOGIN_REMOVE))); | 345 UTF16ToWide(l10n_util::GetStringUTF16(IDS_LOGIN_REMOVE))); |
346 } | 346 } |
347 | 347 |
348 } // namespace chromeos | 348 } // namespace chromeos |
OLD | NEW |