Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Side by Side Diff: ash/system/tray/tray_popup_utils.cc

Issue 2729363002: chromeos: Move files in //ash/common to //ash, part 3 (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/system/tray/tray_popup_utils.h ('k') | ash/system/tray/tray_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/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/ash_constants.h"
11 #include "ash/common/ash_view_ids.h" 11 #include "ash/ash_view_ids.h"
12 #include "ash/common/session/session_state_delegate.h"
13 #include "ash/common/wm_shell.h"
14 #include "ash/resources/vector_icons/vector_icons.h" 12 #include "ash/resources/vector_icons/vector_icons.h"
13 #include "ash/session/session_state_delegate.h"
15 #include "ash/system/tray/fixed_sized_image_view.h" 14 #include "ash/system/tray/fixed_sized_image_view.h"
16 #include "ash/system/tray/size_range_layout.h" 15 #include "ash/system/tray/size_range_layout.h"
17 #include "ash/system/tray/tray_constants.h" 16 #include "ash/system/tray/tray_constants.h"
18 #include "ash/system/tray/tray_popup_item_style.h" 17 #include "ash/system/tray/tray_popup_item_style.h"
18 #include "ash/wm_shell.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
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
OLDNEW
« no previous file with comments | « ash/system/tray/tray_popup_utils.h ('k') | ash/system/tray/tray_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698