| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ash/common/wm/workspace/workspace_layout_manager.h" | 5 #include "ash/common/wm/workspace/workspace_layout_manager.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "ash/common/shell_observer.h" | 10 #include "ash/common/shell_observer.h" |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 DISALLOW_COPY_AND_ASSIGN(FullscreenObserver); | 74 DISALLOW_COPY_AND_ASSIGN(FullscreenObserver); |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 } // namespace | 77 } // namespace |
| 78 | 78 |
| 79 using WorkspaceLayoutManagerTest = WmTestBase; | 79 using WorkspaceLayoutManagerTest = WmTestBase; |
| 80 | 80 |
| 81 // Verifies that a window containing a restore coordinate will be restored to | 81 // Verifies that a window containing a restore coordinate will be restored to |
| 82 // to the size prior to minimize, keeping the restore rectangle in tact (if | 82 // to the size prior to minimize, keeping the restore rectangle in tact (if |
| 83 // there is one). | 83 // there is one). |
| 84 TEST_F(WorkspaceLayoutManagerTest, RestoreFromMinimizeKeepsRestore) { | 84 // TODO: disabled because of http://crbug.com/615552. |
| 85 TEST_F(WorkspaceLayoutManagerTest, DISABLED_RestoreFromMinimizeKeepsRestore) { |
| 85 ui::Window* mus_window = CreateTestWindow(gfx::Rect(1, 2, 3, 4)); | 86 ui::Window* mus_window = CreateTestWindow(gfx::Rect(1, 2, 3, 4)); |
| 86 WmWindow* window = WmWindowMus::Get(mus_window); | 87 WmWindow* window = WmWindowMus::Get(mus_window); |
| 87 WmWindowMusTestApi(window).set_use_empty_minimum_size(true); | 88 WmWindowMusTestApi(window).set_use_empty_minimum_size(true); |
| 88 gfx::Rect bounds(10, 15, 25, 35); | 89 gfx::Rect bounds(10, 15, 25, 35); |
| 89 window->SetBounds(bounds); | 90 window->SetBounds(bounds); |
| 90 | 91 |
| 91 wm::WindowState* window_state = window->GetWindowState(); | 92 wm::WindowState* window_state = window->GetWindowState(); |
| 92 | 93 |
| 93 // This will not be used for un-minimizing window. | 94 // This will not be used for un-minimizing window. |
| 94 window_state->SetRestoreBoundsInScreen(gfx::Rect(0, 0, 100, 100)); | 95 window_state->SetRestoreBoundsInScreen(gfx::Rect(0, 0, 100, 100)); |
| (...skipping 996 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1091 occluded_window_bounds.width(), | 1092 occluded_window_bounds.width(), |
| 1092 occluded_window_bounds.height()).ToString(), | 1093 occluded_window_bounds.height()).ToString(), |
| 1093 window->bounds().ToString()); | 1094 window->bounds().ToString()); |
| 1094 HideKeyboard(); | 1095 HideKeyboard(); |
| 1095 EXPECT_EQ(occluded_window_bounds.ToString(), window->bounds().ToString()); | 1096 EXPECT_EQ(occluded_window_bounds.ToString(), window->bounds().ToString()); |
| 1096 } | 1097 } |
| 1097 */ | 1098 */ |
| 1098 | 1099 |
| 1099 } // namespace mus | 1100 } // namespace mus |
| 1100 } // namespace ash | 1101 } // namespace ash |
| OLD | NEW |