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

Unified Diff: ui/views/border.h

Issue 2475033003: Add ability to specify extra insets for a view via its border. (Closed)
Patch Set: Created 4 years, 1 month 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 | « ash/common/system/user/user_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 d30cc7ca0b00e2882b2b5288d9b058a98fa3858d..3a52df514e55513aeaf35e92fe4c7f42632d37e9 100644
--- a/ui/views/border.h
+++ b/ui/views/border.h
@@ -73,6 +73,11 @@ class VIEWS_EXPORT Border {
int right,
SkColor color);
+ // Adds extra, unpainted insets to |border|.
sky 2016/11/03 19:24:49 This seems like a nice way to avoid changing all b
Evan Stade 2016/11/04 03:16:39 OK, I tried (I also tried some ASCII art but gave
+ static std::unique_ptr<Border> AddInteriorPadding(
+ std::unique_ptr<Border> border,
+ const gfx::Insets& insets);
+
// Creates a Border from the specified Painter.
// |insets| define size of an area allocated for a Border.
static std::unique_ptr<Border> CreateBorderPainter(
« no previous file with comments | « ash/common/system/user/user_view.cc ('k') | ui/views/border.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698