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

Unified Diff: content/shell/minimal_ash.cc

Issue 11614037: Call ShowRootWindow on NativeWindow's RootWindow to display the window. (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Reworked patch. Created 7 years, 11 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
Index: content/shell/minimal_ash.cc
diff --git a/content/shell/minimal_ash.cc b/content/shell/minimal_ash.cc
index e1ff94abd8d95b426521059c8a7c93b9ae8d9c96..ccda9fe4082ae7ec14c4d1014f305da992ca6c39 100644
--- a/content/shell/minimal_ash.cc
+++ b/content/shell/minimal_ash.cc
@@ -13,9 +13,11 @@
namespace content {
-MinimalAsh::MinimalAsh() {
+MinimalAsh::MinimalAsh(gfx::Size default_window_size) {
root_window_.reset(new aura::RootWindow(
- aura::RootWindow::CreateParams(gfx::Rect(100, 100))));
+ aura::RootWindow::CreateParams(
+ gfx::Rect(default_window_size.width(),
sky 2013/01/23 22:12:10 There is a constructor that takes a Size.
Nayan 2013/01/23 22:23:10 Done.
+ default_window_size.height()))));
root_window_->Init();
aura::client::SetStackingClient(root_window_.get(), this);

Powered by Google App Engine
This is Rietveld 408576698