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

Unified Diff: chrome/browser/ui/views/harmony/layout_delegate.cc

Issue 2744463002: Add VectorIconButton functionality to ImageButton. (Closed)
Patch Set: wip: address high-level comments 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/harmony/layout_delegate.cc
diff --git a/chrome/browser/ui/views/harmony/layout_delegate.cc b/chrome/browser/ui/views/harmony/layout_delegate.cc
index 79d88b025d46793b2f222bb49774826f079f2359..e5223ee75a7ec3c8bd510cdde9a8af431242c4ca 100644
--- a/chrome/browser/ui/views/harmony/layout_delegate.cc
+++ b/chrome/browser/ui/views/harmony/layout_delegate.cc
@@ -26,6 +26,8 @@ int LayoutDelegate::GetMetric(Metric metric) const {
case Metric::BUTTON_HORIZONTAL_PADDING:
return ChromeViewsDelegate::GetInstance()->GetDefaultDistanceMetric(
views::DistanceMetric::BUTTON_HORIZONTAL_PADDING);
+ case Metric::BUTTON_MARGIN:
+ return views::kButtonExtraTouchSize;
case Metric::BUTTON_MAX_LINKABLE_WIDTH:
return 0; // Buttons never expand during layout (add padding instead).
case Metric::BUTTON_MINIMUM_WIDTH:

Powered by Google App Engine
This is Rietveld 408576698