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

Unified Diff: ash/common/wm/window_cycle_list.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/wm/panels/panel_layout_manager.cc ('k') | ash/laser/laser_pointer_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm/window_cycle_list.cc
diff --git a/ash/common/wm/window_cycle_list.cc b/ash/common/wm/window_cycle_list.cc
index 4180768f21c5dc439835769cfe6e74ebf0338803..fd63499ac5e4305c752e7737400f1050df69eb8a 100644
--- a/ash/common/wm/window_cycle_list.cc
+++ b/ash/common/wm/window_cycle_list.cc
@@ -353,15 +353,15 @@ class WindowCycleView : public views::WidgetDelegateView {
// We can't set a bg on the mirror container itself because the highlight
// view needs to be on top of the bg but behind the target windows.
const gfx::RectF shield_bounds(mirror_container_->bounds());
- cc::PaintFlags paint;
- paint.setColor(SkColorSetA(SK_ColorBLACK, 0xE6));
- paint.setStyle(cc::PaintFlags::kFill_Style);
+ cc::PaintFlags flags;
+ flags.setColor(SkColorSetA(SK_ColorBLACK, 0xE6));
+ flags.setStyle(cc::PaintFlags::kFill_Style);
float corner_radius = 0.f;
if (shield_bounds.width() < width()) {
- paint.setAntiAlias(true);
+ flags.setAntiAlias(true);
corner_radius = kBackgroundCornerRadius;
}
- canvas->DrawRoundRect(shield_bounds, corner_radius, paint);
+ canvas->DrawRoundRect(shield_bounds, corner_radius, flags);
}
View* GetInitiallyFocusedView() override {
« no previous file with comments | « ash/common/wm/panels/panel_layout_manager.cc ('k') | ash/laser/laser_pointer_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698