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

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

Issue 2753243002: Views/Harmony: Replace layout constants in chrome/browser/ui/views/extensions. (Closed)
Patch Set: Review 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
« no previous file with comments | « chrome/browser/ui/views/harmony/layout_delegate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9f5dad1e175abe692836ea344311bd536bbf88fe..9967dcbb45a0a82b8aa501b4ba4a1b2145f62f87 100644
--- a/chrome/browser/ui/views/harmony/layout_delegate.cc
+++ b/chrome/browser/ui/views/harmony/layout_delegate.cc
@@ -49,9 +49,13 @@ int LayoutDelegate::GetMetric(Metric metric) const {
case Metric::RELATED_CONTROL_HORIZONTAL_SPACING:
return ChromeViewsDelegate::GetDefaultDistanceMetric(
views::DistanceMetric::RELATED_CONTROL_HORIZONTAL);
+ case Metric::RELATED_CONTROL_HORIZONTAL_SPACING_SMALL:
+ return views::kRelatedControlSmallVerticalSpacing;
case Metric::RELATED_CONTROL_VERTICAL_SPACING:
return ChromeViewsDelegate::GetDefaultDistanceMetric(
views::DistanceMetric::RELATED_CONTROL_VERTICAL);
+ case Metric::RELATED_CONTROL_VERTICAL_SPACING_SMALL:
+ return views::kRelatedControlSmallVerticalSpacing;
case Metric::RELATED_LABEL_HORIZONTAL_SPACING:
return views::kItemLabelSpacing;
case Metric::SUBSECTION_HORIZONTAL_INDENT:
« no previous file with comments | « chrome/browser/ui/views/harmony/layout_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698