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

Unified Diff: ui/views/painter.h

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: Complete a comment in painter.h. 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/painter.h
diff --git a/ui/views/painter.h b/ui/views/painter.h
index a49cd1bb78d2fdacf49f51f9b32538fdf9487b9a..50076350fbb39e89f69edc3b6eb122b75cccafa2 100644
--- a/ui/views/painter.h
+++ b/ui/views/painter.h
@@ -35,6 +35,14 @@ class VIEWS_EXPORT Painter {
static Painter* CreateHorizontalGradient(SkColor c1, SkColor c2);
static Painter* CreateVerticalGradient(SkColor c1, SkColor c2);
+ // Creates a painter that draws a multi color gradient. |colors| contains the
msw 2012/08/08 23:13:53 nit: multi-color
markusheintz_ 2012/08/09 01:00:15 Done.
+ // gradient colors and |pos| the relative positions of the colors. The first
+ // element in |pos| must be 0.0 and the last element 1.0. |count| contains
+ // the number of elements in |colors| and |pos|.
+ static Painter* CreateVerticalGradientRange(SkColor* colors,
+ SkScalar* pos,
+ int count);
msw 2012/08/08 23:13:53 nit: ditto for size_t
markusheintz_ 2012/08/09 01:00:15 Done.
+
// Creates a painter that divides |image| into nine regions. The four corners
// are rendered at the size specified in insets (for example, the upper
// left corners is rendered at 0x0 with a size of

Powered by Google App Engine
This is Rietveld 408576698