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

Unified Diff: content/shell/shell.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: Create RootWindowFirst 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/shell.cc
diff --git a/content/shell/shell.cc b/content/shell/shell.cc
index d4e68c04fa2d1dfecdb70af50e5d85e836a20472..b33f29bf32f9e121a992540933131296211f991e 100644
--- a/content/shell/shell.cc
+++ b/content/shell/shell.cc
@@ -30,9 +30,9 @@
#include "content/shell/shell_switches.h"
#include "content/shell/webkit_test_controller.h"
-// Content area size for newly created windows.
-static const int kTestWindowWidth = 800;
-static const int kTestWindowHeight = 600;
+#if defined(USE_AURA)
+#include "content/shell/shell_stacking_client_ash.h"
+#endif
namespace content {
@@ -127,6 +127,7 @@ Shell* Shell::CreateNewWindow(BrowserContext* browser_context,
create_params.initial_size = initial_size;
else
create_params.initial_size = gfx::Size(kTestWindowWidth, kTestWindowHeight);
+ create_params.context = Shell::stacking_client_->GetDefaultParent(NULL, NULL, gfx::Rect());
sky 2013/01/15 21:53:49 > 80
Nayan 2013/01/15 23:39:03 Done.
WebContents* web_contents = WebContents::Create(create_params);
Shell* shell = CreateShell(web_contents);
if (!url.is_empty())

Powered by Google App Engine
This is Rietveld 408576698