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/common/panels/panel_layout_manager.h" | 5 #include "ash/common/wm/panels/panel_layout_manager.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <map> | 8 #include <map> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "ash/wm/common/shelf/wm_shelf.h" | 11 #include "ash/common/wm/shelf/wm_shelf.h" |
12 #include "ash/wm/common/shelf/wm_shelf_util.h" | 12 #include "ash/common/wm/shelf/wm_shelf_util.h" |
13 #include "ash/wm/common/window_animation_types.h" | 13 #include "ash/common/wm/window_animation_types.h" |
14 #include "ash/wm/common/window_parenting_utils.h" | 14 #include "ash/common/wm/window_parenting_utils.h" |
15 #include "ash/wm/common/window_state.h" | 15 #include "ash/common/wm/window_state.h" |
16 #include "ash/wm/common/wm_globals.h" | 16 #include "ash/common/wm/wm_globals.h" |
17 #include "ash/wm/common/wm_lookup.h" | 17 #include "ash/common/wm/wm_lookup.h" |
18 #include "ash/wm/common/wm_root_window_controller.h" | 18 #include "ash/common/wm/wm_root_window_controller.h" |
19 #include "ash/wm/common/wm_shell_window_ids.h" | 19 #include "ash/common/wm/wm_shell_window_ids.h" |
20 #include "ash/wm/common/wm_window.h" | 20 #include "ash/common/wm/wm_window.h" |
21 #include "ash/wm/common/wm_window_property.h" | 21 #include "ash/common/wm/wm_window_property.h" |
22 #include "base/auto_reset.h" | 22 #include "base/auto_reset.h" |
23 #include "third_party/skia/include/core/SkColor.h" | 23 #include "third_party/skia/include/core/SkColor.h" |
24 #include "third_party/skia/include/core/SkPaint.h" | 24 #include "third_party/skia/include/core/SkPaint.h" |
25 #include "third_party/skia/include/core/SkPath.h" | 25 #include "third_party/skia/include/core/SkPath.h" |
26 #include "ui/compositor/scoped_layer_animation_settings.h" | 26 #include "ui/compositor/scoped_layer_animation_settings.h" |
27 #include "ui/gfx/canvas.h" | 27 #include "ui/gfx/canvas.h" |
28 #include "ui/gfx/geometry/rect.h" | 28 #include "ui/gfx/geometry/rect.h" |
29 #include "ui/gfx/geometry/vector2d.h" | 29 #include "ui/gfx/geometry/vector2d.h" |
30 #include "ui/views/background.h" | 30 #include "ui/views/background.h" |
31 #include "ui/views/widget/widget.h" | 31 #include "ui/views/widget/widget.h" |
(...skipping 861 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
893 // Keyboard hidden, restore original bounds if they exist. | 893 // Keyboard hidden, restore original bounds if they exist. |
894 panel->SetBoundsDirect(panel_state->GetRestoreBoundsInScreen()); | 894 panel->SetBoundsDirect(panel_state->GetRestoreBoundsInScreen()); |
895 } | 895 } |
896 } | 896 } |
897 // This bounds change will have caused a change to the Shelf which does not | 897 // This bounds change will have caused a change to the Shelf which does not |
898 // propogate automatically to this class, so manually recalculate bounds. | 898 // propogate automatically to this class, so manually recalculate bounds. |
899 OnWindowResized(); | 899 OnWindowResized(); |
900 } | 900 } |
901 | 901 |
902 } // namespace ash | 902 } // namespace ash |
OLD | NEW |