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

Unified Diff: ui/views/views_delegate.cc

Issue 2671443002: Make the extra padding around VectorIconButtons configurable. (Closed)
Patch Set: Make sure Harmony close buttons stay in place Created 3 years, 11 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.cc
diff --git a/ui/views/views_delegate.cc b/ui/views/views_delegate.cc
index 3481102f57fc5b07d74b53e347a18b2fa12bb31d..c6eb9a0132d5cb8d276ca302c9c76405ca023311 100644
--- a/ui/views/views_delegate.cc
+++ b/ui/views/views_delegate.cc
@@ -148,6 +148,10 @@ gfx::Insets ViewsDelegate::GetBubbleDialogMargins() {
return gfx::Insets(kPanelVertMargin, kPanelHorizMargin);
}
+gfx::Insets ViewsDelegate::GetButtonPadding() const {
+ return gfx::Insets(kButtonExtraTouchSize);
+}
+
ViewsDelegate::ViewsDelegate()
: views_tsc_factory_(new ViewsTouchEditingControllerFactory) {
DCHECK(!views_delegate);
« ui/views/controls/button/vector_icon_button.cc ('K') | « ui/views/views_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698