| 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/launcher/launcher.h" | 10 #include "ash/launcher/launcher.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 #include "ui/gfx/canvas.h" | 31 #include "ui/gfx/canvas.h" |
| 32 #include "ui/gfx/rect.h" | 32 #include "ui/gfx/rect.h" |
| 33 #include "ui/gfx/vector2d.h" | 33 #include "ui/gfx/vector2d.h" |
| 34 #include "ui/views/background.h" | 34 #include "ui/views/background.h" |
| 35 #include "ui/views/widget/widget.h" | 35 #include "ui/views/widget/widget.h" |
| 36 | 36 |
| 37 namespace ash { | 37 namespace ash { |
| 38 namespace internal { | 38 namespace internal { |
| 39 | 39 |
| 40 namespace { | 40 namespace { |
| 41 const int kPanelMarginEdge = 4; | |
| 42 const int kPanelMarginMiddle = 8; | |
| 43 const int kPanelIdealSpacing = 4; | 41 const int kPanelIdealSpacing = 4; |
| 44 | 42 |
| 45 const float kMaxHeightFactor = .80f; | 43 const float kMaxHeightFactor = .80f; |
| 46 const float kMaxWidthFactor = .50f; | 44 const float kMaxWidthFactor = .50f; |
| 47 | 45 |
| 48 // Duration for panel animations. | 46 // Duration for panel animations. |
| 49 const int kPanelSlideDurationMilliseconds = 50; | 47 const int kPanelSlideDurationMilliseconds = 50; |
| 50 const int kCalloutFadeDurationMilliseconds = 50; | 48 const int kCalloutFadeDurationMilliseconds = 50; |
| 51 | 49 |
| 52 // Offset used when sliding panel in/out of the launcher. Used for minimizing, | 50 // Offset used when sliding panel in/out of the launcher. Used for minimizing, |
| (...skipping 814 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 867 | 865 |
| 868 void PanelLayoutManager::OnKeyboardBoundsChanging( | 866 void PanelLayoutManager::OnKeyboardBoundsChanging( |
| 869 const gfx::Rect& keyboard_bounds) { | 867 const gfx::Rect& keyboard_bounds) { |
| 870 // This bounds change will have caused a change to the Shelf which does not | 868 // This bounds change will have caused a change to the Shelf which does not |
| 871 // propogate automatically to this class, so manually recalculate bounds. | 869 // propogate automatically to this class, so manually recalculate bounds. |
| 872 OnWindowResized(); | 870 OnWindowResized(); |
| 873 } | 871 } |
| 874 | 872 |
| 875 } // namespace internal | 873 } // namespace internal |
| 876 } // namespace ash | 874 } // namespace ash |
| OLD | NEW |