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

Unified Diff: ui/views/background.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
« no previous file with comments | « no previous file | ui/views/background.cc » ('j') | ui/views/controls/tabbed_pane/native_tabbed_pane_views.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/background.h
diff --git a/ui/views/background.h b/ui/views/background.h
index 17704910dcfa7e647c6ef95c56cf95f7308791d5..db650b63d50a145559cf71a6e51900cc6ea2f9aa 100644
--- a/ui/views/background.h
+++ b/ui/views/background.h
@@ -59,6 +59,15 @@ class VIEWS_EXPORT Background {
static Background* CreateVerticalGradientBackground(SkColor color1,
SkColor color2);
+ // Creates a background that containa a vertical gradient. The gradient can
msw 2012/08/08 23:13:53 nit: contains
markusheintz_ 2012/08/09 01:00:15 Done.
+ // have multiple |colors|. The |pos| array contains the relative positions of
+ // each corresponding color. |colors| and |pos| must be the same size. The
+ // first element in |pos| must be 0.0 and the last element must be 1.0.
+ // |count| contains the number of elements in |colors| and |pos|.
+ static Background* CreateVerticalMultiColorGradientBackground(SkColor* colors,
+ SkScalar* pos,
+ int count);
msw 2012/08/08 23:13:53 nit: use size_t?
markusheintz_ 2012/08/09 01:00:15 Done.
+
// Creates Chrome's standard panel background
static Background* CreateStandardPanelBackground();
« no previous file with comments | « no previous file | ui/views/background.cc » ('j') | ui/views/controls/tabbed_pane/native_tabbed_pane_views.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698