Panels on 2nd launcher: step1 
* Enable panel layout manager 
* Specify the bounds for callout widgets so that it's 
created within the same root window 
* Set the bounds so that the panel will be created 
in the current active display.
* Move panel windows when a display is disconnected.
* Added minimum tests 

In next CL, I'll add "click and move", plus more tests. 

BUG=166195
TEST=covered by test

Review URL: https://chromiumcodereview.appspot.com/12096057

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@179865 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/ash/root_window_controller_unittest.cc b/ash/root_window_controller_unittest.cc
index 09af6d3..6aef751f 100644
--- a/ash/root_window_controller_unittest.cc
+++ b/ash/root_window_controller_unittest.cc
@@ -176,6 +176,11 @@
   EXPECT_EQ(internal::kShellWindowId_UnparentedControlContainer,
             unparented_control->GetNativeView()->parent()->id());
 
+  aura::Window* panel = CreateTestWindowInShellWithDelegateAndType(
+      NULL, aura::client::WINDOW_TYPE_PANEL, 0, gfx::Rect(700, 100, 100, 100));
+  EXPECT_EQ(root_windows[1], panel->GetRootWindow());
+  EXPECT_EQ(internal::kShellWindowId_PanelContainer, panel->parent()->id());
+
   // Make sure a window that will delete itself when losing focus
   // will not crash.
   aura::WindowTracker tracker;
@@ -232,6 +237,10 @@
             unparented_control->GetNativeView()->GetRootWindow());
   EXPECT_EQ(internal::kShellWindowId_UnparentedControlContainer,
             unparented_control->GetNativeView()->parent()->id());
+
+  // Test if the panel has moved.
+  EXPECT_EQ(root_windows[0], panel->GetRootWindow());
+  EXPECT_EQ(internal::kShellWindowId_PanelContainer, panel->parent()->id());
 }
 
 #if defined(OS_WIN)