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/panels/panel_layout_manager.h" | 5 #include "ash/wm/panels/panel_layout_manager.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "ash/screen_util.h" | 10 #include "ash/screen_util.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 #include "third_party/skia/include/core/SkPaint.h" | 25 #include "third_party/skia/include/core/SkPaint.h" |
26 #include "third_party/skia/include/core/SkPath.h" | 26 #include "third_party/skia/include/core/SkPath.h" |
27 #include "ui/aura/client/focus_client.h" | 27 #include "ui/aura/client/focus_client.h" |
28 #include "ui/aura/client/window_tree_client.h" | 28 #include "ui/aura/client/window_tree_client.h" |
29 #include "ui/aura/window.h" | 29 #include "ui/aura/window.h" |
30 #include "ui/aura/window_delegate.h" | 30 #include "ui/aura/window_delegate.h" |
31 #include "ui/aura/window_event_dispatcher.h" | 31 #include "ui/aura/window_event_dispatcher.h" |
32 #include "ui/aura/window_tracker.h" | 32 #include "ui/aura/window_tracker.h" |
33 #include "ui/compositor/scoped_layer_animation_settings.h" | 33 #include "ui/compositor/scoped_layer_animation_settings.h" |
34 #include "ui/gfx/canvas.h" | 34 #include "ui/gfx/canvas.h" |
| 35 #include "ui/gfx/geometry/vector2d.h" |
35 #include "ui/gfx/rect.h" | 36 #include "ui/gfx/rect.h" |
36 #include "ui/gfx/vector2d.h" | |
37 #include "ui/views/background.h" | 37 #include "ui/views/background.h" |
38 #include "ui/views/widget/widget.h" | 38 #include "ui/views/widget/widget.h" |
39 #include "ui/wm/public/activation_client.h" | 39 #include "ui/wm/public/activation_client.h" |
40 | 40 |
41 namespace ash { | 41 namespace ash { |
42 namespace { | 42 namespace { |
43 | 43 |
44 const int kPanelIdealSpacing = 4; | 44 const int kPanelIdealSpacing = 4; |
45 | 45 |
46 const float kMaxHeightFactor = .80f; | 46 const float kMaxHeightFactor = .80f; |
(...skipping 885 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
932 // Keyboard hidden, restore original bounds if they exist. | 932 // Keyboard hidden, restore original bounds if they exist. |
933 SetChildBounds(panel, panel_state->GetRestoreBoundsInScreen()); | 933 SetChildBounds(panel, panel_state->GetRestoreBoundsInScreen()); |
934 } | 934 } |
935 } | 935 } |
936 // This bounds change will have caused a change to the Shelf which does not | 936 // This bounds change will have caused a change to the Shelf which does not |
937 // propogate automatically to this class, so manually recalculate bounds. | 937 // propogate automatically to this class, so manually recalculate bounds. |
938 OnWindowResized(); | 938 OnWindowResized(); |
939 } | 939 } |
940 | 940 |
941 } // namespace ash | 941 } // namespace ash |
OLD | NEW |