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

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

Issue 2505973003: harmony: use Harmony sizing for ViewsDelegate sizing functions (Closed)
Patch Set: move constant Created 4 years, 1 month 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/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/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 4988344b98b6c323edd062d3ee036b95eab3363d..d9e41cb9f9e6da7ae3b6ff2836f185a61c0dace7 100644
--- a/chrome/browser/ui/views/harmony/harmony_layout_delegate.cc
+++ b/chrome/browser/ui/views/harmony/harmony_layout_delegate.cc
@@ -16,24 +16,23 @@ HarmonyLayoutDelegate* HarmonyLayoutDelegate::Get() {
}
int HarmonyLayoutDelegate::GetLayoutDistance(LayoutDistanceType type) const {
- const int kLayoutUnit = 16;
switch (type) {
case LayoutDistanceType::PANEL_VERT_MARGIN:
- return kLayoutUnit;
+ return kHarmonyLayoutUnit;
case LayoutDistanceType::RELATED_BUTTON_HORIZONTAL_SPACING:
- return kLayoutUnit / 2;
+ return kHarmonyLayoutUnit / 2;
case LayoutDistanceType::RELATED_CONTROL_HORIZONTAL_SPACING:
- return kLayoutUnit;
+ return kHarmonyLayoutUnit;
case LayoutDistanceType::RELATED_CONTROL_VERTICAL_SPACING:
- return kLayoutUnit / 2;
+ return kHarmonyLayoutUnit / 2;
case LayoutDistanceType::UNRELATED_CONTROL_VERTICAL_SPACING:
- return kLayoutUnit;
+ return kHarmonyLayoutUnit;
case LayoutDistanceType::UNRELATED_CONTROL_LARGE_VERTICAL_SPACING:
- return kLayoutUnit;
+ return kHarmonyLayoutUnit;
case LayoutDistanceType::BUTTON_VEDGE_MARGIN_NEW:
- return kLayoutUnit;
+ return kHarmonyLayoutUnit;
case LayoutDistanceType::BUTTON_HEDGE_MARGIN_NEW:
- return kLayoutUnit;
+ return kHarmonyLayoutUnit;
}
NOTREACHED();
return 0;
« no previous file with comments | « chrome/browser/ui/views/harmony/harmony_layout_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698