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

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

Issue 2702403010: Fix the absence of padding on some UI buttons. (Closed)
Patch Set: change switch 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 889ec1b29ef2d6ada70644c9c5f33a4c19515dab..3116c947b718459f008d19d1a824f18a4ff17cb9 100644
--- a/chrome/browser/ui/views/chrome_views_delegate.cc
+++ b/chrome/browser/ui/views/chrome_views_delegate.cc
@@ -588,6 +588,11 @@ gfx::Insets ChromeViewsDelegate::GetBubbleDialogMargins() const {
LayoutDelegate::Metric::PANEL_CONTENT_MARGIN));
}
+int ChromeViewsDelegate::GetButtonMinimumWidth() const {
+ return LayoutDelegate::Get()->GetMetric(
+ LayoutDelegate::Metric::BUTTON_MINIMUM_WIDTH);
+}
+
int ChromeViewsDelegate::GetDialogButtonMinimumWidth() const {
return LayoutDelegate::Get()->GetMetric(
LayoutDelegate::Metric::DIALOG_BUTTON_MINIMUM_WIDTH);

Powered by Google App Engine
This is Rietveld 408576698