| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/ui/views/profiles/supervised_user_avatar_label.h" | 5 #include "chrome/browser/ui/views/profiles/supervised_user_avatar_label.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 9 #include "base/macros.h" |
| 7 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 8 #include "chrome/browser/themes/theme_properties.h" | 11 #include "chrome/browser/themes/theme_properties.h" |
| 9 #include "chrome/browser/ui/views/frame/browser_view.h" | 12 #include "chrome/browser/ui/views/frame/browser_view.h" |
| 10 #include "chrome/grit/generated_resources.h" | 13 #include "chrome/grit/generated_resources.h" |
| 11 #include "components/signin/core/browser/signin_header_helper.h" | 14 #include "components/signin/core/browser/signin_header_helper.h" |
| 12 #include "components/signin/core/browser/signin_metrics.h" | 15 #include "components/signin/core/browser/signin_metrics.h" |
| 13 #include "grit/theme_resources.h" | 16 #include "grit/theme_resources.h" |
| 14 #include "ui/base/l10n/l10n_util.h" | 17 #include "ui/base/l10n/l10n_util.h" |
| 15 #include "ui/base/theme_provider.h" | 18 #include "ui/base/theme_provider.h" |
| 16 #include "ui/gfx/canvas.h" | 19 #include "ui/gfx/canvas.h" |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 ThemeProperties::COLOR_SUPERVISED_USER_LABEL); | 127 ThemeProperties::COLOR_SUPERVISED_USER_LABEL); |
| 125 for (size_t state = 0; state < STATE_COUNT; ++state) | 128 for (size_t state = 0; state < STATE_COUNT; ++state) |
| 126 SetTextColor(static_cast<ButtonState>(state), color_label); | 129 SetTextColor(static_cast<ButtonState>(state), color_label); |
| 127 SchedulePaint(); | 130 SchedulePaint(); |
| 128 } | 131 } |
| 129 | 132 |
| 130 void SupervisedUserAvatarLabel::SetLabelOnRight(bool label_on_right) { | 133 void SupervisedUserAvatarLabel::SetLabelOnRight(bool label_on_right) { |
| 131 SetBorder(scoped_ptr<views::Border>( | 134 SetBorder(scoped_ptr<views::Border>( |
| 132 new SupervisedUserAvatarLabelBorder(label_on_right))); | 135 new SupervisedUserAvatarLabelBorder(label_on_right))); |
| 133 } | 136 } |
| OLD | NEW |