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

Unified Diff: ui/views/background.cc

Issue 10823229: (Views only) Add a gradient background to the tabstrip of the view tabbed pane implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 8 years, 4 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: ui/views/background.cc
diff --git a/ui/views/background.cc b/ui/views/background.cc
index 74d2fdaf5732616b3e0fd352b509df111b2a952b..98416e8b7794f0a7c6ba5e59aed0bb70214345d4 100644
--- a/ui/views/background.cc
+++ b/ui/views/background.cc
@@ -114,6 +114,17 @@ Background* Background::CreateVerticalGradientBackground(SkColor color1,
}
//static
+Background* Background::CreateVerticalGradientRangeBackground(
+ SkColor color1, SkColor color2, float start, float end) {
msw 2012/08/08 17:12:20 nit: one param per line
markusheintz_ 2012/08/08 21:53:55 Done.
+ Background* background = CreateBackgroundPainter(
+ true, Painter::CreateVerticalGradientRange(color1, color2, start, end));
+ background->SetNativeControlColor(
+ color_utils::AlphaBlend(color1, color2, 128));
+
+ return background;
+}
+
+//static
Background* Background::CreateBackgroundPainter(bool owns_painter,
Painter* painter) {
return new BackgroundPainter(owns_painter, painter);

Powered by Google App Engine
This is Rietveld 408576698