| 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/user_view.h" | 5 #include "ash/system/user/user_view.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "ash/multi_profile_uma.h" | 10 #include "ash/multi_profile_uma.h" |
| 11 #include "ash/public/cpp/shell_window_ids.h" | 11 #include "ash/public/cpp/shell_window_ids.h" |
| 12 #include "ash/resources/grit/ash_resources.h" | 12 #include "ash/resources/grit/ash_resources.h" |
| 13 #include "ash/resources/vector_icons/vector_icons.h" | 13 #include "ash/resources/vector_icons/vector_icons.h" |
| 14 #include "ash/root_window_controller.h" | 14 #include "ash/root_window_controller.h" |
| 15 #include "ash/session/session_controller.h" | 15 #include "ash/session/session_controller.h" |
| 16 #include "ash/shell.h" | 16 #include "ash/shell.h" |
| 17 #include "ash/shell_delegate.h" | 17 #include "ash/shell_delegate.h" |
| 18 #include "ash/shell_port.h" | 18 #include "ash/shell_port.h" |
| 19 #include "ash/strings/grit/ash_strings.h" | 19 #include "ash/strings/grit/ash_strings.h" |
| 20 #include "ash/system/tray/system_tray.h" | 20 #include "ash/system/tray/system_tray.h" |
| 21 #include "ash/system/tray/system_tray_controller.h" | 21 #include "ash/system/tray/system_tray_controller.h" |
| 22 #include "ash/system/tray/system_tray_delegate.h" | 22 #include "ash/system/tray/system_tray_delegate.h" |
| 23 #include "ash/system/tray/tray_constants.h" | 23 #include "ash/system/tray/tray_constants.h" |
| 24 #include "ash/system/tray/tray_popup_item_style.h" | 24 #include "ash/system/tray/tray_popup_item_style.h" |
| 25 #include "ash/system/tray/tray_popup_utils.h" | 25 #include "ash/system/tray/tray_popup_utils.h" |
| 26 #include "ash/system/user/button_from_view.h" | 26 #include "ash/system/user/button_from_view.h" |
| 27 #include "ash/system/user/login_status.h" | 27 #include "ash/system/user/login_status.h" |
| 28 #include "ash/system/user/rounded_image_view.h" | 28 #include "ash/system/user/rounded_image_view.h" |
| 29 #include "ash/system/user/user_card_view.h" | 29 #include "ash/system/user/user_card_view.h" |
| 30 #include "ash/wm_window.h" | |
| 31 #include "base/memory/ptr_util.h" | 30 #include "base/memory/ptr_util.h" |
| 32 #include "components/signin/core/account_id/account_id.h" | 31 #include "components/signin/core/account_id/account_id.h" |
| 33 #include "components/user_manager/user_info.h" | 32 #include "components/user_manager/user_info.h" |
| 34 #include "ui/base/l10n/l10n_util.h" | 33 #include "ui/base/l10n/l10n_util.h" |
| 35 #include "ui/base/resource/resource_bundle.h" | 34 #include "ui/base/resource/resource_bundle.h" |
| 36 #include "ui/gfx/canvas.h" | 35 #include "ui/gfx/canvas.h" |
| 37 #include "ui/gfx/color_utils.h" | 36 #include "ui/gfx/color_utils.h" |
| 38 #include "ui/gfx/geometry/insets.h" | 37 #include "ui/gfx/geometry/insets.h" |
| 39 #include "ui/gfx/paint_vector_icon.h" | 38 #include "ui/gfx/paint_vector_icon.h" |
| 40 #include "ui/native_theme/native_theme.h" | 39 #include "ui/native_theme/native_theme.h" |
| (...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 focus_manager_->RemoveFocusChangeListener(this); | 414 focus_manager_->RemoveFocusChangeListener(this); |
| 416 focus_manager_ = nullptr; | 415 focus_manager_ = nullptr; |
| 417 if (user_card_container_->GetFocusManager()) | 416 if (user_card_container_->GetFocusManager()) |
| 418 user_card_container_->GetFocusManager()->ClearFocus(); | 417 user_card_container_->GetFocusManager()->ClearFocus(); |
| 419 user_card_view_->SetSuppressCaptureIcon(false); | 418 user_card_view_->SetSuppressCaptureIcon(false); |
| 420 user_dropdown_widget_.reset(); | 419 user_dropdown_widget_.reset(); |
| 421 } | 420 } |
| 422 | 421 |
| 423 } // namespace tray | 422 } // namespace tray |
| 424 } // namespace ash | 423 } // namespace ash |
| OLD | NEW |