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

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: 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..14a9caa2f1459fce65d297e0d6c29de10a7d3d29 100644
--- a/ash/system/status_area_widget.h
+++ b/ash/system/status_area_widget.h
@@ -82,6 +82,15 @@ class ASH_EXPORT StatusAreaWidget : public views::Widget {
#endif
void AddOverviewButtonTray();
+ // Calculate the border insets for trays (ex: notification, overview) for both
tdanderson 2016/06/29 17:46:19 nit: "non-MD" nit: "for tray items" instead of "f
yiyix 2016/06/29 18:56:39 Done.
+ // MD and no-MD.
+ void CalculateBorderMD(gfx::Insets* insets,
+ ShelfAlignment alignment,
+ bool is_on_edge);
+ void CalculateBorderNonMD(gfx::Insets* insets,
+ 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