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/common/wm/window_state.h" | 5 #include "ash/common/wm/window_state.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "ash/common/material_design/material_design_controller.h" | 9 #include "ash/common/material_design/material_design_controller.h" |
10 #include "ash/common/wm/window_state.h" | 10 #include "ash/common/wm/window_state.h" |
11 #include "ash/common/wm/wm_event.h" | 11 #include "ash/common/wm/wm_event.h" |
12 #include "ash/display/display_manager.h" | |
13 #include "ash/test/ash_md_test_base.h" | 12 #include "ash/test/ash_md_test_base.h" |
14 #include "ash/wm/window_state_aura.h" | 13 #include "ash/wm/window_state_aura.h" |
15 #include "ui/aura/client/aura_constants.h" | 14 #include "ui/aura/client/aura_constants.h" |
16 #include "ui/aura/test/test_window_delegate.h" | 15 #include "ui/aura/test/test_window_delegate.h" |
17 #include "ui/aura/window.h" | 16 #include "ui/aura/window.h" |
| 17 #include "ui/display/manager/display_manager.h" |
18 #include "ui/display/screen.h" | 18 #include "ui/display/screen.h" |
19 | 19 |
20 namespace ash { | 20 namespace ash { |
21 namespace wm { | 21 namespace wm { |
22 namespace { | 22 namespace { |
23 | 23 |
24 class AlwaysMaximizeTestState : public WindowState::State { | 24 class AlwaysMaximizeTestState : public WindowState::State { |
25 public: | 25 public: |
26 explicit AlwaysMaximizeTestState(WindowStateType initial_state_type) | 26 explicit AlwaysMaximizeTestState(WindowStateType initial_state_type) |
27 : state_type_(initial_state_type) {} | 27 : state_type_(initial_state_type) {} |
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 EXPECT_EQ(work_area, window->bounds()); | 389 EXPECT_EQ(work_area, window->bounds()); |
390 window->SetBounds(new_bounds); | 390 window->SetBounds(new_bounds); |
391 EXPECT_EQ(work_area, window->bounds()); | 391 EXPECT_EQ(work_area, window->bounds()); |
392 } | 392 } |
393 | 393 |
394 // TODO(skuhne): Add more unit test to verify the correctness for the restore | 394 // TODO(skuhne): Add more unit test to verify the correctness for the restore |
395 // operation. | 395 // operation. |
396 | 396 |
397 } // namespace wm | 397 } // namespace wm |
398 } // namespace ash | 398 } // namespace ash |
OLD | NEW |