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

Unified Diff: ui/views/controls/focusable_rounded_border_mac.cc

Issue 2680943002: ui: 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 | « ui/views/controls/focusable_border.cc ('k') | ui/views/controls/image_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/focusable_rounded_border_mac.cc
diff --git a/ui/views/controls/focusable_rounded_border_mac.cc b/ui/views/controls/focusable_rounded_border_mac.cc
index 894aca9f7ce79c5c502d860b853cd220e898fb39..ba19855a2a9c0c3e19f576dc9f52b179d332f909 100644
--- a/ui/views/controls/focusable_rounded_border_mac.cc
+++ b/ui/views/controls/focusable_rounded_border_mac.cc
@@ -28,17 +28,16 @@ FocusableRoundedBorder::~FocusableRoundedBorder() {}
// likely diverge in future.
// TODO(ellyjones): Diverge it by adding soft focus rings.
void FocusableRoundedBorder::Paint(const View& view, gfx::Canvas* canvas) {
- cc::PaintFlags paint;
- paint.setStyle(cc::PaintFlags::kStroke_Style);
- paint.setStrokeWidth(kThickness);
- paint.setColor(GetCurrentColor(view));
- paint.setAntiAlias(true);
+ cc::PaintFlags flags;
+ flags.setStyle(cc::PaintFlags::kStroke_Style);
+ flags.setStrokeWidth(kThickness);
+ flags.setColor(GetCurrentColor(view));
+ flags.setAntiAlias(true);
float half_thickness = kThickness / 2.0f;
gfx::RectF bounds(view.GetLocalBounds());
bounds.Inset(half_thickness, half_thickness);
- canvas->DrawRoundRect(bounds, ui::NativeThemeMac::kButtonCornerRadius,
- paint);
+ canvas->DrawRoundRect(bounds, ui::NativeThemeMac::kButtonCornerRadius, flags);
}
} // namespace views
« no previous file with comments | « ui/views/controls/focusable_border.cc ('k') | ui/views/controls/image_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698