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

Unified Diff: ash/common/system/status_area_widget.h

Issue 2147143002: [Chrome OS MD] Draw a 1px separator between 2 tray items (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address nits Created 4 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 | « ash/common/system/overview/overview_button_tray.cc ('k') | ash/common/system/status_area_widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/status_area_widget.h
diff --git a/ash/common/system/status_area_widget.h b/ash/common/system/status_area_widget.h
index 9ee9143f9ce1fdb6a16801891a727810208bba0b..a829c9fd8fad051e7d9aa9b54b5a3db1437a05ca 100644
--- a/ash/common/system/status_area_widget.h
+++ b/ash/common/system/status_area_widget.h
@@ -17,6 +17,7 @@ class OverviewButtonTray;
class ShellDelegate;
class StatusAreaWidgetDelegate;
class SystemTray;
+class TrayBackgroundView;
class WebNotificationTray;
class WmShelf;
class WmWindow;
@@ -48,6 +49,12 @@ class ASH_EXPORT StatusAreaWidget : public views::Widget,
// notification tray.
void UpdateAfterLoginStatusChange(LoginStatus login_status);
+ // Based on visibility of |tray| and a tray item on its right, sets |tray|'s
+ // separator visibility either to true or false. Note that no leading
+ // separator is required before the logout_button_tray because that
+ // button's red background is distinctive on its own.
+ void OnTrayVisibilityChanged(TrayBackgroundView* tray);
+
StatusAreaWidgetDelegate* status_area_widget_delegate() {
return status_area_widget_delegate_;
}
@@ -91,6 +98,10 @@ class ASH_EXPORT StatusAreaWidget : public views::Widget,
void AddPaletteTray();
void AddVirtualKeyboardTray();
void AddImeMenuTray();
+
+ // Checks if |tray| is the next visible tray to the left of
+ // |logout_button_tray_|. Returns true if both are visible, false otherwise.
+ bool IsNextVisibleTrayToLogout(TrayBackgroundView* tray) const;
#endif
void AddOverviewButtonTray();
« no previous file with comments | « ash/common/system/overview/overview_button_tray.cc ('k') | ash/common/system/status_area_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698