| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/wm/maximize_mode/maximize_mode_window_manager.h" | 5 #include "ash/wm/maximize_mode/maximize_mode_window_manager.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "ash/root_window_controller.h" | 9 #include "ash/root_window_controller.h" |
| 10 #include "ash/screen_util.h" | 10 #include "ash/screen_util.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 namespace ash { | 33 namespace ash { |
| 34 | 34 |
| 35 // TODO(skuhne): These tests are failing on Widows because maximized is there | 35 // TODO(skuhne): These tests are failing on Widows because maximized is there |
| 36 // differently handled. Fix this! | 36 // differently handled. Fix this! |
| 37 #if !defined(OS_WIN) | 37 #if !defined(OS_WIN) |
| 38 | 38 |
| 39 class MaximizeModeWindowManagerTest : public test::AshTestBase { | 39 class MaximizeModeWindowManagerTest : public test::AshTestBase { |
| 40 public: | 40 public: |
| 41 MaximizeModeWindowManagerTest() {} | 41 MaximizeModeWindowManagerTest() {} |
| 42 virtual ~MaximizeModeWindowManagerTest() {} | 42 ~MaximizeModeWindowManagerTest() override {} |
| 43 | 43 |
| 44 // Creates a window which has a fixed size. | 44 // Creates a window which has a fixed size. |
| 45 aura::Window* CreateFixedSizeNonMaximizableWindow(ui::wm::WindowType type, | 45 aura::Window* CreateFixedSizeNonMaximizableWindow(ui::wm::WindowType type, |
| 46 const gfx::Rect& bounds) { | 46 const gfx::Rect& bounds) { |
| 47 return CreateWindowInWatchedContainer( | 47 return CreateWindowInWatchedContainer( |
| 48 type, bounds, gfx::Size(), false, false); | 48 type, bounds, gfx::Size(), false, false); |
| 49 } | 49 } |
| 50 | 50 |
| 51 // Creates a window which can not be maximized, but resized. |max_size| | 51 // Creates a window which can not be maximized, but resized. |max_size| |
| 52 // denotes the maximal possible size, if the size is empty, the window has no | 52 // denotes the maximal possible size, if the size is empty, the window has no |
| (...skipping 1173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1226 // The window should still be full screen and immersive. | 1226 // The window should still be full screen and immersive. |
| 1227 EXPECT_TRUE(window_state->IsFullscreen()); | 1227 EXPECT_TRUE(window_state->IsFullscreen()); |
| 1228 EXPECT_TRUE(window_state->in_immersive_fullscreen()); | 1228 EXPECT_TRUE(window_state->in_immersive_fullscreen()); |
| 1229 | 1229 |
| 1230 DestroyMaximizeModeWindowManager(); | 1230 DestroyMaximizeModeWindowManager(); |
| 1231 } | 1231 } |
| 1232 | 1232 |
| 1233 #endif // OS_WIN | 1233 #endif // OS_WIN |
| 1234 | 1234 |
| 1235 } // namespace ash | 1235 } // namespace ash |
| OLD | NEW |