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

Unified Diff: ui/views/views_delegate.h

Issue 2744463002: Add VectorIconButton functionality to ImageButton. (Closed)
Patch Set: wip: address high-level comments Created 3 years, 9 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
Index: ui/views/views_delegate.h
diff --git a/ui/views/views_delegate.h b/ui/views/views_delegate.h
index 04324b50a4edba52b08125bd4bd80a32b436a015..b0ea070b3f991554a67f955622d1dfbd8073f983 100644
--- a/ui/views/views_delegate.h
+++ b/ui/views/views_delegate.h
@@ -252,6 +252,9 @@ class VIEWS_EXPORT ViewsDelegate {
// enumeration element.
virtual int GetDistanceMetric(DistanceMetric metric) const;
+ // Returns the margins that should be placed around a button's content.
+ virtual gfx::Insets GetButtonMargins() const;
+
protected:
ViewsDelegate();

Powered by Google App Engine
This is Rietveld 408576698