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

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

Issue 11416251: Desktop aura: Continue threading context through views. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix erroneously removed line from NWWin tests. Created 8 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/views_test_base.h ('k') | ui/views/view_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/test/views_test_base.cc
diff --git a/ui/views/test/views_test_base.cc b/ui/views/test/views_test_base.cc
index 3d3fe6482413544159d1b522ad8745c3217c2848..ac0b49797bec6b6ead3e55755997ed0ef0638f0d 100644
--- a/ui/views/test/views_test_base.cc
+++ b/ui/views/test/views_test_base.cc
@@ -9,6 +9,7 @@
#if defined(USE_AURA)
#include "ui/aura/env.h"
+#include "ui/aura/root_window.h"
#include "ui/aura/test/aura_test_helper.h"
#endif
@@ -59,4 +60,14 @@ void ViewsTestBase::RunPendingMessages() {
run_loop.RunUntilIdle();
}
+Widget::InitParams ViewsTestBase::CreateParams(
+ Widget::InitParams::Type type) {
+ Widget::InitParams params(type);
+ params.ownership = views::Widget::InitParams::WIDGET_OWNS_NATIVE_WIDGET;
+#if defined(USE_AURA)
+ params.context = aura_test_helper_->root_window();
+#endif
+ return params;
+}
+
} // namespace views
« no previous file with comments | « ui/views/test/views_test_base.h ('k') | ui/views/view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698