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/wm/base_layout_manager.h" | 5 #include "ash/wm/base_layout_manager.h" |
6 | 6 |
7 #include "ash/screen_ash.h" | 7 #include "ash/screen_ash.h" |
| 8 #include "ash/shelf/shelf_layout_manager.h" |
8 #include "ash/shell.h" | 9 #include "ash/shell.h" |
9 #include "ash/wm/shelf_layout_manager.h" | |
10 #include "ash/wm/window_animations.h" | 10 #include "ash/wm/window_animations.h" |
11 #include "ash/wm/window_properties.h" | 11 #include "ash/wm/window_properties.h" |
12 #include "ash/wm/window_util.h" | 12 #include "ash/wm/window_util.h" |
13 #include "ash/wm/workspace/workspace_window_resizer.h" | 13 #include "ash/wm/workspace/workspace_window_resizer.h" |
14 #include "ui/aura/client/activation_client.h" | 14 #include "ui/aura/client/activation_client.h" |
15 #include "ui/aura/client/aura_constants.h" | 15 #include "ui/aura/client/aura_constants.h" |
16 #include "ui/aura/root_window.h" | 16 #include "ui/aura/root_window.h" |
17 #include "ui/aura/window.h" | 17 #include "ui/aura/window.h" |
18 #include "ui/base/ui_base_types.h" | 18 #include "ui/base/ui_base_types.h" |
19 #include "ui/compositor/layer.h" | 19 #include "ui/compositor/layer.h" |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 // Put as much of the window as possible within the display area. | 245 // Put as much of the window as possible within the display area. |
246 gfx::Rect bounds = window->bounds(); | 246 gfx::Rect bounds = window->bounds(); |
247 bounds.AdjustToFit(display_rect); | 247 bounds.AdjustToFit(display_rect); |
248 window->SetBounds(bounds); | 248 window->SetBounds(bounds); |
249 } | 249 } |
250 } | 250 } |
251 } | 251 } |
252 | 252 |
253 } // namespace internal | 253 } // namespace internal |
254 } // namespace ash | 254 } // namespace ash |
OLD | NEW |