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

Unified Diff: ash/system/overview/overview_button_tray.h

Issue 212553005: Overview Tray Button should not be visible on login screen (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ash/system/overview/overview_button_tray.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/overview/overview_button_tray.h
diff --git a/ash/system/overview/overview_button_tray.h b/ash/system/overview/overview_button_tray.h
index 0a16e4781f99bb90ae337634bc2561e9b498e91b..9007f0a73040c77290adf7ac98cb9551c7d8031d 100644
--- a/ash/system/overview/overview_button_tray.h
+++ b/ash/system/overview/overview_button_tray.h
@@ -26,6 +26,10 @@ class ASH_EXPORT OverviewButtonTray : public internal::TrayBackgroundView,
explicit OverviewButtonTray(internal::StatusAreaWidget* status_area_widget);
virtual ~OverviewButtonTray();
+ // Updates the tray's visibility based on the LoginStatus and the current
+ // state of MaximizeMode
+ virtual void UpdateAfterLoginStatusChange(user::LoginStatus status);
+
// internal::ActionableView:
virtual bool PerformAction(const ui::Event& event) OVERRIDE;
@@ -47,6 +51,10 @@ class ASH_EXPORT OverviewButtonTray : public internal::TrayBackgroundView,
// alignment of the shelf.
void SetIconBorderForShelfAlignment();
+ // Sets the icon to visible if |maximize_mode_enabled| and
+ // WindowSelectorController::CanSelect.
+ void UpdateIconVisibility(bool maximize_mode_enabled);
+
// Weak pointer, will be parented by TrayContainer for its lifetime.
views::ImageView* icon_;
« no previous file with comments | « no previous file | ash/system/overview/overview_button_tray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698