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

Unified Diff: ui/views/mus/aura_init.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/layout/layout_provider.cc ('k') | ui/views/style/typography.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/aura_init.cc
diff --git a/ui/views/mus/aura_init.cc b/ui/views/mus/aura_init.cc
index fe7406ccf782b713366af090c6bb3c01baa2a31f..7f73dc190f410c7ca759ac28be41f692f7b3c29e 100644
--- a/ui/views/mus/aura_init.cc
+++ b/ui/views/mus/aura_init.cc
@@ -19,6 +19,7 @@
#include "ui/base/material_design/material_design_controller.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/base/ui_base_paths.h"
+#include "ui/views/layout/layout_provider.h"
#include "ui/views/mus/mus_client.h"
#include "ui/views/style/typography_provider.h"
#include "ui/views/views_delegate.h"
@@ -44,11 +45,7 @@ class MusViewsDelegate : public ViewsDelegate {
Widget::InitParams* params,
internal::NativeWidgetDelegate* delegate) override {}
- const TypographyProvider& GetTypographyProvider() const override {
- return typography_provider_;
- }
-
- DefaultTypographyProvider typography_provider_;
+ LayoutProvider layout_provider_;
DISALLOW_COPY_AND_ASSIGN(MusViewsDelegate);
};
« no previous file with comments | « ui/views/layout/layout_provider.cc ('k') | ui/views/style/typography.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698