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

Unified Diff: ui/views/border.h

Issue 2718533004: Add SolidSidedWidgetBorder
Patch Set: Created 3 years, 10 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 | « chrome/browser/ui/views/autofill/autofill_popup_base_view.cc ('k') | ui/views/border.cc » ('j') | no next file with comments »
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 2204b90a149c6be0ae4877ec50fd92834d10f122..56cf1bf211ca4bf5cfe661d05c57dafab7f4fb39 100644
--- a/ui/views/border.h
+++ b/ui/views/border.h
@@ -68,6 +68,12 @@ VIEWS_EXPORT std::unique_ptr<Border> NullBorder();
VIEWS_EXPORT std::unique_ptr<Border> CreateSolidBorder(int thickness,
SkColor color);
+// Creates a border that is a simple line of the specified thickness and color,
+// using rounding that works well for views that are painted directly to a
+// a widget.
+VIEWS_EXPORT std::unique_ptr<Border> CreateSolidWidgetBorder(int thickness,
+ SkColor color);
+
// Creates a border that is a rounded rectangle of the specified thickness and
// color.
VIEWS_EXPORT std::unique_ptr<Border> CreateRoundedRectBorder(int thickness,
« no previous file with comments | « chrome/browser/ui/views/autofill/autofill_popup_base_view.cc ('k') | ui/views/border.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698