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

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

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 | « chrome/browser/ui/views/chrome_views_delegate.cc ('k') | ui/views/test/test_views_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/test/test_views_delegate.h
diff --git a/ui/views/test/test_views_delegate.h b/ui/views/test/test_views_delegate.h
index 5d80e085e96de6a7e6773c3fbbcc553c88cf1bac..384d7ac5e11eb740329343200a0b2cb83df83ba7 100644
--- a/ui/views/test/test_views_delegate.h
+++ b/ui/views/test/test_views_delegate.h
@@ -30,16 +30,29 @@ class TestViewsDelegate : public ViewsDelegate {
use_transparent_windows_ = transparent;
}
+#if defined(USE_AURA)
+ void set_context_factory(ui::ContextFactory* context_factory) {
+ context_factory_ = context_factory;
+ }
+#endif
+
// ViewsDelegate:
virtual void OnBeforeWidgetInit(
Widget::InitParams* params,
internal::NativeWidgetDelegate* delegate) OVERRIDE;
+#if defined(USE_AURA)
+ virtual ui::ContextFactory* GetContextFactory() OVERRIDE;
+#endif
private:
bool use_desktop_native_widgets_;
+
bool use_transparent_windows_;
+
#if defined(USE_AURA)
scoped_ptr<wm::WMState> wm_state_;
+
+ ui::ContextFactory* context_factory_;
#endif
DISALLOW_COPY_AND_ASSIGN(TestViewsDelegate);
« no previous file with comments | « chrome/browser/ui/views/chrome_views_delegate.cc ('k') | ui/views/test/test_views_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698