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

Unified Diff: ui/views/layout/grid_layout.cc

Issue 2779973003: views: fold layout_utils::CreatePanelLayout into GridLayout::CreatePanel (Closed)
Patch Set: remove old DEPS entry 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/uninstall_view.cc ('k') | ui/views/views_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/layout/grid_layout.cc
diff --git a/ui/views/layout/grid_layout.cc b/ui/views/layout/grid_layout.cc
index 135fe19022c7677ba77bcae7900f4df595275cd1..6de7a05a170c7f653be2c27487f0e42956c9f590 100644
--- a/ui/views/layout/grid_layout.cc
+++ b/ui/views/layout/grid_layout.cc
@@ -11,6 +11,7 @@
#include "base/memory/ptr_util.h"
#include "ui/views/layout/layout_constants.h"
#include "ui/views/view.h"
+#include "ui/views/views_delegate.h"
#include "ui/views/window/dialog_delegate.h"
namespace views {
@@ -651,8 +652,9 @@ GridLayout::~GridLayout() {
// static
GridLayout* GridLayout::CreatePanel(View* host) {
GridLayout* layout = new GridLayout(host);
- layout->SetInsets(kPanelVertMargin, kButtonHEdgeMarginNew,
- kPanelVertMargin, kButtonHEdgeMarginNew);
+ layout->SetInsets(
+ ViewsDelegate::GetInstance()->GetInsetsMetric(InsetsMetric::PANEL));
+ host->SetLayoutManager(layout);
return layout;
}
« no previous file with comments | « chrome/browser/ui/views/uninstall_view.cc ('k') | ui/views/views_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698