| Index: ash/wm/system_modal_container_layout_manager_unittest.cc
|
| diff --git a/ash/wm/system_modal_container_layout_manager_unittest.cc b/ash/wm/system_modal_container_layout_manager_unittest.cc
|
| index af7c4f3472b0431f60fed48219e0117899219335..a150ef62225d0e5b1fc51f76148b9c914f500a63 100644
|
| --- a/ash/wm/system_modal_container_layout_manager_unittest.cc
|
| +++ b/ash/wm/system_modal_container_layout_manager_unittest.cc
|
| @@ -29,7 +29,7 @@ namespace {
|
|
|
| aura::Window* GetModalContainer() {
|
| return Shell::GetPrimaryRootWindowController()->GetContainer(
|
| - ash::internal::kShellWindowId_SystemModalContainer);
|
| + ash::kShellWindowId_SystemModalContainer);
|
| }
|
|
|
| bool AllRootWindowsHaveModalBackgroundsForContainer(int container_id) {
|
| @@ -38,21 +38,20 @@ bool AllRootWindowsHaveModalBackgroundsForContainer(int container_id) {
|
| bool has_modal_screen = !containers.empty();
|
| for (std::vector<aura::Window*>::iterator iter = containers.begin();
|
| iter != containers.end(); ++iter) {
|
| - has_modal_screen &=
|
| - static_cast<internal::SystemModalContainerLayoutManager*>(
|
| - (*iter)->layout_manager())->has_modal_background();
|
| + has_modal_screen &= static_cast<SystemModalContainerLayoutManager*>(
|
| + (*iter)->layout_manager())->has_modal_background();
|
| }
|
| return has_modal_screen;
|
| }
|
|
|
| bool AllRootWindowsHaveLockedModalBackgrounds() {
|
| return AllRootWindowsHaveModalBackgroundsForContainer(
|
| - internal::kShellWindowId_LockSystemModalContainer);
|
| + kShellWindowId_LockSystemModalContainer);
|
| }
|
|
|
| bool AllRootWindowsHaveModalBackgrounds() {
|
| return AllRootWindowsHaveModalBackgroundsForContainer(
|
| - internal::kShellWindowId_SystemModalContainer);
|
| + kShellWindowId_SystemModalContainer);
|
| }
|
|
|
| class TestWindow : public views::WidgetDelegateView {
|
| @@ -313,7 +312,7 @@ TEST_F(SystemModalContainerLayoutManagerTest, EventFocusContainers) {
|
| EventTestWindow* lock_delegate = new EventTestWindow(false);
|
| scoped_ptr<aura::Window> lock(lock_delegate->OpenTestWindowWithParent(
|
| Shell::GetPrimaryRootWindowController()->GetContainer(
|
| - ash::internal::kShellWindowId_LockScreenContainer)));
|
| + ash::kShellWindowId_LockScreenContainer)));
|
| EXPECT_TRUE(wm::IsActiveWindow(lock.get()));
|
| e1.ClickLeftButton();
|
| EXPECT_EQ(1, lock_delegate->mouse_presses());
|
| @@ -338,8 +337,10 @@ TEST_F(SystemModalContainerLayoutManagerTest, EventFocusContainers) {
|
| // is hidden.
|
| TEST_F(SystemModalContainerLayoutManagerTest, ShowModalWhileHidden) {
|
| // Hide the lock screen.
|
| - Shell::GetPrimaryRootWindowController()->GetContainer(
|
| - internal::kShellWindowId_SystemModalContainer)->layer()->SetOpacity(0);
|
| + Shell::GetPrimaryRootWindowController()
|
| + ->GetContainer(kShellWindowId_SystemModalContainer)
|
| + ->layer()
|
| + ->SetOpacity(0);
|
|
|
| // Create a modal window.
|
| scoped_ptr<aura::Window> parent(OpenToplevelTestWindow(false));
|
| @@ -409,7 +410,7 @@ TEST_F(SystemModalContainerLayoutManagerTest, ShowNormalBackgroundOrLocked) {
|
| BlockUserSession(static_cast<UserSessionBlockReason>(block_reason));
|
| scoped_ptr<aura::Window> lock_parent(OpenTestWindowWithParent(
|
| Shell::GetPrimaryRootWindowController()->GetContainer(
|
| - ash::internal::kShellWindowId_LockScreenContainer),
|
| + ash::kShellWindowId_LockScreenContainer),
|
| false));
|
| scoped_ptr<aura::Window> lock_modal_window(OpenTestWindowWithParent(
|
| lock_parent.get(), true));
|
| @@ -447,9 +448,9 @@ TEST_F(SystemModalContainerLayoutManagerTest, MultiDisplays) {
|
| aura::Window::Windows root_windows = Shell::GetAllRootWindows();
|
| EXPECT_EQ(2U, root_windows.size());
|
| aura::Window* container1 = Shell::GetContainer(
|
| - root_windows[0], ash::internal::kShellWindowId_SystemModalContainer);
|
| + root_windows[0], ash::kShellWindowId_SystemModalContainer);
|
| aura::Window* container2 = Shell::GetContainer(
|
| - root_windows[1], ash::internal::kShellWindowId_SystemModalContainer);
|
| + root_windows[1], ash::kShellWindowId_SystemModalContainer);
|
|
|
| scoped_ptr<aura::Window> modal1(
|
| OpenTestWindowWithParent(container1, true));
|
|
|