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

Unified Diff: athena/test/athena_test_base.cc

Issue 465983002: Add shoftcut (ctrl-f6) to toggle split view (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | « athena/test/athena_test_base.h ('k') | athena/wm/split_view_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/test/athena_test_base.cc
diff --git a/athena/test/athena_test_base.cc b/athena/test/athena_test_base.cc
index 8ddc437e7ae543ff4b6a82cfbaad023062d2f31b..cbe812ccc900e23fe757cbdfebcaa834277b88c8 100644
--- a/athena/test/athena_test_base.cc
+++ b/athena/test/athena_test_base.cc
@@ -4,8 +4,11 @@
#include "athena/test/athena_test_base.h"
+#include "athena/screen/public/screen_manager.h"
#include "athena/test/athena_test_helper.h"
+#include "ui/aura/client/window_tree_client.h"
#include "ui/aura/test/event_generator_delegate_aura.h"
+#include "ui/aura/window.h"
#include "ui/compositor/test/context_factories_for_test.h"
#if defined(USE_X11)
@@ -59,5 +62,16 @@ void AthenaTestBase::RunAllPendingInMessageLoop() {
helper_->RunAllPendingInMessageLoop();
}
+scoped_ptr<aura::Window> AthenaTestBase::CreateTestWindow(
+ aura::WindowDelegate* delegate,
+ const gfx::Rect& bounds) {
+ scoped_ptr<aura::Window> window(new aura::Window(delegate));
+ window->SetType(ui::wm::WINDOW_TYPE_NORMAL);
+ window->Init(aura::WINDOW_LAYER_SOLID_COLOR);
+ aura::client::ParentWindowWithContext(
+ window.get(), ScreenManager::Get()->GetContext(), bounds);
+ return window.Pass();
+}
+
} // namespace test
} // namespace athena
« no previous file with comments | « athena/test/athena_test_base.h ('k') | athena/wm/split_view_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698