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

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

Issue 284233009: Adds ViewsDelegate::GetContextFactory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more spaces Created 6 years, 7 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/test/test_views_delegate.h ('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/test/test_views_delegate.cc
diff --git a/ui/views/test/test_views_delegate.cc b/ui/views/test/test_views_delegate.cc
index 0d437ea64e28ba23611cfd3e9de14abddadbde39..7a4b78d8487432122f6b870a537301b56e09300e 100644
--- a/ui/views/test/test_views_delegate.cc
+++ b/ui/views/test/test_views_delegate.cc
@@ -15,7 +15,11 @@ namespace views {
TestViewsDelegate::TestViewsDelegate()
: use_desktop_native_widgets_(false),
- use_transparent_windows_(false) {
+ use_transparent_windows_(false)
+#if defined(USE_AURA)
+ , context_factory_(NULL)
+#endif
+ {
DCHECK(!ViewsDelegate::views_delegate);
ViewsDelegate::views_delegate = this;
#if defined(USE_AURA)
@@ -42,4 +46,10 @@ void TestViewsDelegate::OnBeforeWidgetInit(
#endif // !defined(OS_CHROMEOS)
}
+#if defined(USE_AURA)
+ui::ContextFactory* TestViewsDelegate::GetContextFactory() {
+ return context_factory_;
+}
+#endif
+
} // namespace views
« no previous file with comments | « ui/views/test/test_views_delegate.h ('k') | ui/views/views_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698