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/default_state.h" | 5 #include "ash/wm/default_state.h" |
6 | 6 |
7 #include "ash/public/cpp/shell_window_ids.h" | 7 #include "ash/public/cpp/shell_window_ids.h" |
8 #include "ash/root_window_controller.h" | 8 #include "ash/root_window_controller.h" |
9 #include "ash/screen_util.h" | 9 #include "ash/screen_util.h" |
10 #include "ash/shell.h" | 10 #include "ash/shell.h" |
11 #include "ash/shell_port.h" | 11 #include "ash/shell_port.h" |
12 #include "ash/wm/screen_pinning_controller.h" | 12 #include "ash/wm/screen_pinning_controller.h" |
13 #include "ash/wm/window_animation_types.h" | 13 #include "ash/wm/window_animation_types.h" |
14 #include "ash/wm/window_parenting_utils.h" | 14 #include "ash/wm/window_parenting_utils.h" |
15 #include "ash/wm/window_positioning_utils.h" | 15 #include "ash/wm/window_positioning_utils.h" |
16 #include "ash/wm/window_state.h" | 16 #include "ash/wm/window_state.h" |
17 #include "ash/wm/window_state_delegate.h" | 17 #include "ash/wm/window_state_delegate.h" |
18 #include "ash/wm/window_state_util.h" | 18 #include "ash/wm/window_state_util.h" |
19 #include "ash/wm/wm_event.h" | 19 #include "ash/wm/wm_event.h" |
20 #include "ash/wm_window.h" | |
21 #include "ui/aura/client/aura_constants.h" | 20 #include "ui/aura/client/aura_constants.h" |
22 #include "ui/aura/window.h" | 21 #include "ui/aura/window.h" |
23 #include "ui/aura/window_delegate.h" | 22 #include "ui/aura/window_delegate.h" |
24 #include "ui/display/display.h" | 23 #include "ui/display/display.h" |
25 #include "ui/display/screen.h" | 24 #include "ui/display/screen.h" |
26 #include "ui/wm/core/window_util.h" | 25 #include "ui/wm/core/window_util.h" |
27 | 26 |
28 namespace ash { | 27 namespace ash { |
29 namespace wm { | 28 namespace wm { |
30 namespace { | 29 namespace { |
(...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
710 ScreenUtil::GetDisplayWorkAreaBoundsInParent(window); | 709 ScreenUtil::GetDisplayWorkAreaBoundsInParent(window); |
711 center_in_parent.ClampToCenteredSize(window->bounds().size()); | 710 center_in_parent.ClampToCenteredSize(window->bounds().size()); |
712 window_state->SetBoundsDirectAnimated(center_in_parent); | 711 window_state->SetBoundsDirectAnimated(center_in_parent); |
713 } | 712 } |
714 // Centering window is treated as if a user moved and resized the window. | 713 // Centering window is treated as if a user moved and resized the window. |
715 window_state->set_bounds_changed_by_user(true); | 714 window_state->set_bounds_changed_by_user(true); |
716 } | 715 } |
717 | 716 |
718 } // namespace wm | 717 } // namespace wm |
719 } // namespace ash | 718 } // namespace ash |
OLD | NEW |