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

Unified Diff: ui/views/border.h

Issue 1428623005: views::Border: Added CreateRoundedRectBorder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@boxlayout-collapse_when_hidden
Patch Set: Fix GetMinimumSize. Created 5 years, 2 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/border.cc » ('j') | ui/views/border.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/border.h
diff --git a/ui/views/border.h b/ui/views/border.h
index e2f7be61cff5965eb03e0132ab6b879afbf9f467..6bbcec70356f5e63b90ef04cad1ab9f521e58d09 100644
--- a/ui/views/border.h
+++ b/ui/views/border.h
@@ -49,6 +49,12 @@ class VIEWS_EXPORT Border {
// color.
static scoped_ptr<Border> CreateSolidBorder(int thickness, SkColor color);
+ // Creates a border that is a rounded rectangle of the specified thickness and
+ // color.
+ static scoped_ptr<Border> CreateRoundedRectBorder(int thickness,
+ int corner_radius,
+ SkColor color);
+
// Creates a border for reserving space. The returned border does not
// paint anything.
static scoped_ptr<Border> CreateEmptyBorder(const gfx::Insets& insets);
« no previous file with comments | « no previous file | ui/views/border.cc » ('j') | ui/views/border.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698