OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/tray/tray_popup_utils.h" | 5 #include "ash/common/system/tray/tray_popup_utils.h" |
6 | 6 |
7 #include "ash/common/ash_constants.h" | 7 #include "ash/common/ash_constants.h" |
8 #include "ash/common/ash_view_ids.h" | 8 #include "ash/common/ash_view_ids.h" |
9 #include "ash/common/material_design/material_design_controller.h" | 9 #include "ash/common/material_design/material_design_controller.h" |
10 #include "ash/common/session/session_state_delegate.h" | 10 #include "ash/common/session/session_state_delegate.h" |
11 #include "ash/common/system/tray/fixed_sized_image_view.h" | 11 #include "ash/common/system/tray/fixed_sized_image_view.h" |
12 #include "ash/common/system/tray/size_range_layout.h" | 12 #include "ash/common/system/tray/size_range_layout.h" |
13 #include "ash/common/system/tray/tray_constants.h" | 13 #include "ash/common/system/tray/tray_constants.h" |
14 #include "ash/common/system/tray/tray_popup_item_style.h" | 14 #include "ash/common/system/tray/tray_popup_item_style.h" |
15 #include "ash/common/system/tray/tray_popup_label_button.h" | 15 #include "ash/common/system/tray/tray_popup_label_button.h" |
16 #include "ash/common/system/tray/tray_popup_label_button_border.h" | 16 #include "ash/common/system/tray/tray_popup_label_button_border.h" |
17 #include "ash/common/wm_shell.h" | 17 #include "ash/common/wm_shell.h" |
| 18 #include "base/memory/ptr_util.h" |
18 #include "ui/base/l10n/l10n_util.h" | 19 #include "ui/base/l10n/l10n_util.h" |
19 #include "ui/views/animation/flood_fill_ink_drop_ripple.h" | 20 #include "ui/views/animation/flood_fill_ink_drop_ripple.h" |
20 #include "ui/views/animation/ink_drop_highlight.h" | 21 #include "ui/views/animation/ink_drop_highlight.h" |
21 #include "ui/views/animation/ink_drop_impl.h" | 22 #include "ui/views/animation/ink_drop_impl.h" |
22 #include "ui/views/animation/ink_drop_mask.h" | 23 #include "ui/views/animation/ink_drop_mask.h" |
23 #include "ui/views/animation/square_ink_drop_ripple.h" | 24 #include "ui/views/animation/square_ink_drop_ripple.h" |
24 #include "ui/views/background.h" | 25 #include "ui/views/background.h" |
25 #include "ui/views/border.h" | 26 #include "ui/views/border.h" |
26 #include "ui/views/controls/button/button.h" | 27 #include "ui/views/controls/button/button.h" |
27 #include "ui/views/controls/button/label_button.h" | 28 #include "ui/views/controls/button/label_button.h" |
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
470 bool TrayPopupUtils::CanOpenWebUISettings(LoginStatus status) { | 471 bool TrayPopupUtils::CanOpenWebUISettings(LoginStatus status) { |
471 // TODO(tdanderson): Consider moving this into WmShell, or introduce a | 472 // TODO(tdanderson): Consider moving this into WmShell, or introduce a |
472 // CanShowSettings() method in each delegate type that has a | 473 // CanShowSettings() method in each delegate type that has a |
473 // ShowSettings() method. | 474 // ShowSettings() method. |
474 return status != LoginStatus::NOT_LOGGED_IN && | 475 return status != LoginStatus::NOT_LOGGED_IN && |
475 status != LoginStatus::LOCKED && | 476 status != LoginStatus::LOCKED && |
476 !WmShell::Get()->GetSessionStateDelegate()->IsInSecondaryLoginScreen(); | 477 !WmShell::Get()->GetSessionStateDelegate()->IsInSecondaryLoginScreen(); |
477 } | 478 } |
478 | 479 |
479 } // namespace ash | 480 } // namespace ash |
OLD | NEW |