| 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/username_view.h" | 5 #include "chrome/browser/chromeos/login/username_view.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| 11 #include "chrome/browser/chromeos/login/rounded_view.h" | |
| 12 #include "grit/generated_resources.h" | 11 #include "grit/generated_resources.h" |
| 13 #include "third_party/skia/include/core/SkColorShader.h" | 12 #include "third_party/skia/include/core/SkColorShader.h" |
| 14 #include "third_party/skia/include/core/SkComposeShader.h" | 13 #include "third_party/skia/include/core/SkComposeShader.h" |
| 15 #include "third_party/skia/include/effects/SkGradientShader.h" | 14 #include "third_party/skia/include/effects/SkGradientShader.h" |
| 16 #include "ui/base/l10n/l10n_util.h" | 15 #include "ui/base/l10n/l10n_util.h" |
| 17 #include "ui/base/resource/resource_bundle.h" | 16 #include "ui/base/resource/resource_bundle.h" |
| 18 #include "ui/gfx/canvas.h" | 17 #include "ui/gfx/canvas.h" |
| 19 #include "ui/gfx/canvas_skia.h" | 18 #include "ui/gfx/canvas_skia.h" |
| 20 #include "ui/gfx/gtk_util.h" | 19 #include "ui/gfx/gtk_util.h" |
| 21 #include "ui/gfx/rect.h" | 20 #include "ui/gfx/rect.h" |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 void UsernameView::OnLocaleChanged() { | 144 void UsernameView::OnLocaleChanged() { |
| 146 if (is_guest_) { | 145 if (is_guest_) { |
| 147 SetText(l10n_util::GetStringUTF16(IDS_GUEST)); | 146 SetText(l10n_util::GetStringUTF16(IDS_GUEST)); |
| 148 } | 147 } |
| 149 // Repaint because the font may have changed. | 148 // Repaint because the font may have changed. |
| 150 text_image_.reset(); | 149 text_image_.reset(); |
| 151 SchedulePaint(); | 150 SchedulePaint(); |
| 152 } | 151 } |
| 153 | 152 |
| 154 } // namespace chromeos | 153 } // namespace chromeos |
| OLD | NEW |