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

Unified Diff: ui/views/views_delegate.h

Issue 2671443002: Make the extra padding around VectorIconButtons configurable. (Closed)
Patch Set: Resync 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 | « ui/views/layout/layout_constants.h ('k') | ui/views/views_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/views_delegate.h
diff --git a/ui/views/views_delegate.h b/ui/views/views_delegate.h
index 7b3960f5c7c0a5be23772d6cc4b7d72f7064d5c2..0b8ff18c60fa95e9a2ca53ef507bd5712fb34e2c 100644
--- a/ui/views/views_delegate.h
+++ b/ui/views/views_delegate.h
@@ -228,6 +228,9 @@ class VIEWS_EXPORT ViewsDelegate {
// Returns the default padding to add on each side of a button's label.
virtual int GetButtonHorizontalPadding() const;
+ // Returns the margins that should be placed around a button's content.
+ virtual gfx::Insets GetButtonMargins() const;
+
protected:
ViewsDelegate();
« no previous file with comments | « ui/views/layout/layout_constants.h ('k') | ui/views/views_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698