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/system/tray/tray_popup_utils.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "ash/common/ash_constants.h" | 10 #include "ash/common/ash_constants.h" |
11 #include "ash/common/ash_view_ids.h" | 11 #include "ash/common/ash_view_ids.h" |
12 #include "ash/common/session/session_state_delegate.h" | 12 #include "ash/common/session/session_state_delegate.h" |
13 #include "ash/common/system/tray/fixed_sized_image_view.h" | |
14 #include "ash/common/system/tray/size_range_layout.h" | |
15 #include "ash/common/system/tray/tray_constants.h" | |
16 #include "ash/common/system/tray/tray_popup_item_style.h" | |
17 #include "ash/common/wm_shell.h" | 13 #include "ash/common/wm_shell.h" |
18 #include "ash/resources/vector_icons/vector_icons.h" | 14 #include "ash/resources/vector_icons/vector_icons.h" |
| 15 #include "ash/system/tray/fixed_sized_image_view.h" |
| 16 #include "ash/system/tray/size_range_layout.h" |
| 17 #include "ash/system/tray/tray_constants.h" |
| 18 #include "ash/system/tray/tray_popup_item_style.h" |
19 #include "base/memory/ptr_util.h" | 19 #include "base/memory/ptr_util.h" |
20 #include "ui/base/l10n/l10n_util.h" | 20 #include "ui/base/l10n/l10n_util.h" |
21 #include "ui/gfx/paint_vector_icon.h" | 21 #include "ui/gfx/paint_vector_icon.h" |
22 #include "ui/views/animation/flood_fill_ink_drop_ripple.h" | 22 #include "ui/views/animation/flood_fill_ink_drop_ripple.h" |
23 #include "ui/views/animation/ink_drop_highlight.h" | 23 #include "ui/views/animation/ink_drop_highlight.h" |
24 #include "ui/views/animation/ink_drop_impl.h" | 24 #include "ui/views/animation/ink_drop_impl.h" |
25 #include "ui/views/animation/ink_drop_mask.h" | 25 #include "ui/views/animation/ink_drop_mask.h" |
26 #include "ui/views/animation/square_ink_drop_ripple.h" | 26 #include "ui/views/animation/square_ink_drop_ripple.h" |
27 #include "ui/views/background.h" | 27 #include "ui/views/background.h" |
28 #include "ui/views/border.h" | 28 #include "ui/views/border.h" |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
428 bool TrayPopupUtils::CanOpenWebUISettings(LoginStatus status) { | 428 bool TrayPopupUtils::CanOpenWebUISettings(LoginStatus status) { |
429 // TODO(tdanderson): Consider moving this into WmShell, or introduce a | 429 // TODO(tdanderson): Consider moving this into WmShell, or introduce a |
430 // CanShowSettings() method in each delegate type that has a | 430 // CanShowSettings() method in each delegate type that has a |
431 // ShowSettings() method. | 431 // ShowSettings() method. |
432 return status != LoginStatus::NOT_LOGGED_IN && | 432 return status != LoginStatus::NOT_LOGGED_IN && |
433 status != LoginStatus::LOCKED && | 433 status != LoginStatus::LOCKED && |
434 !WmShell::Get()->GetSessionStateDelegate()->IsInSecondaryLoginScreen(); | 434 !WmShell::Get()->GetSessionStateDelegate()->IsInSecondaryLoginScreen(); |
435 } | 435 } |
436 | 436 |
437 } // namespace ash | 437 } // namespace ash |
OLD | NEW |