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

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

Issue 2783023002: Use an InsetMetric instead of a constant for vector button padding. (Closed)
Patch Set: revert the stuff that got mixed in from another patch 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: 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 9f5c82dc86c4fd8a387099e21c780b3199af7ed9..cba7d894e4a81b55a41dbb03be52cf1b9b9a0fe2 100644
--- a/chrome/browser/ui/views/chrome_views_delegate.cc
+++ b/chrome/browser/ui/views/chrome_views_delegate.cc
@@ -231,6 +231,9 @@ gfx::Insets ChromeViewsDelegate::GetInsetsMetric(
case views::InsetsMetric::BUBBLE_DIALOG:
return gfx::Insets(layout_delegate->GetMetric(
LayoutDelegate::Metric::PANEL_CONTENT_MARGIN));
+ case views::InsetsMetric::VECTOR_IMAGE_BUTTON_PADDING:
+ return gfx::Insets(layout_delegate->GetMetric(
+ LayoutDelegate::Metric::VECTOR_IMAGE_BUTTON_PADDING));
}
NOTREACHED();
return gfx::Insets();
« no previous file with comments | « no previous file | chrome/browser/ui/views/harmony/harmony_layout_delegate.cc » ('j') | ui/views/layout/layout_constants.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698