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

Unified Diff: chrome/browser/ui/views/location_bar/location_bar_view.cc

Issue 2697663002: Clean up naming of paint-related identifiers (Closed)
Patch Set: Rebase 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: chrome/browser/ui/views/location_bar/location_bar_view.cc
diff --git a/chrome/browser/ui/views/location_bar/location_bar_view.cc b/chrome/browser/ui/views/location_bar/location_bar_view.cc
index e55e20249fedab1f7ea551074c6ef57fbfbc408a..c05e17d1005671e6b577b98b74c0150bd115546e 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc
@@ -1102,16 +1102,16 @@ void LocationBarView::OnPaint(gfx::Canvas* canvas) {
View::OnPaint(canvas);
if (show_focus_rect_ && omnibox_view_->HasFocus()) {
- cc::PaintFlags paint;
- paint.setAntiAlias(true);
- paint.setColor(GetNativeTheme()->GetSystemColor(
+ cc::PaintFlags flags;
+ flags.setAntiAlias(true);
+ flags.setColor(GetNativeTheme()->GetSystemColor(
ui::NativeTheme::NativeTheme::kColorId_FocusedBorderColor));
- paint.setStyle(cc::PaintFlags::kStroke_Style);
- paint.setStrokeWidth(1);
+ flags.setStyle(cc::PaintFlags::kStroke_Style);
+ flags.setStrokeWidth(1);
gfx::RectF focus_rect(GetLocalBounds());
focus_rect.Inset(gfx::InsetsF(0.5f));
canvas->DrawRoundRect(focus_rect,
- BackgroundWith1PxBorder::kCornerRadius + 0.5f, paint);
+ BackgroundWith1PxBorder::kCornerRadius + 0.5f, flags);
}
}

Powered by Google App Engine
This is Rietveld 408576698