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

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

Issue 2563783002: ui + mus: Split ContextFactory into ContextFactory(Client) and ContextFactoryPrivate (Closed)
Patch Set: Restore mash Created 4 years 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/test/test_views_delegate.h ('k') | ui/views/test/test_views_delegate_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9cb171383ad807bad9a3fa9863e6ff95f9908dd9..cf4588af37e4d983d26aa35012078a03b27f49df 100644
--- a/ui/views/test/test_views_delegate_aura.cc
+++ b/ui/views/test/test_views_delegate_aura.cc
@@ -16,9 +16,9 @@ namespace views {
TestViewsDelegate::TestViewsDelegate()
: context_factory_(nullptr),
+ context_factory_private_(nullptr),
use_desktop_native_widgets_(false),
- use_transparent_windows_(false) {
-}
+ use_transparent_windows_(false) {}
TestViewsDelegate::~TestViewsDelegate() {
}
@@ -51,4 +51,12 @@ ui::ContextFactory* TestViewsDelegate::GetContextFactory() {
return nullptr;
}
+ui::ContextFactoryPrivate* TestViewsDelegate::GetContextFactoryPrivate() {
+ if (context_factory_private_)
+ return context_factory_private_;
+ if (aura::Env::GetInstance())
+ return aura::Env::GetInstance()->context_factory_private();
+ return nullptr;
+}
+
} // namespace views
« no previous file with comments | « ui/views/test/test_views_delegate.h ('k') | ui/views/test/test_views_delegate_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698