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

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: Rework lock logic 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
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..0e1d97c01d6719c436857da90815629b00364e87 100644
--- a/ash/system/overview/overview_button_tray.h
+++ b/ash/system/overview/overview_button_tray.h
@@ -40,6 +40,10 @@ class ASH_EXPORT OverviewButtonTray : public internal::TrayBackgroundView,
const views::TrayBubbleView* bubble_view) OVERRIDE;
virtual void SetShelfAlignment(ShelfAlignment alignment) OVERRIDE;
+ // Updates the tray's visibility based on the LoginStatus and the current
+ // state of MaximizeMode
+ virtual void UpdateAfterLoginStatusChange(user::LoginStatus status);
+
private:
friend class OverviewButtonTrayTest;
@@ -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 SetIconVisibility(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') | ash/system/overview/overview_button_tray.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698