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

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

Issue 2675983003: views::Separator cleanup. (Closed)
Patch Set: update docs 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
Index: ash/common/system/tray/tray_details_view.cc
diff --git a/ash/common/system/tray/tray_details_view.cc b/ash/common/system/tray/tray_details_view.cc
index 08d71fe689fbba17867e812a61904dddd47d01c7..f03f9b4b389f0c2d063bd8ef1055f48a06f3daaa 100644
--- a/ash/common/system/tray/tray_details_view.cc
+++ b/ash/common/system/tray/tray_details_view.cc
@@ -133,7 +133,6 @@ class ScrollContentsView : public views::View {
}
private:
- const SkColor kSeparatorColor = SkColorSetA(SK_ColorBLACK, 0x1F);
const int kShadowOffsetY = 2;
const int kShadowBlur = 2;
// TODO(fukino): Remove this constant once we stop maintaining pre-MD design.
@@ -219,7 +218,7 @@ class ScrollContentsView : public views::View {
cc::PaintFlags paint;
gfx::ShadowValues shadow;
shadow.emplace_back(gfx::Vector2d(0, kShadowOffsetY), kShadowBlur,
- kSeparatorColor);
+ kMenuSeparatorColor);
paint.setLooper(gfx::CreateShadowDrawLooperCorrectBlur(shadow));
paint.setAntiAlias(true);
canvas->ClipRect(shadowed_area, SkClipOp::kDifference);
@@ -345,10 +344,9 @@ void TrayDetailsView::CreateTitleRow(int string_id) {
AddChildViewAt(tri_view_, 0);
views::Separator* separator =
new views::Separator(views::Separator::HORIZONTAL);
- separator->SetColor(kHorizontalSeparatorColor);
- separator->SetPreferredSize(kSeparatorWidth);
+ separator->SetColor(kMenuSeparatorColor);
separator->SetBorder(views::CreateEmptyBorder(
- kTitleRowProgressBarHeight - kSeparatorWidth, 0, 0, 0));
tdanderson 2017/02/06 21:19:06 There are two other instances of |kSeparatorWidth|
Evan Stade 2017/02/06 21:39:17 I intentionally did not update the uses that are n
+ kTitleRowProgressBarHeight - views::Separator::kThickness, 0, 0, 0));
AddChildViewAt(separator, kTitleRowSeparatorIndex);
} else {
title_row_ = new SpecialPopupRow();

Powered by Google App Engine
This is Rietveld 408576698