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