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

Unified Diff: chrome/browser/ui/views/chrome_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: 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 88741a15dc8edce8caa5472b33bda44f58baf480..6c2ea361b87b617933cfd0c1ff385bd6be43373f 100644
--- a/chrome/browser/ui/views/chrome_views_delegate.cc
+++ b/chrome/browser/ui/views/chrome_views_delegate.cc
@@ -574,6 +574,11 @@ gfx::Insets ChromeViewsDelegate::GetBubbleDialogMargins() {
return ViewsDelegate::GetBubbleDialogMargins();
}
+gfx::Insets ChromeViewsDelegate::GetButtonPadding() const {
+ return gfx::Insets(LayoutDelegate::Get()->GetMetric(
+ LayoutDelegate::Metric::BUTTON_PADDING));
+}
+
#if !defined(USE_ASH)
views::Widget::InitParams::WindowOpacity
ChromeViewsDelegate::GetOpacityForInitParams(

Powered by Google App Engine
This is Rietveld 408576698