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

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

Issue 2675983003: views::Separator cleanup. (Closed)
Patch Set: revert test change 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/tray/system_tray_unittest.cc ('k') | ash/common/system/tray/tray_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/tray/tray_background_view.cc
diff --git a/ash/common/system/tray/tray_background_view.cc b/ash/common/system/tray/tray_background_view.cc
index bf3620b82ff2849c5c17f9fd91f6cce0b2f64c24..d76626b8ace55a8364b857078fd0f607f8f52b6d 100644
--- a/ash/common/system/tray/tray_background_view.cc
+++ b/ash/common/system/tray/tray_background_view.cc
@@ -586,10 +586,10 @@ void TrayBackgroundView::OnPaint(gfx::Canvas* canvas) {
!separator_visible_) {
return;
}
- // In the given |canvas|, for a horizontal shelf draw a separator line to the
- // right or left of the TrayBackgroundView when the system is LTR or RTL
- // aligned, respectively. For a vertical shelf draw the separator line
- // underneath the items instead.
+ // In the given |canvas|, for a horizontal shelf draw a separator line to the
+ // right or left of the TrayBackgroundView when the system is LTR or RTL
+ // aligned, respectively. For a vertical shelf draw the separator line
+ // underneath the items instead.
const bool horizontal_shelf = IsHorizontalAlignment(shelf_alignment_);
const gfx::Rect local_bounds = GetLocalBounds();
const int height = kTrayItemSize;
@@ -601,7 +601,7 @@ void TrayBackgroundView::OnPaint(gfx::Canvas* canvas) {
gfx::ScopedCanvas scoped_canvas(canvas);
const float scale = canvas->UndoDeviceScaleFactor();
cc::PaintFlags flags;
- flags.setColor(kSeparatorColor);
+ flags.setColor(kTraySeparatorColor);
flags.setAntiAlias(true);
const gfx::Rect bounds = horizontal_shelf
« no previous file with comments | « ash/common/system/tray/system_tray_unittest.cc ('k') | ash/common/system/tray/tray_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698