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

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: Remove unnecessary curly braces 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
« no previous file with comments | « ui/views/controls/tabbed_pane/native_tabbed_pane_views.cc ('k') | ui/views/painter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/painter.h
diff --git a/ui/views/painter.h b/ui/views/painter.h
index a49cd1bb78d2fdacf49f51f9b32538fdf9487b9a..f430f4484088a93e201e3422def5d6131fbf6d62 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
+ // 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* CreateVerticalMultiColorGradient(SkColor* colors,
+ SkScalar* pos,
+ size_t count);
+
// 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
« no previous file with comments | « ui/views/controls/tabbed_pane/native_tabbed_pane_views.cc ('k') | ui/views/painter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698