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

Unified Diff: ash/system/tray/tray_background_view.cc

Issue 2823133002: Clean up some ash constants. (Closed)
Patch Set: ditto Created 3 years, 8 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/system/status_area_widget_delegate.cc ('k') | ash/system/tray/tray_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/tray_background_view.cc
diff --git a/ash/system/tray/tray_background_view.cc b/ash/system/tray/tray_background_view.cc
index f3f1ab3349a2987fdf0ce55e2d5f8515802170cf..6c77e7e3051424b6946c7ee72b1d7d00e2ff7167 100644
--- a/ash/system/tray/tray_background_view.cc
+++ b/ash/system/tray/tray_background_view.cc
@@ -478,11 +478,11 @@ void TrayBackgroundView::OnPaint(gfx::Canvas* canvas) {
if (IsHorizontalAlignment(shelf_alignment_)) {
const gfx::PointF point(
base::i18n::IsRTL() ? 0 : (local_bounds.width() - kSeparatorWidth),
- (GetShelfConstant(SHELF_SIZE) - kTrayItemSize) / 2);
+ (kShelfSize - kTrayItemSize) / 2);
const gfx::Vector2dF vector(0, kTrayItemSize);
canvas->Draw1pxLine(point, point + vector, color);
} else {
- const gfx::PointF point((GetShelfConstant(SHELF_SIZE) - kTrayItemSize) / 2,
+ const gfx::PointF point((kShelfSize - kTrayItemSize) / 2,
local_bounds.height() - kSeparatorWidth);
const gfx::Vector2dF vector(kTrayItemSize, 0);
canvas->Draw1pxLine(point, point + vector, color);
« no previous file with comments | « ash/system/status_area_widget_delegate.cc ('k') | ash/system/tray/tray_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698