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

Unified Diff: ash/common/system/status_area_widget_delegate.cc

Issue 2709903004: Consolidate some more ash tray constants. (Closed)
Patch Set: rebase/review Created 3 years, 10 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/date/date_view.cc ('k') | ash/common/system/tray/hover_highlight_view.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_delegate.cc
diff --git a/ash/common/system/status_area_widget_delegate.cc b/ash/common/system/status_area_widget_delegate.cc
index 372e02e8dd23d56c6c6f4af08469ec7402519712..65911450c9e16330fbb787dbaddd77effdbf3191 100644
--- a/ash/common/system/status_area_widget_delegate.cc
+++ b/ash/common/system/status_area_widget_delegate.cc
@@ -22,7 +22,9 @@
namespace {
-const int kAnimationDurationMs = 250;
+constexpr int kAnimationDurationMs = 250;
+
+constexpr int kPaddingFromEdgeOfShelf = 3;
class StatusAreaWidgetDelegateAnimationSettings
: public ui::ScopedLayerAnimationSettings {
@@ -181,10 +183,10 @@ void StatusAreaWidgetDelegate::SetBorderOnChild(views::View* child,
const int bottom_edge =
horizontal_alignment
? padding
- : (extend_border_to_edge ? kTrayPaddingFromEdgeOfShelf : 0);
+ : (extend_border_to_edge ? kPaddingFromEdgeOfShelf : 0);
const int right_edge =
horizontal_alignment
- ? (extend_border_to_edge ? kTrayPaddingFromEdgeOfShelf : 0)
+ ? (extend_border_to_edge ? kPaddingFromEdgeOfShelf : 0)
: padding;
child->SetBorder(
views::CreateEmptyBorder(top_edge, left_edge, bottom_edge, right_edge));
« no previous file with comments | « ash/common/system/date/date_view.cc ('k') | ash/common/system/tray/hover_highlight_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698