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

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

Issue 2696263002: Refactor ViewsDelegate and MD-ify the icon-to-text spacing for checkbox and radiobutton (Closed)
Patch Set: Merged with latest changes. 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/harmony/harmony_layout_delegate.cc
diff --git a/chrome/browser/ui/views/harmony/harmony_layout_delegate.cc b/chrome/browser/ui/views/harmony/harmony_layout_delegate.cc
index fa98a1c3ce9da7b6f86fe601797c65773f698ebf..6985e7b36e55ebfc9a0ab60aeafd78a20b5607dc 100644
--- a/chrome/browser/ui/views/harmony/harmony_layout_delegate.cc
+++ b/chrome/browser/ui/views/harmony/harmony_layout_delegate.cc
@@ -32,6 +32,8 @@ int HarmonyLayoutDelegate::GetMetric(Metric metric) const {
// TODO(pkasting): The "- 4" here is a hack that matches the extra padding
// in vector_icon_button.cc and should be removed when that padding is.
return (kHarmonyLayoutUnit / 2) - 4;
+ case Metric::ICON_TEXT_SPACING:
+ return kHarmonyLayoutUnit;
case Metric::PANEL_CONTENT_MARGIN:
return kHarmonyLayoutUnit;
case Metric::RELATED_BUTTON_HORIZONTAL_SPACING:

Powered by Google App Engine
This is Rietveld 408576698