summaryrefslogtreecommitdiffstats
path: root/ui/views/border.h
diff options
context:
space:
mode:
authorsadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-26 18:23:04 +0000
committersadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-26 18:23:04 +0000
commitfa88fd91dd9ed3b57e7da4ad20670aedc7ca7099 (patch)
treef7cd77bb680f52e408e6e98a5b366b20f55a9efc /ui/views/border.h
parentf2cd61bfe6314f8b1157cd8a4d4fbb4bf695dc9a (diff)
downloadchromium_src-fa88fd91dd9ed3b57e7da4ad20670aedc7ca7099.zip
chromium_src-fa88fd91dd9ed3b57e7da4ad20670aedc7ca7099.tar.gz
chromium_src-fa88fd91dd9ed3b57e7da4ad20670aedc7ca7099.tar.bz2
views: A new kind of border to paint a colored-border on selected sides.
BUG=110130 TEST=none Review URL: https://chromiumcodereview.appspot.com/9464047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123694 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/border.h')
-rw-r--r--ui/views/border.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/views/border.h b/ui/views/border.h
index d28a523..a362fcc 100644
--- a/ui/views/border.h
+++ b/ui/views/border.h
@@ -48,6 +48,12 @@ class VIEWS_EXPORT Border {
// paint anything.
static Border* CreateEmptyBorder(int top, int left, int bottom, int right);
+ // Creates a border of the specified color, and specified thickness on each
+ // side.
+ static Border* CreateSolidSidedBorder(int top, int left,
+ int bottom, int right,
+ SkColor color);
+
// Creates a Border from the specified Painter. The border owns the painter,
// thus the painter is deleted when the Border is deleted.
static Border* CreateBorderPainter(Painter* painter);