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

Unified Diff: ash/system/status_area_widget.h

Issue 10823350: Re-factor system tray code controlling launcher visibility (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 4 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/status_area_widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/status_area_widget.h
diff --git a/ash/system/status_area_widget.h b/ash/system/status_area_widget.h
index 376bbd9dde488bf37bc6de8ce8447ca2e92fa7b6..fede19fc30a0b6b5e127fbd906c1839fffa8f6a0 100644
--- a/ash/system/status_area_widget.h
+++ b/ash/system/status_area_widget.h
@@ -56,6 +56,11 @@ class ASH_EXPORT StatusAreaWidget : public views::Widget {
// notification tray.
void UpdateAfterLoginStatusChange(user::LoginStatus login_status);
+ // Called whenever the launcher auto-hide behavior may need updating.
+ // This sets should_show_launcher_ and calls
+ // ShelfLayoutManager::UpdateAutoHideState() if the state has changed.
+ void UpdateShouldShowLauncher();
+
internal::StatusAreaWidgetDelegate* status_area_widget_delegate() {
return status_area_widget_delegate_;
}
@@ -69,6 +74,8 @@ class ASH_EXPORT StatusAreaWidget : public views::Widget {
user::LoginStatus login_status() const { return login_status_; }
+ bool should_show_launcher() const { return should_show_launcher_; }
+
private:
void AddSystemTray(ShellDelegate* shell_delegate);
void AddWebNotificationTray();
@@ -79,6 +86,7 @@ class ASH_EXPORT StatusAreaWidget : public views::Widget {
SystemTray* system_tray_;
WebNotificationTray* web_notification_tray_;
user::LoginStatus login_status_;
+ bool should_show_launcher_;
DISALLOW_COPY_AND_ASSIGN(StatusAreaWidget);
};
« no previous file with comments | « no previous file | ash/system/status_area_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698