| 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/new_avatar_button.h" | 5 #include "chrome/browser/ui/views/profiles/new_avatar_button.h" |
| 6 | 6 |
| 7 #include "base/win/windows_version.h" | 7 #include "base/win/windows_version.h" |
| 8 #include "build/build_config.h" |
| 8 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
| 9 #include "chrome/browser/profiles/profile_manager.h" | 10 #include "chrome/browser/profiles/profile_manager.h" |
| 10 #include "chrome/browser/profiles/profiles_state.h" | 11 #include "chrome/browser/profiles/profiles_state.h" |
| 11 #include "chrome/browser/ui/browser.h" | 12 #include "chrome/browser/ui/browser.h" |
| 12 #include "chrome/browser/ui/views/profiles/profile_chooser_view.h" | 13 #include "chrome/browser/ui/views/profiles/profile_chooser_view.h" |
| 13 #include "grit/theme_resources.h" | 14 #include "grit/theme_resources.h" |
| 14 #include "ui/base/resource/resource_bundle.h" | 15 #include "ui/base/resource/resource_bundle.h" |
| 15 #include "ui/gfx/canvas.h" | 16 #include "ui/gfx/canvas.h" |
| 16 #include "ui/gfx/color_palette.h" | 17 #include "ui/gfx/color_palette.h" |
| 17 #include "ui/gfx/geometry/vector2d.h" | 18 #include "ui/gfx/geometry/vector2d.h" |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 SetImage(views::Button::STATE_NORMAL, gfx::ImageSkia()); | 217 SetImage(views::Button::STATE_NORMAL, gfx::ImageSkia()); |
| 217 } | 218 } |
| 218 | 219 |
| 219 // If we are not using the generic button, then reset the spacing between | 220 // If we are not using the generic button, then reset the spacing between |
| 220 // the text and the possible authentication error icon. | 221 // the text and the possible authentication error icon. |
| 221 const int kDefaultImageTextSpacing = 5; | 222 const int kDefaultImageTextSpacing = 5; |
| 222 SetImageLabelSpacing(use_generic_button ? 0 : kDefaultImageTextSpacing); | 223 SetImageLabelSpacing(use_generic_button ? 0 : kDefaultImageTextSpacing); |
| 223 | 224 |
| 224 PreferredSizeChanged(); | 225 PreferredSizeChanged(); |
| 225 } | 226 } |
| OLD | NEW |