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

Unified Diff: ui/views/test/test_views_delegate_aura.cc

Issue 2758323002: Broke out layout metric information from ViewsDelegate to LayoutProvider (Closed)
Patch Set: Deleted LayoutDelegate and HarmonyLayoutDelegate. 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
Index: ui/views/test/test_views_delegate_aura.cc
diff --git a/ui/views/test/test_views_delegate_aura.cc b/ui/views/test/test_views_delegate_aura.cc
index 6571971210c661720f8ab13142bdd4d8554f9c39..8acf5d7fa55375d5d82558af9f8aaf6841e2828d 100644
--- a/ui/views/test/test_views_delegate_aura.cc
+++ b/ui/views/test/test_views_delegate_aura.cc
@@ -18,7 +18,8 @@ TestViewsDelegate::TestViewsDelegate()
: context_factory_(nullptr),
context_factory_private_(nullptr),
use_desktop_native_widgets_(false),
- use_transparent_windows_(false) {}
+ use_transparent_windows_(false),
+ layout_delegate_(new ViewsLayoutDelegate()) {}
Peter Kasting 2017/04/04 02:08:56 Nit: Prefer calling MakeUnique to using raw new
kylix_rd 2017/04/04 20:28:23 Done.
TestViewsDelegate::~TestViewsDelegate() {
}
@@ -59,8 +60,4 @@ ui::ContextFactoryPrivate* TestViewsDelegate::GetContextFactoryPrivate() {
return nullptr;
}
-const TypographyProvider& TestViewsDelegate::GetTypographyProvider() const {
- return typography_provider_;
-}
-
} // namespace views

Powered by Google App Engine
This is Rietveld 408576698