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

Unified Diff: apps/shell/browser/shell_desktop_controller.cc

Issue 345603003: aura: Allow specifying the size of TestScreen when creating it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | « no previous file | athena/test/athena_test_helper.cc » ('j') | content/shell/browser/shell_views.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/shell/browser/shell_desktop_controller.cc
diff --git a/apps/shell/browser/shell_desktop_controller.cc b/apps/shell/browser/shell_desktop_controller.cc
index 2db85b792b12225ceeab2e7037ebd9fe48b382b2..5c90db0ca7da37c790725a02b860c6d50ab5b418 100644
--- a/apps/shell/browser/shell_desktop_controller.cc
+++ b/apps/shell/browser/shell_desktop_controller.cc
@@ -224,16 +224,16 @@ void ShellDesktopController::OnHostCloseRequested(
}
void ShellDesktopController::CreateRootWindow() {
- test_screen_.reset(aura::TestScreen::Create());
- // TODO(jamescook): Replace this with a real Screen implementation.
- gfx::Screen::SetScreenInstance(gfx::SCREEN_TYPE_NATIVE, test_screen_.get());
- // TODO(mukai): Set up input method.
-
// Set up basic pieces of ui::wm.
gfx::Size size = GetPrimaryDisplaySize();
if (size.IsEmpty())
size = gfx::Size(1366, 768);
+ test_screen_.reset(aura::TestScreen::Create(size));
+ // TODO(jamescook): Replace this with a real Screen implementation.
+ gfx::Screen::SetScreenInstance(gfx::SCREEN_TYPE_NATIVE, test_screen_.get());
+ // TODO(mukai): Set up input method.
+
host_.reset(aura::WindowTreeHost::Create(gfx::Rect(size)));
host_->InitHost();
aura::client::SetWindowTreeClient(host_->window(), this);
« no previous file with comments | « no previous file | athena/test/athena_test_helper.cc » ('j') | content/shell/browser/shell_views.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698