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

Unified Diff: chrome/browser/ui/views/chrome_views_delegate.cc

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
Index: chrome/browser/ui/views/chrome_views_delegate.cc
diff --git a/chrome/browser/ui/views/chrome_views_delegate.cc b/chrome/browser/ui/views/chrome_views_delegate.cc
index fef73a45e373c2e634787a05d2ac5e7af25fff53..1d64de52ab773d95431ef50614d967ce6483a9ea 100644
--- a/chrome/browser/ui/views/chrome_views_delegate.cc
+++ b/chrome/browser/ui/views/chrome_views_delegate.cc
@@ -250,6 +250,11 @@ int ChromeViewsDelegate::GetButtonHorizontalPadding() const {
LayoutDelegate::Metric::BUTTON_HORIZONTAL_PADDING);
}
+gfx::Insets ChromeViewsDelegate::GetButtonMargins() const {
+ return gfx::Insets(
+ LayoutDelegate::Get()->GetMetric(LayoutDelegate::Metric::BUTTON_MARGIN));
+}
+
#if !defined(OS_CHROMEOS)
views::Widget::InitParams::WindowOpacity
ChromeViewsDelegate::GetOpacityForInitParams(
« no previous file with comments | « chrome/browser/ui/views/chrome_views_delegate.h ('k') | chrome/browser/ui/views/harmony/harmony_layout_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698