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/common/system/user/user_view.h" | 5 #include "ash/common/system/user/user_view.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "ash/common/material_design/material_design_controller.h" | 10 #include "ash/common/material_design/material_design_controller.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "ash/common/system/user/button_from_view.h" | 23 #include "ash/common/system/user/button_from_view.h" |
24 #include "ash/common/system/user/login_status.h" | 24 #include "ash/common/system/user/login_status.h" |
25 #include "ash/common/system/user/rounded_image_view.h" | 25 #include "ash/common/system/user/rounded_image_view.h" |
26 #include "ash/common/system/user/user_card_view.h" | 26 #include "ash/common/system/user/user_card_view.h" |
27 #include "ash/common/wm_lookup.h" | 27 #include "ash/common/wm_lookup.h" |
28 #include "ash/common/wm_root_window_controller.h" | 28 #include "ash/common/wm_root_window_controller.h" |
29 #include "ash/common/wm_shell.h" | 29 #include "ash/common/wm_shell.h" |
30 #include "ash/common/wm_window.h" | 30 #include "ash/common/wm_window.h" |
31 #include "ash/public/cpp/shell_window_ids.h" | 31 #include "ash/public/cpp/shell_window_ids.h" |
32 #include "ash/resources/vector_icons/vector_icons.h" | 32 #include "ash/resources/vector_icons/vector_icons.h" |
| 33 #include "base/memory/ptr_util.h" |
33 #include "components/signin/core/account_id/account_id.h" | 34 #include "components/signin/core/account_id/account_id.h" |
34 #include "components/user_manager/user_info.h" | 35 #include "components/user_manager/user_info.h" |
35 #include "grit/ash_resources.h" | 36 #include "grit/ash_resources.h" |
36 #include "grit/ash_strings.h" | 37 #include "grit/ash_strings.h" |
37 #include "ui/base/l10n/l10n_util.h" | 38 #include "ui/base/l10n/l10n_util.h" |
38 #include "ui/base/resource/resource_bundle.h" | 39 #include "ui/base/resource/resource_bundle.h" |
39 #include "ui/gfx/canvas.h" | 40 #include "ui/gfx/canvas.h" |
40 #include "ui/gfx/geometry/insets.h" | 41 #include "ui/gfx/geometry/insets.h" |
41 #include "ui/gfx/paint_vector_icon.h" | 42 #include "ui/gfx/paint_vector_icon.h" |
42 #include "ui/views/controls/button/label_button.h" | 43 #include "ui/views/controls/button/label_button.h" |
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
740 focus_manager_ = nullptr; | 741 focus_manager_ = nullptr; |
741 if (user_card_view_->GetFocusManager()) | 742 if (user_card_view_->GetFocusManager()) |
742 user_card_view_->GetFocusManager()->ClearFocus(); | 743 user_card_view_->GetFocusManager()->ClearFocus(); |
743 popup_message_.reset(); | 744 popup_message_.reset(); |
744 mouse_watcher_.reset(); | 745 mouse_watcher_.reset(); |
745 add_menu_option_.reset(); | 746 add_menu_option_.reset(); |
746 } | 747 } |
747 | 748 |
748 } // namespace tray | 749 } // namespace tray |
749 } // namespace ash | 750 } // namespace ash |
OLD | NEW |