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

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

Issue 2679423002: ash: Clean up naming of paint-related identifiers (Closed)
Patch Set: 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/toast/toast_overlay.cc ('k') | ash/common/system/tray/tray_details_view.cc » ('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 e5aef5a48faa937c5f314537e99c548adb4dc0aa..bf3620b82ff2849c5c17f9fd91f6cce0b2f64c24 100644
--- a/ash/common/system/tray/tray_background_view.cc
+++ b/ash/common/system/tray/tray_background_view.cc
@@ -127,20 +127,20 @@ class TrayBackground : public views::Background {
WmShelf* GetShelf() const { return tray_background_view_->shelf(); }
void PaintMaterial(gfx::Canvas* canvas, views::View* view) const {
- cc::PaintFlags background_paint;
- background_paint.setFlags(cc::PaintFlags::kAntiAlias_Flag);
- background_paint.setColor(SkColorSetA(kShelfBaseColor, alpha_));
+ cc::PaintFlags background_flags;
+ background_flags.setFlags(cc::PaintFlags::kAntiAlias_Flag);
+ background_flags.setColor(SkColorSetA(kShelfBaseColor, alpha_));
gfx::Insets insets =
GetMirroredBackgroundInsets(GetShelf()->GetAlignment());
gfx::Rect bounds = view->GetLocalBounds();
bounds.Inset(insets);
- canvas->DrawRoundRect(bounds, kTrayRoundedBorderRadius, background_paint);
+ canvas->DrawRoundRect(bounds, kTrayRoundedBorderRadius, background_flags);
if (draws_active_ && tray_background_view_->is_active()) {
- cc::PaintFlags highlight_paint;
- highlight_paint.setFlags(cc::PaintFlags::kAntiAlias_Flag);
- highlight_paint.setColor(kShelfButtonActivatedHighlightColor);
- canvas->DrawRoundRect(bounds, kTrayRoundedBorderRadius, highlight_paint);
+ cc::PaintFlags highlight_flags;
+ highlight_flags.setFlags(cc::PaintFlags::kAntiAlias_Flag);
+ highlight_flags.setColor(kShelfButtonActivatedHighlightColor);
+ canvas->DrawRoundRect(bounds, kTrayRoundedBorderRadius, highlight_flags);
}
}
@@ -600,9 +600,9 @@ void TrayBackgroundView::OnPaint(gfx::Canvas* canvas) {
const int y = (GetShelfConstant(SHELF_SIZE) - kTrayItemSize) / 2;
gfx::ScopedCanvas scoped_canvas(canvas);
const float scale = canvas->UndoDeviceScaleFactor();
- cc::PaintFlags paint;
- paint.setColor(kSeparatorColor);
- paint.setAntiAlias(true);
+ cc::PaintFlags flags;
+ flags.setColor(kSeparatorColor);
+ flags.setAntiAlias(true);
const gfx::Rect bounds = horizontal_shelf
? gfx::Rect(x, y, kSeparatorWidth, height)
@@ -616,7 +616,7 @@ void TrayBackgroundView::OnPaint(gfx::Canvas* canvas) {
(horizontal_shelf && base::i18n::IsRTL() ? rect.bottom_left()
: rect.bottom_right());
- canvas->DrawLine(line_start, line_end, paint);
+ canvas->DrawLine(line_start, line_end, flags);
}
gfx::Insets TrayBackgroundView::GetBackgroundInsets() const {
« no previous file with comments | « ash/common/system/toast/toast_overlay.cc ('k') | ash/common/system/tray/tray_details_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698