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

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

Issue 2663013003: Rename various LayoutDelegate types/functions for brevity and consistency. (Closed)
Patch Set: Created 3 years, 11 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/layout_utils.cc
diff --git a/chrome/browser/ui/views/layout_utils.cc b/chrome/browser/ui/views/layout_utils.cc
index e6d6cce0924006ae7171fb8a15ae55284e467a64..27b2c0885c95cc9b42d2ff7190b74e344fd44962 100644
--- a/chrome/browser/ui/views/layout_utils.cc
+++ b/chrome/browser/ui/views/layout_utils.cc
@@ -13,10 +13,8 @@ views::GridLayout* CreatePanelLayout(views::View* host) {
views::GridLayout* layout = new views::GridLayout(host);
LayoutDelegate* delegate = LayoutDelegate::Get();
layout->SetInsets(gfx::Insets(
- delegate->GetLayoutDistance(
- LayoutDelegate::LayoutDistanceType::PANEL_CONTENT_MARGIN),
- delegate->GetLayoutDistance(
- LayoutDelegate::LayoutDistanceType::DIALOG_BUTTON_MARGIN)));
+ delegate->GetMetric(LayoutDelegate::Metric::PANEL_CONTENT_MARGIN),
+ delegate->GetMetric(LayoutDelegate::Metric::DIALOG_BUTTON_MARGIN)));
host->SetLayoutManager(layout);
return layout;
}

Powered by Google App Engine
This is Rietveld 408576698