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

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

Issue 2758323002: Broke out layout metric information from ViewsDelegate to LayoutProvider (Closed)
Patch Set: Final feedback addressed Created 3 years, 8 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 | « ui/views/examples/dialog_example.cc ('k') | ui/views/layout/layout_provider.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 6de7a05a170c7f653be2c27487f0e42956c9f590..9704ac5c73065c831c7baa52f86674a32574dacf 100644
--- a/ui/views/layout/grid_layout.cc
+++ b/ui/views/layout/grid_layout.cc
@@ -10,8 +10,8 @@
#include "base/macros.h"
#include "base/memory/ptr_util.h"
#include "ui/views/layout/layout_constants.h"
+#include "ui/views/layout/layout_provider.h"
#include "ui/views/view.h"
-#include "ui/views/views_delegate.h"
#include "ui/views/window/dialog_delegate.h"
namespace views {
@@ -652,8 +652,7 @@ GridLayout::~GridLayout() {
// static
GridLayout* GridLayout::CreatePanel(View* host) {
GridLayout* layout = new GridLayout(host);
- layout->SetInsets(
- ViewsDelegate::GetInstance()->GetInsetsMetric(InsetsMetric::PANEL));
+ layout->SetInsets(LayoutProvider::Get()->GetInsetsMetric(INSETS_PANEL));
host->SetLayoutManager(layout);
return layout;
}
« no previous file with comments | « ui/views/examples/dialog_example.cc ('k') | ui/views/layout/layout_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698