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

Unified Diff: ash/system/status_area_widget.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/status_area_widget.h
diff --git a/ash/system/status_area_widget.h b/ash/system/status_area_widget.h
index ce4eeb0fe8ad9edfff85fd35eb3d95ec420306a4..e6d5208af27553857b6fd91a851b8523ad148ded 100644
--- a/ash/system/status_area_widget.h
+++ b/ash/system/status_area_widget.h
@@ -82,6 +82,11 @@ class ASH_EXPORT StatusAreaWidget : public views::Widget {
#endif
void AddOverviewButtonTray();
+ // Calculate the border insets for tray items (ex: notification, overview) for
+ // both MD and non-MD.
+ gfx::Insets CalculateBorderMD(ShelfAlignment alignment, bool is_on_edge);
+ gfx::Insets CalculateBorderNonMD(ShelfAlignment alignment, bool is_overview);
+
// Weak pointers to View classes that are parented to StatusAreaWidget:
StatusAreaWidgetDelegate* status_area_widget_delegate_;
OverviewButtonTray* overview_button_tray_;

Powered by Google App Engine
This is Rietveld 408576698