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

Unified Diff: chrome/browser/ui/views/create_application_shortcut_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/create_application_shortcut_view.cc
diff --git a/chrome/browser/ui/views/create_application_shortcut_view.cc b/chrome/browser/ui/views/create_application_shortcut_view.cc
index e5cb9b2b730b9f7a1edfa0fb9b43311ba2bde95a..bff826ccb08c5173f763a9f83f3f334b02a102cc 100644
--- a/chrome/browser/ui/views/create_application_shortcut_view.cc
+++ b/chrome/browser/ui/views/create_application_shortcut_view.cc
@@ -35,7 +35,6 @@
#include "net/url_request/url_request.h"
#include "skia/ext/image_operations.h"
#include "third_party/skia/include/core/SkBitmap.h"
-#include "third_party/skia/include/core/SkPaint.h"
#include "third_party/skia/include/core/SkRect.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/layout.h"
@@ -184,12 +183,12 @@ void AppInfoView::OnPaint(gfx::Canvas* canvas) {
SkIntToScalar(bounds.bottom())
};
- cc::PaintFlags border_paint;
- border_paint.setAntiAlias(true);
- border_paint.setARGB(0xFF, 0xC8, 0xC8, 0xC8);
+ cc::PaintFlags border_flags;
+ border_flags.setAntiAlias(true);
+ border_flags.setARGB(0xFF, 0xC8, 0xC8, 0xC8);
canvas->sk_canvas()->drawRoundRect(border_rect, SkIntToScalar(2),
- SkIntToScalar(2), border_paint);
+ SkIntToScalar(2), border_flags);
SkRect inner_rect = {
border_rect.fLeft + SkDoubleToScalar(0.5),
@@ -198,11 +197,11 @@ void AppInfoView::OnPaint(gfx::Canvas* canvas) {
border_rect.fBottom - SkDoubleToScalar(0.5),
};
- cc::PaintFlags inner_paint;
- inner_paint.setAntiAlias(true);
- inner_paint.setARGB(0xFF, 0xF8, 0xF8, 0xF8);
+ cc::PaintFlags inner_flags;
+ inner_flags.setAntiAlias(true);
+ inner_flags.setARGB(0xFF, 0xF8, 0xF8, 0xF8);
canvas->sk_canvas()->drawRoundRect(inner_rect, SkDoubleToScalar(1.5),
- SkDoubleToScalar(1.5), inner_paint);
+ SkDoubleToScalar(1.5), inner_flags);
}
} // namespace
« no previous file with comments | « chrome/browser/ui/libgtkui/native_theme_gtk2.cc ('k') | chrome/browser/ui/views/download/download_item_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698