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

Unified Diff: ash/common/system/tray/system_tray.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: new approach Created 4 years, 5 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/common/system/tray/system_tray.h
diff --git a/ash/common/system/tray/system_tray.h b/ash/common/system/tray/system_tray.h
index 9029cb16f70f1bdc8e728bd069cfb97fd7b382cf..a5fb6532b71c66a818ebe5fe46bc2837bbb04d24 100644
--- a/ash/common/system/tray/system_tray.h
+++ b/ash/common/system/tray/system_tray.h
@@ -29,6 +29,7 @@ class TrayCast;
class TrayDate;
class TrayUpdate;
class TrayUser;
+class ViewObserver;
class WebNotificationTray;
// There are different methods for creating bubble views.
@@ -40,7 +41,7 @@ enum BubbleCreationType {
class ASH_EXPORT SystemTray : public TrayBackgroundView,
public views::TrayBubbleView::Delegate {
public:
- explicit SystemTray(WmShelf* wm_shelf);
+ explicit SystemTray(WmShelf* wm_shelf, ViewObserver* view_observer);
~SystemTray() override;
// Calls TrayBackgroundView::Initialize(), creates the tray items, and
@@ -212,6 +213,10 @@ class ASH_EXPORT SystemTray : public TrayBackgroundView,
const ScopedVector<SystemTrayItem>& items() const { return items_; }
+ // Sets an empty border around the system tray to change user-visible size
+ // of the dark background. Doesn't do anything in MD.
+ void AdjustStatusTrayBackground();
+
// Overridden from ActionableView.
bool PerformAction(const ui::Event& event) override;

Powered by Google App Engine
This is Rietveld 408576698