diff options
author | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-11 00:12:39 +0000 |
---|---|---|
committer | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-11 00:12:39 +0000 |
commit | 7b0f750bf7b0ccd2f0962817bab1460342d113e9 (patch) | |
tree | 89809ac408028af8ecff717caf7673e33bdd0dc7 /ash/wm/system_modal_container_layout_manager_unittest.cc | |
parent | 7208e05ab641d7dbc83bfc2bf202d2ece0445a74 (diff) | |
download | chromium_src-7b0f750bf7b0ccd2f0962817bab1460342d113e9.zip chromium_src-7b0f750bf7b0ccd2f0962817bab1460342d113e9.tar.gz chromium_src-7b0f750bf7b0ccd2f0962817bab1460342d113e9.tar.bz2 |
Change GetContainer to take a root window
Update the use of GetContainer to use the correct root window.
BUG=123160
TEST=no functional change. all tests must pass.
Review URL: https://chromiumcodereview.appspot.com/10540076
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141384 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/wm/system_modal_container_layout_manager_unittest.cc')
-rw-r--r-- | ash/wm/system_modal_container_layout_manager_unittest.cc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/ash/wm/system_modal_container_layout_manager_unittest.cc b/ash/wm/system_modal_container_layout_manager_unittest.cc index 616cd1c..3eaa467 100644 --- a/ash/wm/system_modal_container_layout_manager_unittest.cc +++ b/ash/wm/system_modal_container_layout_manager_unittest.cc @@ -25,12 +25,14 @@ namespace test { namespace { aura::Window* GetModalContainer() { - return Shell::GetInstance()->GetContainer( + return Shell::GetContainer( + Shell::GetPrimaryRootWindow(), ash::internal::kShellWindowId_SystemModalContainer); } aura::Window* GetDefaultContainer() { - return Shell::GetInstance()->GetContainer( + return Shell::GetContainer( + Shell::GetPrimaryRootWindow(), ash::internal::kShellWindowId_DefaultContainer); } @@ -271,7 +273,8 @@ TEST_F(SystemModalContainerLayoutManagerTest, EventFocusContainers) { Shell::GetInstance()->delegate()->LockScreen(); EventTestWindow* lock_delegate = new EventTestWindow(false); scoped_ptr<aura::Window> lock(lock_delegate->OpenTestWindow( - Shell::GetInstance()->GetContainer( + Shell::GetContainer( + Shell::GetPrimaryRootWindow(), ash::internal::kShellWindowId_LockScreenContainer))); EXPECT_TRUE(wm::IsActiveWindow(lock.get())); e1.ClickLeftButton(); @@ -297,7 +300,8 @@ TEST_F(SystemModalContainerLayoutManagerTest, EventFocusContainers) { // is hidden. TEST_F(SystemModalContainerLayoutManagerTest, ShowModalWhileHidden) { // Hide the lock screen. - Shell::GetInstance()->GetContainer( + Shell::GetContainer( + Shell::GetPrimaryRootWindow(), internal::kShellWindowId_SystemModalContainer)->layer()->SetOpacity(0); // Create a modal window. |