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 "ash/system/user/accounts_detailed_view.h" | 5 #include "ash/system/user/accounts_detailed_view.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "ash/multi_profile_uma.h" | 9 #include "ash/multi_profile_uma.h" |
10 #include "ash/shell.h" | 10 #include "ash/shell.h" |
11 #include "ash/system/tray/fixed_sized_scroll_view.h" | 11 #include "ash/system/tray/fixed_sized_scroll_view.h" |
12 #include "ash/system/tray/hover_highlight_view.h" | 12 #include "ash/system/tray/hover_highlight_view.h" |
13 #include "ash/system/tray/system_tray.h" | 13 #include "ash/system/tray/system_tray.h" |
14 #include "ash/system/tray/system_tray_delegate.h" | 14 #include "ash/system/tray/system_tray_delegate.h" |
15 #include "ash/system/tray/tray_constants.h" | 15 #include "ash/system/tray/tray_constants.h" |
16 #include "ash/system/tray/tray_popup_header_button.h" | 16 #include "ash/system/tray/tray_popup_header_button.h" |
17 #include "ash/system/user/config.h" | 17 #include "ash/system/user/config.h" |
18 #include "ash/system/user/tray_user.h" | 18 #include "ash/system/user/tray_user.h" |
19 #include "base/strings/utf_string_conversions.h" | 19 #include "base/strings/utf_string_conversions.h" |
20 #include "components/user_manager/user_info.h" | 20 #include "components/user_manager/user_info.h" |
21 #include "grit/ash_resources.h" | 21 #include "grit/ash_resources.h" |
22 #include "ui/base/l10n/l10n_util.h" | 22 #include "ui/base/l10n/l10n_util.h" |
23 #include "ui/base/resource/resource_bundle.h" | 23 #include "ui/base/resource/resource_bundle.h" |
24 #include "ui/resources/grit/ui_resources.h" | |
25 #include "ui/views/border.h" | 24 #include "ui/views/border.h" |
26 #include "ui/views/layout/box_layout.h" | 25 #include "ui/views/layout/box_layout.h" |
27 #include "ui/views/layout/grid_layout.h" | 26 #include "ui/views/layout/grid_layout.h" |
28 | 27 |
29 namespace ash { | 28 namespace ash { |
30 namespace tray { | 29 namespace tray { |
31 | 30 |
32 namespace { | 31 namespace { |
33 | 32 |
34 const int kAccountsViewVerticalPadding = 12; | 33 const int kAccountsViewVerticalPadding = 12; |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 views::Button::STATE_HOVERED, | 226 views::Button::STATE_HOVERED, |
228 rb.GetImageNamed(IDR_AURA_UBER_TRAY_REMOVE_ACCOUNT_HOVER).ToImageSkia()); | 227 rb.GetImageNamed(IDR_AURA_UBER_TRAY_REMOVE_ACCOUNT_HOVER).ToImageSkia()); |
229 delete_button->SetImage( | 228 delete_button->SetImage( |
230 views::Button::STATE_PRESSED, | 229 views::Button::STATE_PRESSED, |
231 rb.GetImageNamed(IDR_AURA_UBER_TRAY_REMOVE_ACCOUNT_HOVER).ToImageSkia()); | 230 rb.GetImageNamed(IDR_AURA_UBER_TRAY_REMOVE_ACCOUNT_HOVER).ToImageSkia()); |
232 return delete_button; | 231 return delete_button; |
233 } | 232 } |
234 | 233 |
235 } // namespace tray | 234 } // namespace tray |
236 } // namespace ash | 235 } // namespace ash |
OLD | NEW |