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

Unified Diff: chrome/browser/ui/views/infobars/infobar_background.cc

Issue 752853005: Remove dependency from infobars component to the embedder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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/infobars/infobar_background.cc
diff --git a/chrome/browser/ui/views/infobars/infobar_background.cc b/chrome/browser/ui/views/infobars/infobar_background.cc
index 09e4191eece28f97e591e56e76a016a04ec99c3e..7cc5e3906107aea8713fb4e8bbddc6d23adee0b0 100644
--- a/chrome/browser/ui/views/infobars/infobar_background.cc
+++ b/chrome/browser/ui/views/infobars/infobar_background.cc
@@ -32,7 +32,7 @@ void InfoBarBackground::Paint(gfx::Canvas* canvas, views::View* view) const {
SkGradientShader::CreateLinear(gradient_points, gradient_colors, NULL, 2,
SkShader::kClamp_TileMode));
SkPaint paint;
- paint.setStrokeWidth(SkIntToScalar(infobars::InfoBar::kSeparatorLineHeight));
+ paint.setStrokeWidth(SkIntToScalar(infobars::InfoBar::gSeparatorLineHeight));
paint.setStyle(SkPaint::kFill_Style);
paint.setStrokeCap(SkPaint::kRound_Cap);
paint.setShader(gradient_shader.get());
@@ -54,7 +54,7 @@ void InfoBarBackground::Paint(gfx::Canvas* canvas, views::View* view) const {
// Now draw the separator at the bottom.
canvas->FillRect(
- gfx::Rect(0, view->height() - infobars::InfoBar::kSeparatorLineHeight,
- view->width(), infobars::InfoBar::kSeparatorLineHeight),
+ gfx::Rect(0, view->height() - infobars::InfoBar::gSeparatorLineHeight,
+ view->width(), infobars::InfoBar::gSeparatorLineHeight),
separator_color_);
}
« no previous file with comments | « chrome/browser/ui/views/infobars/extension_infobar.cc ('k') | chrome/browser/ui/views/infobars/infobar_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698