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

Unified Diff: ash/system/tray/system_tray.h

Issue 2103113003: Fix shelf layout when switching from left-aligned shelf to right-aligned shelf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge Created 4 years, 6 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/tray/system_tray.h
diff --git a/ash/system/tray/system_tray.h b/ash/system/tray/system_tray.h
index da3b780df9f8a652ef3e284e99ebe6813ff3cdec..20b26d729d91537534f60666da8b84c0354d6865 100644
--- a/ash/system/tray/system_tray.h
+++ b/ash/system/tray/system_tray.h
@@ -46,7 +46,8 @@ class ASH_EXPORT SystemTray : public TrayBackgroundView,
// Calls TrayBackgroundView::Initialize(), creates the tray items, and
// adds them to SystemTrayNotifier.
void InitializeTrayItems(SystemTrayDelegate* delegate,
- WebNotificationTray* web_notification_tray);
+ WebNotificationTray* web_notification_tray,
+ const gfx::Insets& insets);
// Resets internal pointers.
void Shutdown();
@@ -130,7 +131,8 @@ class ASH_EXPORT SystemTray : public TrayBackgroundView,
bool CloseNotificationBubbleForTest() const;
// Overridden from TrayBackgroundView.
- void SetShelfAlignment(ShelfAlignment alignment) override;
+ void SetShelfAlignment(ShelfAlignment alignment,
+ const gfx::Insets& insets) override;
void AnchorUpdated() override;
base::string16 GetAccessibleNameForTray() override;
void BubbleResized(const views::TrayBubbleView* bubble_view) override;

Powered by Google App Engine
This is Rietveld 408576698